Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Blocks.Examples.TotalHarmonicDistortion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.TotalHarmonicDistortion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Blocks.Examples.TotalHarmonicDistortion") translateModel(Modelica.Blocks.Examples.TotalHarmonicDistortion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Blocks.Examples.TotalHarmonicDistortion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001229/0.001229, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001197/0.001197, allocations: 196.7 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.442/1.442, allocations: 205.1 MB / 222.4 MB, free: 4.617 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 59.92 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2501/0.2514, allocations: 46.63 MB / 325.3 MB, free: 1.855 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.TotalHarmonicDistortion): time 0.004525/0.256, allocations: 3.575 MB / 328.9 MB, free: 15.03 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002373/0.2584, allocations: 1.262 MB / 330.1 MB, free: 14 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002894/0.2587, allocations: 16.91 kB / 330.2 MB, free: 13.99 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002582/0.259, allocations: 85.11 kB / 330.2 MB, free: 13.91 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000444/0.2594, allocations: 133.2 kB / 330.4 MB, free: 13.79 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008169/0.2602, allocations: 393.5 kB / 330.7 MB, free: 13.46 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009106/0.2612, allocations: 0.8442 MB / 331.6 MB, free: 12.93 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006306/0.2618, allocations: 382.4 kB / 332 MB, free: 12.7 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004252/0.2622, allocations: 323 kB / 332.3 MB, free: 12.49 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004014/0.2626, allocations: 356.3 kB / 332.6 MB, free: 12.22 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001712/0.2628, allocations: 95.09 kB / 332.7 MB, free: 12.22 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001572/0.263, allocations: 92.31 kB / 332.8 MB, free: 12.22 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002024/0.2632, allocations: 199.6 kB / 333 MB, free: 12.05 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003848/0.2636, allocations: 379.7 kB / 333.4 MB, free: 11.75 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008187/0.2644, allocations: 0.946 MB / 334.3 MB, free: 10.86 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.698e-06/0.2644, allocations: 0 / 334.3 MB, free: 10.86 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2644, allocations: 0 / 334.3 MB, free: 10.86 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.038e-05/0.2644, allocations: 0 / 334.3 MB, free: 10.86 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.001805/0.2663, allocations: 1.017 MB / 335.3 MB, free: 9.793 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.2663, allocations: 16.03 kB / 335.4 MB, free: 9.777 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001571/0.2665, allocations: 80 kB / 335.4 MB, free: 9.699 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009525/0.2674, allocations: 0.5848 MB / 336 MB, free: 9.074 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.499e-05/0.2675, allocations: 45.69 kB / 336.1 MB, free: 9.031 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.539e-05/0.2676, allocations: 60.36 kB / 336.1 MB, free: 8.973 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00112/0.2687, allocations: 0.6443 MB / 336.8 MB, free: 8.309 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.957e-05/0.2687, allocations: 0 / 336.8 MB, free: 8.309 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.773e-05/0.2688, allocations: 24 kB / 336.8 MB, free: 8.285 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.176e-05/0.2688, allocations: 12 kB / 336.8 MB, free: 8.273 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001062/0.2699, allocations: 495.7 kB / 337.3 MB, free: 7.789 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002708/0.2726, allocations: 1.868 MB / 339.2 MB, free: 5.852 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009616/0.2736, allocations: 489.8 kB / 339.6 MB, free: 5.363 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004538/0.2741, allocations: 214.1 kB / 339.8 MB, free: 5.152 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.881e-05/0.2741, allocations: 12.42 kB / 339.9 MB, free: 5.141 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007177/0.2748, allocations: 397 kB / 340.2 MB, free: 4.738 MB / 270.1 MB Notification: Performance of pre-optimization done (n=53): time 2.144e-06/0.2748, allocations: 0 / 340.2 MB, free: 4.738 MB / 270.1 MB Notification: Performance of matching and sorting (n=53): time 0.001636/0.2765, allocations: 0.7209 MB / 341 MB, free: 4.012 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.057e-05/0.2766, allocations: 119.2 kB / 341.1 MB, free: 3.867 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004961/0.2771, allocations: 457.8 kB / 341.5 MB, free: 3.406 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.428e-05/0.2771, allocations: 45.7 kB / 341.6 MB, free: 3.355 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000225/0.2774, allocations: 308.4 kB / 341.9 MB, free: 3.047 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001288/0.2775, allocations: 161.8 kB / 342 MB, free: 2.887 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001755/0.2777, allocations: 122.2 kB / 342.2 MB, free: 2.762 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.2779, allocations: 374.7 kB / 342.5 MB, free: 2.387 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004615/0.2783, allocations: 219.2 kB / 342.7 MB, free: 2.172 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005825/0.2789, allocations: 413 kB / 343.1 MB, free: 1.672 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001023/0.2799, allocations: 0.6126 MB / 343.7 MB, free: 0.9727 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.972e-06/0.28, allocations: 7.938 kB / 343.8 MB, free: 0.9648 MB / 270.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001268/0.2812, allocations: 0.6785 MB / 344.4 MB, free: 288 kB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.2813, allocations: 8 kB / 344.4 MB, free: 280 kB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.368e-06/0.2813, allocations: 4 kB / 344.4 MB, free: 276 kB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.608e-05/0.2813, allocations: 15.98 kB / 344.5 MB, free: 260 kB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005235/0.2818, allocations: 131.7 kB / 344.6 MB, free: 128 kB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.722e-05/0.2819, allocations: 24.17 kB / 344.6 MB, free: 104 kB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003909/0.2823, allocations: 87.34 kB / 344.7 MB, free: 16 kB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.682e-05/0.2823, allocations: 27.98 kB / 344.7 MB, free: 15.98 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005334/0.2829, allocations: 337.3 kB / 345.1 MB, free: 15.66 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005193/0.2834, allocations: 401 kB / 345.4 MB, free: 15.17 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008851/0.2843, allocations: 0.5659 MB / 346 MB, free: 14.52 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.306e-06/0.2843, allocations: 0 / 346 MB, free: 14.52 MB / 286.1 MB Notification: Performance of matching and sorting (n=79) (initialization_lambda0): time 0.001147/0.2855, allocations: 0.6305 MB / 346.6 MB, free: 13.88 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.191e-05/0.2855, allocations: 12.16 kB / 346.7 MB, free: 13.87 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.2855, allocations: 4 kB / 346.7 MB, free: 13.87 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.126e-05/0.2855, allocations: 12 kB / 346.7 MB, free: 13.86 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004332/0.286, allocations: 123.8 kB / 346.8 MB, free: 13.73 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.944e-05/0.286, allocations: 11.94 kB / 346.8 MB, free: 13.72 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000366/0.2864, allocations: 67.56 kB / 346.9 MB, free: 13.66 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.787e-05/0.2864, allocations: 28 kB / 346.9 MB, free: 13.63 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,thdRMS.pythagoras.valid,thdRMS.valid,thdRMS.greaterThreshold.y,thdRMS.rootMeanSquare.mean.y,$PRE.thdRMS.rootMeanSquare.mean.y,thdRMS.harmonic.mean2.y,$PRE.thdRMS.harmonic.mean2.y,thdRMS.harmonic.mean1.y,$PRE.thdRMS.harmonic.mean1.y,thd1.pythagoras.valid,thd1.valid,thd1.greaterThreshold.y,thd1.rootMeanSquare.mean.y,$PRE.thd1.rootMeanSquare.mean.y,thd1.harmonic.mean2.y,$PRE.thd1.harmonic.mean2.y,thd1.harmonic.mean1.y,$PRE.thd1.harmonic.mean1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (79): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00022/0.2866, allocations: 246.2 kB / 347.1 MB, free: 13.38 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.373e-05/0.2867, allocations: 55.34 kB / 347.2 MB, free: 13.32 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001288/0.288, allocations: 0.5829 MB / 347.8 MB, free: 12.73 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/0.288, allocations: 4 kB / 347.8 MB, free: 12.73 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.288, allocations: 0 / 347.8 MB, free: 12.73 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.167e-06/0.2881, allocations: 3.984 kB / 347.8 MB, free: 12.73 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007203/0.2888, allocations: 0.6302 MB / 348.4 MB, free: 12.05 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.2888, allocations: 3.984 kB / 348.4 MB, free: 12.04 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004516/0.2893, allocations: 91.81 kB / 348.5 MB, free: 11.95 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.347e-06/0.2893, allocations: 4 kB / 348.5 MB, free: 11.95 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.181e-05/0.2893, allocations: 15.98 kB / 348.5 MB, free: 11.93 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.469e-06/0.2893, allocations: 4 kB / 348.5 MB, free: 11.93 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.2893, allocations: 0 / 348.5 MB, free: 11.93 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001735/0.2911, allocations: 0.8707 MB / 349.4 MB, free: 11.04 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001248/0.2912, allocations: 140.4 kB / 349.5 MB, free: 10.88 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.322e-05/0.2913, allocations: 15.94 kB / 349.6 MB, free: 10.87 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003173/0.2916, allocations: 43.95 kB / 349.6 MB, free: 10.82 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001144/0.2918, allocations: 44.5 kB / 349.6 MB, free: 10.78 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.542e-05/0.2918, allocations: 23.92 kB / 349.7 MB, free: 10.76 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003544/0.2922, allocations: 314.8 kB / 350 MB, free: 10.45 MB / 286.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.2922, allocations: 0 / 350 MB, free: 10.45 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0007275/0.2929, allocations: 235.1 kB / 350.2 MB, free: 10.22 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (thd1.harmonic.mean1.x,thd1.harmonic.mean2.x,thd1.rootMeanSquare.mean.x,thdRMS.harmonic.mean1.x,thdRMS.harmonic.mean2.x,thdRMS.rootMeanSquare.mean.x) * Number of discrete variables: 20 ($cse1,$cse2,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,thd1.harmonic.mean1.y,thd1.harmonic.mean2.y,thd1.rootMeanSquare.mean.y,thd1.greaterThreshold.y,thd1.valid,thd1.pythagoras.valid,thdRMS.harmonic.mean1.y,thdRMS.harmonic.mean2.y,thdRMS.rootMeanSquare.mean.y,thdRMS.greaterThreshold.y,thdRMS.valid,thdRMS.pythagoras.valid) * Number of discrete states: 6 (thdRMS.rootMeanSquare.mean.x,thdRMS.harmonic.mean2.x,thdRMS.harmonic.mean1.x,thd1.rootMeanSquare.mean.x,thd1.harmonic.mean2.x,thd1.harmonic.mean1.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002059/0.2931, allocations: 141.2 kB / 350.3 MB, free: 10.08 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001854/0.295, allocations: 0.8593 MB / 351.2 MB, free: 9.227 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/0.295, allocations: 3.906 kB / 351.2 MB, free: 9.223 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005304/0.2955, allocations: 267.1 kB / 351.5 MB, free: 8.957 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004868/0.296, allocations: 90.2 kB / 351.5 MB, free: 8.867 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00211/0.2982, allocations: 1.156 MB / 352.7 MB, free: 7.688 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004532/0.2986, allocations: 0.8919 MB / 353.6 MB, free: 6.766 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0003987/0.299, allocations: 108.6 kB / 353.7 MB, free: 6.66 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001401/0.2992, allocations: 55.42 kB / 353.8 MB, free: 6.609 MB / 286.1 MB Notification: Performance of SimCode: time 6.02e-07/0.2992, allocations: 0 / 353.8 MB, free: 6.609 MB / 286.1 MB Notification: Performance of Templates: time 0.01104/0.3102, allocations: 5.999 MB / 359.8 MB, free: 0.6016 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Blocks.Examples.TotalHarmonicDistortion.makefile (rm -f Modelica_3.1_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; mkfifo Modelica_3.1_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe >> ../files/Modelica_3.1_Modelica.Blocks.Examples.TotalHarmonicDistortion.sim & ./Modelica_3.1_Modelica.Blocks.Examples.TotalHarmonicDistortion -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe 2>&1)