Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Blocks.Examples.TotalHarmonicDistortion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|thd1.harmonic.mean1.x|thd1.harmonic.mean2.x|thd1.rootMeanSquare.mean.x|thdRMS.harmonic.mean1.x|thdRMS.harmonic.mean2.x|thdRMS.rootMeanSquare.mean.x",fileNamePrefix="Modelica_trunk_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion") translateModel(Modelica.Blocks.Examples.TotalHarmonicDistortion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|thd1.harmonic.mean1.x|thd1.harmonic.mean2.x|thd1.rootMeanSquare.mean.x|thdRMS.harmonic.mean1.x|thdRMS.harmonic.mean2.x|thdRMS.rootMeanSquare.mean.x",fileNamePrefix="Modelica_trunk_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009686/0.0009686, allocations: 197.4 kB / 17.38 MB, free: 4.316 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.317/1.317, allocations: 226.6 MB / 244.7 MB, free: 8.164 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000745/0.000745, allocations: 96.38 kB / 296.8 MB, free: 6.906 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002491/0.0002494, allocations: 8 kB / 356.7 MB, free: 10.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2485/0.2487, allocations: 51.3 MB / 408 MB, free: 27.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.TotalHarmonicDistortion): time 0.002874/0.2517, allocations: 3.145 MB / 411.2 MB, free: 24.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001711/0.2534, allocations: 1.24 MB / 412.4 MB, free: 23.32 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002289/0.2536, allocations: 17.69 kB / 412.4 MB, free: 23.31 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001574/0.2538, allocations: 47.44 kB / 412.5 MB, free: 23.26 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002917/0.2541, allocations: 105.7 kB / 412.6 MB, free: 23.16 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005445/0.2547, allocations: 264.8 kB / 412.8 MB, free: 22.9 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005254/0.2552, allocations: 0.7746 MB / 413.6 MB, free: 22.13 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004223/0.2556, allocations: 367.2 kB / 414 MB, free: 21.75 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002775/0.2559, allocations: 234.8 kB / 414.2 MB, free: 21.52 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002434/0.2562, allocations: 266.5 kB / 414.5 MB, free: 21.26 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.907e-05/0.2562, allocations: 27.94 kB / 414.5 MB, free: 21.23 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001117/0.2564, allocations: 43.98 kB / 414.5 MB, free: 21.19 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001048/0.2565, allocations: 115.5 kB / 414.7 MB, free: 21.08 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000198/0.2567, allocations: 323.9 kB / 415 MB, free: 20.75 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004732/0.2572, allocations: 0.7569 MB / 415.7 MB, free: 20 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.2572, allocations: 4 kB / 415.7 MB, free: 19.99 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.2572, allocations: 0 / 415.7 MB, free: 19.99 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.398e-06/0.2572, allocations: 0 / 415.7 MB, free: 19.99 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 141 * Number of variables: 141 Notification: Performance of Generate backend data structure: time 0.00148/0.2587, allocations: 0.9339 MB / 416.7 MB, free: 19.01 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.2587, allocations: 8.031 kB / 416.7 MB, free: 19 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006077/0.2593, allocations: 159.8 kB / 416.8 MB, free: 18.85 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008056/0.2602, allocations: 0.6393 MB / 417.5 MB, free: 18.16 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.749e-05/0.2602, allocations: 49.69 kB / 417.5 MB, free: 18.12 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.969e-05/0.2603, allocations: 60.38 kB / 417.6 MB, free: 18.06 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001048/0.2613, allocations: 0.6763 MB / 418.3 MB, free: 17.36 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.542e-05/0.2614, allocations: 3.984 kB / 418.3 MB, free: 17.36 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.745e-05/0.2614, allocations: 28 kB / 418.3 MB, free: 17.33 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.077e-05/0.2615, allocations: 12 kB / 418.3 MB, free: 17.32 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001177/0.2626, allocations: 0.536 MB / 418.8 MB, free: 16.79 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0027/0.2654, allocations: 1.944 MB / 420.8 MB, free: 14.77 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009312/0.2663, allocations: 0.5206 MB / 421.3 MB, free: 14.24 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000433/0.2668, allocations: 230.1 kB / 421.5 MB, free: 14.02 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.605e-05/0.2668, allocations: 4.438 kB / 421.5 MB, free: 14.01 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007268/0.2676, allocations: 414 kB / 421.9 MB, free: 13.59 MB / 298.7 MB Notification: Performance of pre-optimization done (n=53): time 5.3e-06/0.2676, allocations: 0 / 421.9 MB, free: 13.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=53): time 0.001582/0.2692, allocations: 0.795 MB / 422.7 MB, free: 12.79 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.57e-05/0.2692, allocations: 111.2 kB / 422.8 MB, free: 12.66 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004604/0.2697, allocations: 474 kB / 423.3 MB, free: 12.19 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.465e-05/0.2698, allocations: 41.7 kB / 423.3 MB, free: 12.14 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001973/0.27, allocations: 336.3 kB / 423.7 MB, free: 11.81 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001029/0.2701, allocations: 165.7 kB / 423.8 MB, free: 11.64 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.917e-05/0.2701, allocations: 8 kB / 423.8 MB, free: 11.64 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.866e-05/0.2702, allocations: 378.8 kB / 424.2 MB, free: 11.26 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004153/0.2706, allocations: 217.2 kB / 424.4 MB, free: 11.04 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004915/0.2711, allocations: 433 kB / 424.8 MB, free: 10.53 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008754/0.272, allocations: 0.6437 MB / 425.5 MB, free: 9.801 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.272, allocations: 8 kB / 425.5 MB, free: 9.793 MB / 298.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001149/0.2732, allocations: 0.7144 MB / 426.2 MB, free: 9.074 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001224/0.2733, allocations: 287.3 kB / 426.5 MB, free: 8.703 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/0.2733, allocations: 8 kB / 426.5 MB, free: 8.695 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.226e-05/0.2734, allocations: 12 kB / 426.5 MB, free: 8.684 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004941/0.2739, allocations: 147.7 kB / 426.7 MB, free: 8.539 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.416e-05/0.2739, allocations: 15.94 kB / 426.7 MB, free: 8.523 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003631/0.2743, allocations: 91.39 kB / 426.8 MB, free: 8.434 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.905e-05/0.2743, allocations: 36 kB / 426.8 MB, free: 8.398 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.35e-06/0.2743, allocations: 4 kB / 426.8 MB, free: 8.395 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008474/0.2752, allocations: 0.5764 MB / 427.4 MB, free: 7.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.2752, allocations: 8 kB / 427.4 MB, free: 7.812 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.454e-06/0.2752, allocations: 8 kB / 427.4 MB, free: 7.805 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003873/0.2756, allocations: 132 kB / 427.5 MB, free: 7.676 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.618e-06/0.2756, allocations: 15.94 kB / 427.5 MB, free: 7.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002938/0.2759, allocations: 83.38 kB / 427.6 MB, free: 7.578 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.401e-05/0.276, allocations: 31.98 kB / 427.6 MB, free: 7.547 MB / 298.7 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,$PRE.thdRMS.harmonic.mean1.y_last,thdRMS.harmonic.mean1.y_last,$PRE.thdRMS.harmonic.mean2.y_last,thdRMS.harmonic.mean2.y_last,$PRE.thdRMS.rootMeanSquare.mean.y_last,thdRMS.rootMeanSquare.mean.y_last,thdRMS.greaterThreshold.y,thdRMS.valid,thdRMS.pythagoras.valid,$PRE.thd1.harmonic.mean1.y_last,thd1.harmonic.mean1.y_last,$PRE.thd1.harmonic.mean2.y_last,thd1.harmonic.mean2.y_last,$PRE.thd1.rootMeanSquare.mean.y_last,thd1.rootMeanSquare.mean.y_last,thd1.greaterThreshold.y,thd1.valid,thd1.pythagoras.valid) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002998/0.2763, allocations: 323.5 kB / 428 MB, free: 7.223 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.535e-05/0.2763, allocations: 55.34 kB / 428 MB, free: 7.168 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00115/0.2775, allocations: 0.6222 MB / 428.6 MB, free: 6.535 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.2775, allocations: 4 kB / 428.6 MB, free: 6.531 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/0.2775, allocations: 3.938 kB / 428.6 MB, free: 6.527 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.297e-06/0.2775, allocations: 3.984 kB / 428.6 MB, free: 6.523 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006074/0.2781, allocations: 0.6419 MB / 429.3 MB, free: 5.832 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.2782, allocations: 0 / 429.3 MB, free: 5.832 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003937/0.2786, allocations: 107.8 kB / 429.4 MB, free: 5.727 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.524e-06/0.2786, allocations: 0 / 429.4 MB, free: 5.727 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.322e-05/0.2786, allocations: 15.98 kB / 429.4 MB, free: 5.711 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.2786, allocations: 4 kB / 429.4 MB, free: 5.707 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.2786, allocations: 3.938 kB / 429.4 MB, free: 5.703 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001544/0.2802, allocations: 0.9294 MB / 430.3 MB, free: 4.758 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.794e-05/0.2803, allocations: 136.3 kB / 430.5 MB, free: 4.605 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.637e-05/0.2804, allocations: 19.98 kB / 430.5 MB, free: 4.586 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003103/0.2807, allocations: 51.95 kB / 430.6 MB, free: 4.535 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001128/0.2808, allocations: 48.44 kB / 430.6 MB, free: 4.484 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.95e-05/0.2809, allocations: 23.98 kB / 430.6 MB, free: 4.461 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003104/0.2812, allocations: 318.9 kB / 430.9 MB, free: 4.152 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2812, allocations: 0 / 430.9 MB, free: 4.152 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006628/0.2818, allocations: 247 kB / 431.2 MB, free: 3.91 MB / 298.7 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_last,thd1.harmonic.mean2.y_last,thd1.rootMeanSquare.mean.y_last,thd1.greaterThreshold.y,thd1.valid,thd1.pythagoras.valid,thdRMS.harmonic.mean1.y_last,thdRMS.harmonic.mean2.y_last,thdRMS.rootMeanSquare.mean.y_last,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001664/0.282, allocations: 139.9 kB / 431.3 MB, free: 3.77 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001392/0.2834, allocations: 0.8647 MB / 432.2 MB, free: 2.906 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.2834, allocations: 0 / 432.2 MB, free: 2.906 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004672/0.2839, allocations: 296.2 kB / 432.5 MB, free: 2.617 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004458/0.2844, allocations: 78.89 kB / 432.5 MB, free: 2.535 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001722/0.2861, allocations: 1.442 MB / 434 MB, free: 1.066 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000289/0.2864, allocations: 0.9118 MB / 434.9 MB, free: 124 kB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001595/0.2866, allocations: 59.42 kB / 435 MB, free: 64 kB / 298.7 MB Notification: Performance of SimCode: time 5.21e-07/0.2866, allocations: 4 kB / 435 MB, free: 60 kB / 298.7 MB Notification: Performance of Templates: time 0.01103/0.2976, allocations: 7.999 MB / 443 MB, free: 8.074 MB / 314.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion.makefile (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion.sim & ./Modelica_trunk_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/TotalHarmonicDistortion/TotalHarmonicDistortion.csv","../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches