Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) 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_4.0.0_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_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009172/0.0009174, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.395/1.395, allocations: 221.5 MB / 230.3 MB, free: 7.559 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009258/0.0009256, allocations: 96.44 kB / 281.2 MB, free: 5.324 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.46e-05/1.463e-05, allocations: 4 kB / 337 MB, free: 10.04 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09782/0.09785, allocations: 50.41 MB / 387.5 MB, free: 7.582 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3218/0.4197, allocations: 80.26 MB / 467.7 MB, free: 14.61 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001654/0.4199, allocations: 67.97 kB / 467.8 MB, free: 14.55 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02933/0.4493, allocations: 10.38 MB / 478.2 MB, free: 4.137 MB / 346.7 MB Notification: Performance of FrontEnd: time 8.91e-07/0.4493, allocations: 4 kB / 478.2 MB, free: 4.133 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.23e-05/0.4494, allocations: 16 kB / 478.2 MB, free: 4.117 MB / 346.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.001527/0.4509, allocations: 0.8438 MB / 479 MB, free: 3.223 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.4509, allocations: 12.03 kB / 479 MB, free: 3.211 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001583/0.4511, allocations: 83.05 kB / 479.1 MB, free: 3.129 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000816/0.4519, allocations: 0.5273 MB / 479.6 MB, free: 2.555 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.116e-05/0.452, allocations: 19.95 kB / 479.7 MB, free: 2.535 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.917e-05/0.4521, allocations: 43.91 kB / 479.7 MB, free: 2.492 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007045/0.4528, allocations: 398.5 kB / 480.1 MB, free: 2.105 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008715/0.4537, allocations: 0.5253 MB / 480.6 MB, free: 1.562 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.398e-05/0.4537, allocations: 7.938 kB / 480.6 MB, free: 1.555 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.627e-05/0.4538, allocations: 7.984 kB / 480.6 MB, free: 1.547 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.135e-05/0.4538, allocations: 12 kB / 480.7 MB, free: 1.535 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002961/0.4567, allocations: 1.868 MB / 482.5 MB, free: 15.61 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006924/0.4575, allocations: 408.4 kB / 482.9 MB, free: 15.2 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002542/0.4577, allocations: 166.1 kB / 483.1 MB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.212e-05/0.4578, allocations: 8.422 kB / 483.1 MB, free: 15.03 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005155/0.4583, allocations: 330.4 kB / 483.4 MB, free: 14.7 MB / 362.7 MB Notification: Performance of pre-optimization done (n=53): time 2.585e-06/0.4583, allocations: 0 / 483.4 MB, free: 14.7 MB / 362.7 MB Notification: Performance of matching and sorting (n=53): time 0.0007725/0.4591, allocations: 439.4 kB / 483.8 MB, free: 14.26 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.592e-05/0.4592, allocations: 115.2 kB / 484 MB, free: 14.12 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004364/0.4596, allocations: 369.1 kB / 484.3 MB, free: 13.76 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.939e-05/0.4597, allocations: 33.69 kB / 484.3 MB, free: 13.72 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002124/0.4599, allocations: 312.3 kB / 484.7 MB, free: 13.41 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001255/0.4601, allocations: 165.7 kB / 484.8 MB, free: 13.25 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.945e-05/0.4601, allocations: 4 kB / 484.8 MB, free: 13.24 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.4602, allocations: 366.7 kB / 485.2 MB, free: 12.88 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002526/0.4605, allocations: 145.6 kB / 485.3 MB, free: 12.73 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003879/0.4609, allocations: 360.8 kB / 485.7 MB, free: 12.29 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002932/0.4612, allocations: 183.7 kB / 485.8 MB, free: 12.11 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.4612, allocations: 8 kB / 485.9 MB, free: 12.1 MB / 362.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0007991/0.462, allocations: 0.5297 MB / 486.4 MB, free: 11.57 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000789/0.4628, allocations: 2.522 MB / 488.9 MB, free: 8.848 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.369e-05/0.4628, allocations: 8 kB / 488.9 MB, free: 8.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.32e-05/0.4629, allocations: 12 kB / 488.9 MB, free: 8.828 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005586/0.4634, allocations: 155.7 kB / 489.1 MB, free: 8.676 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.19e-05/0.4635, allocations: 11.94 kB / 489.1 MB, free: 8.664 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004013/0.4639, allocations: 75.55 kB / 489.2 MB, free: 8.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.692e-05/0.4639, allocations: 39.89 kB / 489.2 MB, free: 8.551 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.506e-06/0.4639, allocations: 4 kB / 489.2 MB, free: 8.547 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000694/0.4646, allocations: 452 kB / 489.6 MB, free: 8.109 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.4647, allocations: 4 kB / 489.7 MB, free: 8.105 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.4647, allocations: 15.95 kB / 489.7 MB, free: 8.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004649/0.4651, allocations: 135.7 kB / 489.8 MB, free: 7.957 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.985e-06/0.4652, allocations: 8 kB / 489.8 MB, free: 7.949 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000347/0.4655, allocations: 67.62 kB / 489.9 MB, free: 7.883 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.024e-05/0.4656, allocations: 27.98 kB / 489.9 MB, free: 7.855 MB / 362.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.valid,thdRMS.andValid.u1,thdRMS.andValid.u2,$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.valid,thd1.andValid.u1,thd1.andValid.u2) * Number of discrete 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.0001814/0.4658, allocations: 139.8 kB / 490 MB, free: 7.715 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.252e-05/0.4658, allocations: 51.44 kB / 490.1 MB, free: 7.664 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008134/0.4667, allocations: 469.6 kB / 490.5 MB, free: 7.195 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.157e-05/0.4667, allocations: 11.95 kB / 490.6 MB, free: 7.184 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.4667, allocations: 0 / 490.6 MB, free: 7.184 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.957e-06/0.4667, allocations: 3.984 kB / 490.6 MB, free: 7.18 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006296/0.4674, allocations: 0.5488 MB / 491.1 MB, free: 6.594 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/0.4674, allocations: 0 / 491.1 MB, free: 6.594 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004838/0.4679, allocations: 99.88 kB / 491.2 MB, free: 6.496 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.4679, allocations: 0 / 491.2 MB, free: 6.496 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.413e-05/0.4679, allocations: 11.98 kB / 491.2 MB, free: 6.484 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.4679, allocations: 4 kB / 491.2 MB, free: 6.48 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.4679, allocations: 0 / 491.2 MB, free: 6.48 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001148/0.4691, allocations: 0.7111 MB / 491.9 MB, free: 5.75 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001086/0.4692, allocations: 128.5 kB / 492.1 MB, free: 5.605 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.865e-05/0.4693, allocations: 11.98 kB / 492.1 MB, free: 5.594 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003488/0.4697, allocations: 39.97 kB / 492.1 MB, free: 5.555 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001135/0.4698, allocations: 48.31 kB / 492.2 MB, free: 5.508 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.36e-05/0.4698, allocations: 28.09 kB / 492.2 MB, free: 5.48 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003509/0.4702, allocations: 279 kB / 492.5 MB, free: 5.211 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4702, allocations: 0 / 492.5 MB, free: 5.211 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007314/0.471, allocations: 223 kB / 492.7 MB, free: 4.992 MB / 362.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: 18 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,thd1.harmonic.mean1.y_last,thd1.harmonic.mean2.y_last,thd1.rootMeanSquare.mean.y_last,thd1.valid,thd1.andValid.u1,thd1.andValid.u2,thdRMS.harmonic.mean1.y_last,thdRMS.harmonic.mean2.y_last,thdRMS.rootMeanSquare.mean.y_last,thdRMS.valid,thdRMS.andValid.u1,thdRMS.andValid.u2) * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 47 * 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.0002047/0.4712, allocations: 124.9 kB / 492.8 MB, free: 4.855 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001054/0.4722, allocations: 0.6731 MB / 493.5 MB, free: 4.184 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.46e-06/0.4722, allocations: 3.938 kB / 493.5 MB, free: 4.18 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003192/0.4726, allocations: 213.5 kB / 493.7 MB, free: 3.973 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003855/0.473, allocations: 54.06 kB / 493.7 MB, free: 3.922 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001746/0.4747, allocations: 0.8185 MB / 494.6 MB, free: 3.078 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000631/0.4754, allocations: 0.9158 MB / 495.5 MB, free: 2.133 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000659/0.476, allocations: 114.4 kB / 495.6 MB, free: 2.016 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001253/0.4762, allocations: 47.42 kB / 495.6 MB, free: 1.969 MB / 362.7 MB Notification: Performance of SimCode: time 7.01e-07/0.4762, allocations: 0 / 495.6 MB, free: 1.969 MB / 362.7 MB Notification: Performance of Templates: time 0.01102/0.4872, allocations: 5.574 MB / 0.4895 GB, free: 12.42 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches