Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2.2_Modelica.Blocks.Examples.TotalHarmonicDistortion") translateModel(Modelica.Blocks.Examples.TotalHarmonicDistortion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001167/0.001167, allocations: 91.98 kB / 16.65 MB, free: 6.602 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.001208/0.001209, allocations: 182.6 kB / 17.56 MB, free: 6.199 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.832/1.832, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.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.0004859/0.000486, allocations: 15.94 kB / 280.7 MB, free: 3.414 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.1211, allocations: 47.58 MB / 328.3 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.TotalHarmonicDistortion): time 0.004085/0.1252, allocations: 3.198 MB / 331.5 MB, free: 0.5391 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002635/0.1279, allocations: 1.213 MB / 332.7 MB, free: 15.32 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002597/0.1281, allocations: 15.88 kB / 332.7 MB, free: 15.3 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001501/0.1283, allocations: 51.48 kB / 332.8 MB, free: 15.25 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003194/0.1286, allocations: 107.1 kB / 332.9 MB, free: 15.14 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006997/0.1293, allocations: 351.6 kB / 333.2 MB, free: 14.8 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008448/0.1302, allocations: 0.7791 MB / 334 MB, free: 14.02 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005124/0.1307, allocations: 353.8 kB / 334.4 MB, free: 13.66 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003023/0.131, allocations: 226.7 kB / 334.6 MB, free: 13.44 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003047/0.1313, allocations: 270.4 kB / 334.8 MB, free: 13.18 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.463e-05/0.1314, allocations: 24 kB / 334.9 MB, free: 13.15 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.305e-05/0.1315, allocations: 20 kB / 334.9 MB, free: 13.13 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001216/0.1316, allocations: 119.4 kB / 335 MB, free: 13.02 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003906/0.132, allocations: 315.8 kB / 335.3 MB, free: 12.7 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000729/0.1327, allocations: 0.8681 MB / 336.2 MB, free: 11.83 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.7e-06/0.1328, allocations: 4 kB / 336.2 MB, free: 11.82 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1328, allocations: 0 / 336.2 MB, free: 11.82 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.071e-05/0.1328, allocations: 0 / 336.2 MB, free: 11.82 MB / 286.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.001736/0.1345, allocations: 0.881 MB / 337.1 MB, free: 10.89 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.731e-05/0.1346, allocations: 8.031 kB / 337.1 MB, free: 10.89 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001356/0.1347, allocations: 83.98 kB / 337.2 MB, free: 10.8 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009241/0.1356, allocations: 0.5965 MB / 337.8 MB, free: 10.17 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.331e-05/0.1357, allocations: 45.69 kB / 337.8 MB, free: 10.12 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001164/0.1358, allocations: 64.28 kB / 337.9 MB, free: 10.06 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001293/0.1371, allocations: 0.6639 MB / 338.5 MB, free: 9.379 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.376e-05/0.1372, allocations: 3.938 kB / 338.5 MB, free: 9.375 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.863e-05/0.1372, allocations: 24 kB / 338.6 MB, free: 9.352 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.413e-05/0.1373, allocations: 12 kB / 338.6 MB, free: 9.34 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00119/0.1385, allocations: 0.5347 MB / 339.1 MB, free: 8.805 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003063/0.1415, allocations: 1.892 MB / 341 MB, free: 6.84 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001065/0.1426, allocations: 0.5243 MB / 341.5 MB, free: 6.305 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005036/0.1431, allocations: 242 kB / 341.8 MB, free: 6.066 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.581e-05/0.1432, allocations: 16.42 kB / 341.8 MB, free: 6.051 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008182/0.144, allocations: 397.2 kB / 342.2 MB, free: 5.648 MB / 286.1 MB Notification: Performance of pre-optimization done (n=53): time 2.404e-06/0.144, allocations: 0 / 342.2 MB, free: 5.648 MB / 286.1 MB Notification: Performance of matching and sorting (n=53): time 0.001728/0.1458, allocations: 0.7912 MB / 342.9 MB, free: 4.852 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.868e-05/0.1459, allocations: 115.2 kB / 343.1 MB, free: 4.715 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005328/0.1464, allocations: 461.8 kB / 343.5 MB, free: 4.25 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.198e-05/0.1465, allocations: 37.7 kB / 343.5 MB, free: 4.207 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002297/0.1467, allocations: 308.5 kB / 343.8 MB, free: 3.898 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001387/0.1469, allocations: 165.6 kB / 344 MB, free: 3.734 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.46e-05/0.1469, allocations: 65.67 kB / 344.1 MB, free: 3.664 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001669/0.1471, allocations: 374.7 kB / 344.4 MB, free: 3.289 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000496/0.1476, allocations: 221.2 kB / 344.7 MB, free: 3.074 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006518/0.1483, allocations: 441 kB / 345.1 MB, free: 2.547 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001097/0.1494, allocations: 0.6596 MB / 345.7 MB, free: 1.801 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/0.1494, allocations: 4 kB / 345.8 MB, free: 1.797 MB / 286.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001337/0.1508, allocations: 0.7224 MB / 346.5 MB, free: 1.07 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002026/0.151, allocations: 281.3 kB / 346.7 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.169e-05/0.151, allocations: 7.984 kB / 346.8 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.322e-05/0.151, allocations: 12 kB / 346.8 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005334/0.1516, allocations: 147.7 kB / 346.9 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.831e-05/0.1516, allocations: 15.92 kB / 346.9 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000438/0.152, allocations: 95.41 kB / 347 MB, free: 440 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.645e-05/0.1521, allocations: 35.98 kB / 347.1 MB, free: 404 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.324e-06/0.1521, allocations: 7.938 kB / 347.1 MB, free: 396 kB / 286.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001005/0.1531, allocations: 0.577 MB / 347.6 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.1531, allocations: 8 kB / 347.6 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.738e-06/0.1531, allocations: 12 kB / 347.7 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004294/0.1536, allocations: 131.7 kB / 347.8 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.243e-05/0.1536, allocations: 15.94 kB / 347.8 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003487/0.154, allocations: 75.66 kB / 347.9 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.817e-05/0.154, allocations: 32 kB / 347.9 MB, free: 15.54 MB / 302.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.0003503/0.1544, allocations: 307.1 kB / 348.2 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.965e-05/0.1544, allocations: 55.34 kB / 348.3 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001316/0.1558, allocations: 0.6298 MB / 348.9 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.069e-05/0.1558, allocations: 8 kB / 348.9 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.038e-05/0.1558, allocations: 3.984 kB / 348.9 MB, free: 14.53 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.825e-06/0.1558, allocations: 0 / 348.9 MB, free: 14.53 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008573/0.1567, allocations: 0.6379 MB / 349.5 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.1567, allocations: 0 / 349.5 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000438/0.1571, allocations: 95.88 kB / 349.6 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.1572, allocations: 4 kB / 349.6 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.351e-05/0.1572, allocations: 15.98 kB / 349.7 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.1572, allocations: 4 kB / 349.7 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.1572, allocations: 0 / 349.7 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001774/0.159, allocations: 0.9371 MB / 350.6 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001/0.1591, allocations: 132.4 kB / 350.7 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.533e-05/0.1592, allocations: 12 kB / 350.7 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003254/0.1595, allocations: 55.95 kB / 350.8 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000103/0.1596, allocations: 48.48 kB / 350.8 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.712e-05/0.1597, allocations: 19.98 kB / 350.9 MB, free: 12.48 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003594/0.16, allocations: 318.9 kB / 351.2 MB, free: 12.18 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1601, allocations: 0 / 351.2 MB, free: 12.18 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007371/0.1608, allocations: 239 kB / 351.4 MB, free: 11.94 MB / 302.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.0001823/0.161, allocations: 133.2 kB / 351.5 MB, free: 11.8 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00174/0.1627, allocations: 0.8774 MB / 352.4 MB, free: 10.93 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.1627, allocations: 0 / 352.4 MB, free: 10.93 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005569/0.1633, allocations: 291.1 kB / 352.7 MB, free: 10.65 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005167/0.1638, allocations: 85.7 kB / 352.8 MB, free: 10.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002175/0.166, allocations: 1.422 MB / 354.2 MB, free: 9.113 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004705/0.1665, allocations: 0.8961 MB / 355.1 MB, free: 8.188 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004098/0.1669, allocations: 112.6 kB / 355.2 MB, free: 8.078 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001407/0.1671, allocations: 51.42 kB / 355.3 MB, free: 8.027 MB / 302.1 MB Notification: Performance of SimCode: time 3.9e-07/0.1671, allocations: 0 / 355.3 MB, free: 8.027 MB / 302.1 MB Notification: Performance of Templates: time 0.01085/0.1779, allocations: 5.487 MB / 360.7 MB, free: 2.535 MB / 302.1 MB make -j1 -f Modelica_3.2.2_Modelica.Blocks.Examples.TotalHarmonicDistortion.makefile (rm -f Modelica_3.2.2_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; mkfifo Modelica_3.2.2_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe >> ../files/Modelica_3.2.2_Modelica.Blocks.Examples.TotalHarmonicDistortion.sim & ./Modelica_3.2.2_Modelica.Blocks.Examples.TotalHarmonicDistortion -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe 2>&1)