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.007513/0.007513, allocations: 98.11 kB / 15.73 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001475/0.001475, allocations: 192.5 kB / 16.67 MB, free: 5.949 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.623/1.623, allocations: 205.1 MB / 222.5 MB, free: 4.512 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.001432/0.001433, allocations: 54.23 kB / 326.5 MB, free: 14.46 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1189, allocations: 46.62 MB / 373.2 MB, free: 1.457 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.TotalHarmonicDistortion): time 0.005343/0.1243, allocations: 3.569 MB / 376.7 MB, free: 13.87 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00229/0.1266, allocations: 1.271 MB / 378 MB, free: 12.59 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002748/0.1269, allocations: 15.94 kB / 378 MB, free: 12.57 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003122/0.1272, allocations: 82.98 kB / 378.1 MB, free: 12.49 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004167/0.1277, allocations: 134.7 kB / 378.2 MB, free: 12.36 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007499/0.1284, allocations: 387.5 kB / 378.6 MB, free: 11.98 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008573/0.1293, allocations: 0.8494 MB / 379.5 MB, free: 11.12 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006492/0.1299, allocations: 397.6 kB / 379.8 MB, free: 10.72 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004515/0.1304, allocations: 326.7 kB / 380.2 MB, free: 10.4 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005452/0.131, allocations: 350.4 kB / 380.5 MB, free: 10.06 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001707/0.1312, allocations: 92 kB / 380.6 MB, free: 9.969 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001975/0.1314, allocations: 96 kB / 380.7 MB, free: 9.875 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002625/0.1316, allocations: 195.4 kB / 380.9 MB, free: 9.684 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000462/0.1321, allocations: 386.1 kB / 381.3 MB, free: 9.305 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001452/0.1336, allocations: 0.9729 MB / 382.2 MB, free: 8.328 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.1336, allocations: 0 / 382.2 MB, free: 8.328 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1336, allocations: 4 kB / 382.2 MB, free: 8.324 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.727e-05/0.1336, allocations: 0 / 382.2 MB, free: 8.324 MB / 318.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.00299/0.1366, allocations: 1.044 MB / 383.3 MB, free: 7.227 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.995e-05/0.1367, allocations: 8.031 kB / 383.3 MB, free: 7.219 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002503/0.137, allocations: 84.42 kB / 383.4 MB, free: 7.137 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001416/0.1384, allocations: 0.593 MB / 384 MB, free: 6.504 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.721e-05/0.1385, allocations: 49.69 kB / 384 MB, free: 6.453 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001412/0.1387, allocations: 64.33 kB / 384.1 MB, free: 6.391 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001824/0.1405, allocations: 0.6482 MB / 384.7 MB, free: 5.723 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.367e-05/0.1405, allocations: 0 / 384.7 MB, free: 5.723 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.073e-05/0.1406, allocations: 24 kB / 384.7 MB, free: 5.699 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.19e-05/0.1407, allocations: 12 kB / 384.8 MB, free: 5.688 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001691/0.1424, allocations: 499.7 kB / 385.2 MB, free: 5.203 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004267/0.1467, allocations: 1.842 MB / 387.1 MB, free: 3.289 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00139/0.1481, allocations: 493.1 kB / 387.6 MB, free: 2.801 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006938/0.1488, allocations: 214.1 kB / 387.8 MB, free: 2.59 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.199e-05/0.1489, allocations: 8.422 kB / 387.8 MB, free: 2.582 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001145/0.15, allocations: 385.1 kB / 388.2 MB, free: 2.191 MB / 318.1 MB Notification: Performance of pre-optimization done (n=53): time 6.602e-06/0.15, allocations: 7.984 kB / 388.2 MB, free: 2.184 MB / 318.1 MB Notification: Performance of matching and sorting (n=53): time 0.002411/0.1525, allocations: 0.7251 MB / 388.9 MB, free: 1.449 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001039/0.1526, allocations: 119.2 kB / 389 MB, free: 1.309 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007467/0.1533, allocations: 453.9 kB / 389.5 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.878e-05/0.1534, allocations: 41.7 kB / 389.5 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003813/0.1538, allocations: 321 kB / 389.8 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002039/0.154, allocations: 166.6 kB / 390 MB, free: 336 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002625/0.1543, allocations: 126.3 kB / 390.1 MB, free: 204 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002203/0.1545, allocations: 370.7 kB / 390.5 MB, free: 15.83 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007204/0.1553, allocations: 211.3 kB / 390.7 MB, free: 15.62 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009284/0.1562, allocations: 417 kB / 391.1 MB, free: 15.11 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001593/0.1578, allocations: 0.6212 MB / 391.7 MB, free: 14.4 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.679e-06/0.1579, allocations: 0 / 391.7 MB, free: 14.4 MB / 334.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.002016/0.1599, allocations: 0.6766 MB / 392.4 MB, free: 13.72 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.606e-05/0.1599, allocations: 8.312 kB / 392.4 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.013e-05/0.16, allocations: 8 kB / 392.4 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.283e-05/0.16, allocations: 8 kB / 392.4 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008195/0.1608, allocations: 143.7 kB / 392.5 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.91e-05/0.1609, allocations: 11.94 kB / 392.5 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006107/0.1615, allocations: 83.83 kB / 392.6 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.033e-05/0.1616, allocations: 31.94 kB / 392.7 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007767/0.1624, allocations: 341.3 kB / 393 MB, free: 13.09 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008051/0.1632, allocations: 401 kB / 393.4 MB, free: 12.61 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001361/0.1646, allocations: 0.5707 MB / 394 MB, free: 11.95 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.015e-06/0.1646, allocations: 0 / 394 MB, free: 11.95 MB / 334.1 MB Notification: Performance of matching and sorting (n=79) (initialization_lambda0): time 0.001778/0.1664, allocations: 0.637 MB / 394.6 MB, free: 11.3 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.1664, allocations: 8.812 kB / 394.6 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.614e-05/0.1664, allocations: 8 kB / 394.6 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.828e-05/0.1665, allocations: 19.94 kB / 394.6 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006735/0.1671, allocations: 123.8 kB / 394.7 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.651e-05/0.1672, allocations: 15.94 kB / 394.8 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006511/0.1678, allocations: 71.59 kB / 394.8 MB, free: 11.06 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.988e-05/0.1679, allocations: 28 kB / 394.9 MB, free: 11.04 MB / 334.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.0003467/0.1683, allocations: 254.1 kB / 395.1 MB, free: 10.78 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001485/0.1684, allocations: 51.67 kB / 395.2 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001914/0.1704, allocations: 0.5829 MB / 395.7 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.376e-05/0.1704, allocations: 8 kB / 395.7 MB, free: 10.13 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.047e-05/0.1704, allocations: 0 / 395.7 MB, free: 10.13 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.347e-05/0.1704, allocations: 3.984 kB / 395.8 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001094/0.1715, allocations: 0.6342 MB / 396.4 MB, free: 9.441 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.576e-06/0.1716, allocations: 0 / 396.4 MB, free: 9.441 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006279/0.1722, allocations: 83.86 kB / 396.5 MB, free: 9.359 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.163e-05/0.1722, allocations: 11.94 kB / 396.5 MB, free: 9.348 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.624e-05/0.1723, allocations: 15.98 kB / 396.5 MB, free: 9.332 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.012e-06/0.1723, allocations: 0 / 396.5 MB, free: 9.332 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.792e-06/0.1724, allocations: 4 kB / 396.5 MB, free: 9.328 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002628/0.175, allocations: 0.8788 MB / 397.4 MB, free: 8.43 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001944/0.1752, allocations: 136.7 kB / 397.5 MB, free: 8.277 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001404/0.1753, allocations: 16 kB / 397.5 MB, free: 8.262 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004891/0.1759, allocations: 39.95 kB / 397.6 MB, free: 8.223 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001767/0.176, allocations: 44.52 kB / 397.6 MB, free: 8.18 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.545e-05/0.1761, allocations: 23.97 kB / 397.6 MB, free: 8.156 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005807/0.1767, allocations: 310.8 kB / 397.9 MB, free: 7.855 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.1767, allocations: 0 / 397.9 MB, free: 7.855 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00136/0.1781, allocations: 243.3 kB / 398.2 MB, free: 7.617 MB / 334.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.0002388/0.1783, allocations: 128.9 kB / 398.3 MB, free: 7.484 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002535/0.1809, allocations: 0.8221 MB / 399.1 MB, free: 6.664 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.1809, allocations: 0.8125 kB / 399.1 MB, free: 6.664 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007798/0.1817, allocations: 271.1 kB / 399.4 MB, free: 6.398 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007035/0.1824, allocations: 78.05 kB / 399.5 MB, free: 6.324 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003327/0.1858, allocations: 1.172 MB / 400.6 MB, free: 5.121 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007689/0.1866, allocations: 0.8958 MB / 401.5 MB, free: 4.195 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0006907/0.1873, allocations: 104.6 kB / 401.6 MB, free: 4.09 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002332/0.1875, allocations: 51.42 kB / 401.7 MB, free: 4.039 MB / 334.1 MB Notification: Performance of SimCode: time 3.427e-06/0.1875, allocations: 0 / 401.7 MB, free: 4.039 MB / 334.1 MB Notification: Performance of Templates: time 0.01843/0.206, allocations: 6.102 MB / 407.8 MB, free: 13.93 MB / 350.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)