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.009625/0.009625, allocations: 103.2 kB / 15.73 MB, free: 6.059 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.001398/0.001399, allocations: 190.5 kB / 16.67 MB, free: 5.977 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.597/1.597, allocations: 205.1 MB / 222.5 MB, free: 4.508 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.001858/0.001858, allocations: 51.14 kB / 326.5 MB, free: 14.31 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1351/0.137, allocations: 46.63 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.TotalHarmonicDistortion): time 0.005973/0.143, allocations: 3.553 MB / 376.7 MB, free: 13.73 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002725/0.1458, allocations: 1.282 MB / 378 MB, free: 12.44 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007199/0.1465, allocations: 11.94 kB / 378 MB, free: 12.43 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000455/0.147, allocations: 82.98 kB / 378.1 MB, free: 12.34 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007049/0.1478, allocations: 142.8 kB / 378.2 MB, free: 12.2 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009124/0.1487, allocations: 395.4 kB / 378.6 MB, free: 11.82 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000929/0.1496, allocations: 0.8455 MB / 379.5 MB, free: 10.97 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005823/0.1502, allocations: 381.7 kB / 379.8 MB, free: 10.58 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003853/0.1506, allocations: 322.8 kB / 380.2 MB, free: 10.27 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004053/0.151, allocations: 358.3 kB / 380.5 MB, free: 9.914 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001176/0.1511, allocations: 92 kB / 380.6 MB, free: 9.824 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001218/0.1513, allocations: 96 kB / 380.7 MB, free: 9.73 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001714/0.1515, allocations: 195.4 kB / 380.9 MB, free: 9.539 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003961/0.1519, allocations: 390 kB / 381.3 MB, free: 9.156 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001098/0.153, allocations: 0.9656 MB / 382.2 MB, free: 8.188 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.443e-06/0.153, allocations: 0 / 382.2 MB, free: 8.188 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.153, allocations: 3.938 kB / 382.2 MB, free: 8.184 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.138e-05/0.153, allocations: 0 / 382.2 MB, free: 8.184 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.002153/0.1552, allocations: 1.021 MB / 383.3 MB, free: 7.109 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/0.1552, allocations: 8.031 kB / 383.3 MB, free: 7.102 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001503/0.1554, allocations: 80 kB / 383.3 MB, free: 7.023 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001041/0.1564, allocations: 0.5965 MB / 383.9 MB, free: 6.387 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.418e-05/0.1565, allocations: 49.67 kB / 384 MB, free: 6.336 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001636/0.1567, allocations: 64.28 kB / 384 MB, free: 6.273 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001232/0.1579, allocations: 0.6482 MB / 384.7 MB, free: 5.605 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.68e-05/0.1579, allocations: 0 / 384.7 MB, free: 5.605 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.274e-05/0.158, allocations: 23.98 kB / 384.7 MB, free: 5.582 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.869e-05/0.158, allocations: 16 kB / 384.7 MB, free: 5.566 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001097/0.1591, allocations: 491.7 kB / 385.2 MB, free: 5.09 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003374/0.1625, allocations: 1.837 MB / 387.1 MB, free: 3.18 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001034/0.1636, allocations: 497.1 kB / 387.5 MB, free: 2.688 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004846/0.1641, allocations: 210.1 kB / 387.7 MB, free: 2.48 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.016e-05/0.1642, allocations: 8.422 kB / 387.8 MB, free: 2.473 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008634/0.165, allocations: 397.1 kB / 388.1 MB, free: 2.07 MB / 318.1 MB Notification: Performance of pre-optimization done (n=53): time 2.665e-06/0.165, allocations: 0 / 388.1 MB, free: 2.07 MB / 318.1 MB Notification: Performance of matching and sorting (n=53): time 0.001797/0.1668, allocations: 0.7248 MB / 388.9 MB, free: 1.336 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001406/0.167, allocations: 111.2 kB / 389 MB, free: 1.203 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007441/0.1678, allocations: 457.9 kB / 389.4 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.616e-05/0.1678, allocations: 37.7 kB / 389.5 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003298/0.1682, allocations: 312.5 kB / 389.8 MB, free: 404 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002059/0.1684, allocations: 165.6 kB / 389.9 MB, free: 236 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002897/0.1687, allocations: 126.3 kB / 390 MB, free: 104 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002507/0.169, allocations: 370.7 kB / 390.4 MB, free: 15.73 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005206/0.1695, allocations: 203.4 kB / 390.6 MB, free: 15.53 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007011/0.1702, allocations: 425 kB / 391 MB, free: 15.02 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001164/0.1714, allocations: 0.6251 MB / 391.6 MB, free: 14.3 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.738e-05/0.1714, allocations: 4 kB / 391.7 MB, free: 14.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001639/0.1731, allocations: 0.6646 MB / 392.3 MB, free: 13.62 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.056e-05/0.1731, allocations: 8.312 kB / 392.3 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.96e-05/0.1732, allocations: 8 kB / 392.3 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.554e-05/0.1732, allocations: 8 kB / 392.3 MB, free: 13.6 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006091/0.1739, allocations: 144 kB / 392.5 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.335e-05/0.1739, allocations: 11.98 kB / 392.5 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004576/0.1744, allocations: 79.41 kB / 392.6 MB, free: 13.37 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.463e-05/0.1744, allocations: 35.86 kB / 392.6 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005884/0.175, allocations: 345.3 kB / 392.9 MB, free: 13 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005252/0.1756, allocations: 389.1 kB / 393.3 MB, free: 12.52 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009102/0.1765, allocations: 0.5822 MB / 393.9 MB, free: 11.85 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.379e-06/0.1765, allocations: 0 / 393.9 MB, free: 11.85 MB / 334.1 MB Notification: Performance of matching and sorting (n=79) (initialization_lambda0): time 0.001229/0.1777, allocations: 0.6375 MB / 394.5 MB, free: 11.21 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.1778, allocations: 8 kB / 394.5 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.613e-05/0.1778, allocations: 8 kB / 394.6 MB, free: 11.19 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/0.1778, allocations: 8 kB / 394.6 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000494/0.1783, allocations: 131.7 kB / 394.7 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.875e-05/0.1783, allocations: 15.88 kB / 394.7 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004279/0.1788, allocations: 71.5 kB / 394.8 MB, free: 10.97 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.942e-05/0.1788, allocations: 32.05 kB / 394.8 MB, free: 10.94 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.0003183/0.1792, allocations: 238.2 kB / 395 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001119/0.1793, allocations: 55.34 kB / 395.1 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001264/0.1805, allocations: 0.5867 MB / 395.7 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.127e-06/0.1806, allocations: 8 kB / 395.7 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.1806, allocations: 0 / 395.7 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.05e-05/0.1806, allocations: 7.969 kB / 395.7 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007342/0.1813, allocations: 0.6341 MB / 396.3 MB, free: 9.348 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.905e-06/0.1813, allocations: 4 kB / 396.3 MB, free: 9.344 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004193/0.1818, allocations: 87.88 kB / 396.4 MB, free: 9.258 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.424e-06/0.1818, allocations: 4 kB / 396.4 MB, free: 9.254 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.439e-05/0.1819, allocations: 11.98 kB / 396.4 MB, free: 9.242 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.851e-06/0.1819, allocations: 4 kB / 396.4 MB, free: 9.238 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.1819, allocations: 0 / 396.4 MB, free: 9.238 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001789/0.1837, allocations: 0.8747 MB / 397.3 MB, free: 8.344 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000127/0.1838, allocations: 136.2 kB / 397.5 MB, free: 8.191 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.325e-05/0.1839, allocations: 20.06 kB / 397.5 MB, free: 8.172 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003015/0.1842, allocations: 39.95 kB / 397.5 MB, free: 8.133 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001747/0.1844, allocations: 44.5 kB / 397.6 MB, free: 8.09 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.001e-05/0.1844, allocations: 19.98 kB / 397.6 MB, free: 8.07 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003777/0.1848, allocations: 310.8 kB / 397.9 MB, free: 7.77 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1848, allocations: 0 / 397.9 MB, free: 7.77 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007704/0.1856, allocations: 239.1 kB / 398.1 MB, free: 7.535 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.0001949/0.1858, allocations: 132.9 kB / 398.2 MB, free: 7.398 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001671/0.1875, allocations: 0.8188 MB / 399.1 MB, free: 6.582 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.1875, allocations: 0 / 399.1 MB, free: 6.582 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005161/0.188, allocations: 267.1 kB / 399.3 MB, free: 6.32 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004667/0.1885, allocations: 93.89 kB / 399.4 MB, free: 6.23 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002111/0.1906, allocations: 1.127 MB / 400.5 MB, free: 5.074 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004829/0.1911, allocations: 0.9036 MB / 401.4 MB, free: 4.141 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003821/0.1915, allocations: 104.6 kB / 401.5 MB, free: 4.035 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000156/0.1917, allocations: 55.42 kB / 401.6 MB, free: 3.98 MB / 334.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1917, allocations: 3.938 kB / 401.6 MB, free: 3.977 MB / 334.1 MB Notification: Performance of Templates: time 0.01437/0.2061, allocations: 6.099 MB / 407.7 MB, free: 13.87 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)