Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001558/0.001558, allocations: 175.3 kB / 16.76 MB, free: 4.934 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.717/1.717, allocations: 205.4 MB / 222.9 MB, free: 8.934 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007716/0.0007717, allocations: 86.42 kB / 271.3 MB, free: 8.23 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4085/0.4085, allocations: 43.57 MB / 363.1 MB, free: 51.88 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003846/0.0003846, allocations: 12 kB / 432.6 MB, free: 4.98 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1254/0.1259, allocations: 58.85 MB / 491.5 MB, free: 10.05 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.308/0.4338, allocations: 87.35 MB / 0.5652 GB, free: 14.5 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001889/0.4341, allocations: 67.97 kB / 0.5653 GB, free: 14.44 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01232/0.4464, allocations: 4.294 MB / 0.5695 GB, free: 10.18 MB / 394.7 MB Notification: Performance of FrontEnd: time 4.458e-06/0.4464, allocations: 4 kB / 0.5695 GB, free: 10.17 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.332e-05/0.4465, allocations: 12.48 kB / 0.5695 GB, free: 10.16 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.0008903/0.4474, allocations: 0.5582 MB / 0.5701 GB, free: 9.559 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.092e-05/0.4474, allocations: 12.03 kB / 0.5701 GB, free: 9.547 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.864e-05/0.4475, allocations: 40.47 kB / 0.5701 GB, free: 9.508 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000425/0.4479, allocations: 320.3 kB / 0.5704 GB, free: 9.16 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.758e-05/0.448, allocations: 24.92 kB / 0.5704 GB, free: 9.137 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.202e-05/0.448, allocations: 32.38 kB / 0.5705 GB, free: 9.105 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005604/0.4486, allocations: 261.1 kB / 0.5707 GB, free: 8.852 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.636e-05/0.4486, allocations: 3.938 kB / 0.5707 GB, free: 8.848 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.218e-05/0.4487, allocations: 23.98 kB / 0.5707 GB, free: 8.824 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.075e-06/0.4487, allocations: 4 kB / 0.5708 GB, free: 8.82 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000407/0.4491, allocations: 198.1 kB / 0.5709 GB, free: 8.625 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001245/0.4503, allocations: 0.7976 MB / 0.5717 GB, free: 7.781 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004079/0.4508, allocations: 209.9 kB / 0.5719 GB, free: 7.57 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000211/0.451, allocations: 111.5 kB / 0.572 GB, free: 7.461 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.146e-05/0.451, allocations: 7.969 kB / 0.572 GB, free: 7.453 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004158/0.4515, allocations: 234.1 kB / 0.5723 GB, free: 7.215 MB / 394.7 MB Notification: Performance of pre-optimization done (n=31): time 2.144e-06/0.4515, allocations: 0 / 0.5723 GB, free: 7.215 MB / 394.7 MB Notification: Performance of matching and sorting (n=31): time 0.0008409/0.4523, allocations: 395.2 kB / 0.5726 GB, free: 6.824 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.93e-05/0.4524, allocations: 59.39 kB / 0.5727 GB, free: 6.754 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000235/0.4526, allocations: 232.9 kB / 0.5729 GB, free: 6.52 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.333e-05/0.4526, allocations: 33.7 kB / 0.5729 GB, free: 6.48 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001043/0.4528, allocations: 168.5 kB / 0.5731 GB, free: 6.312 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.61e-05/0.4528, allocations: 94.7 kB / 0.5732 GB, free: 6.219 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.811e-05/0.4529, allocations: 8 kB / 0.5732 GB, free: 6.211 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.453, allocations: 338.8 kB / 0.5735 GB, free: 5.871 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002016/0.4532, allocations: 100.7 kB / 0.5736 GB, free: 5.77 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002865/0.4535, allocations: 226.4 kB / 0.5738 GB, free: 5.488 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005244/0.454, allocations: 364.7 kB / 0.5742 GB, free: 5.07 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.4541, allocations: 0 / 0.5742 GB, free: 5.07 MB / 394.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006658/0.4547, allocations: 378.1 kB / 0.5745 GB, free: 4.695 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.4548, allocations: 12 kB / 0.5746 GB, free: 4.684 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.4548, allocations: 4 kB / 0.5746 GB, free: 4.68 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.866e-05/0.4548, allocations: 15.92 kB / 0.5746 GB, free: 4.664 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002783/0.4551, allocations: 71.94 kB / 0.5746 GB, free: 4.594 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.253e-05/0.4551, allocations: 15.92 kB / 0.5747 GB, free: 4.578 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000188/0.4553, allocations: 39.69 kB / 0.5747 GB, free: 4.539 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.612e-05/0.4553, allocations: 19.98 kB / 0.5747 GB, free: 4.52 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.mean.y,mean.y,$PRE.rectifiedMean.mean.y,rectifiedMean.mean.y,$PRE.rootMeanSquare.mean.y,rootMeanSquare.mean.y,$PRE.harmonic.mean1.y,harmonic.mean1.y,$PRE.harmonic.mean2.y,harmonic.mean2.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 46 * 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.0001624/0.4555, allocations: 169.5 kB / 0.5749 GB, free: 4.344 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.46e-05/0.4555, allocations: 27.72 kB / 0.5749 GB, free: 4.316 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006462/0.4562, allocations: 341 kB / 0.5752 GB, free: 3.977 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.255e-06/0.4562, allocations: 4 kB / 0.5752 GB, free: 3.973 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.4562, allocations: 0 / 0.5752 GB, free: 3.973 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/0.4562, allocations: 0 / 0.5752 GB, free: 3.973 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009285/0.4572, allocations: 0.7245 MB / 0.5759 GB, free: 3.191 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.4572, allocations: 3.938 kB / 0.5759 GB, free: 3.188 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002534/0.4575, allocations: 55.91 kB / 0.576 GB, free: 3.133 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.4575, allocations: 0 / 0.576 GB, free: 3.133 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.533e-05/0.4575, allocations: 11.98 kB / 0.576 GB, free: 3.121 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.4575, allocations: 4 kB / 0.576 GB, free: 3.117 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.4575, allocations: 0 / 0.576 GB, free: 3.117 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008252/0.4583, allocations: 0.5383 MB / 0.5765 GB, free: 2.562 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.199e-05/0.4584, allocations: 108.6 kB / 0.5766 GB, free: 2.438 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.996e-05/0.4585, allocations: 8.188 kB / 0.5767 GB, free: 2.43 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001671/0.4586, allocations: 19.98 kB / 0.5767 GB, free: 2.41 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.625e-05/0.4587, allocations: 32.03 kB / 0.5767 GB, free: 2.379 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.508e-05/0.4587, allocations: 12 kB / 0.5767 GB, free: 2.367 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000141/0.4589, allocations: 168.5 kB / 0.5769 GB, free: 2.203 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4589, allocations: 0 / 0.5769 GB, free: 2.203 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003475/0.4592, allocations: 71.83 kB / 0.5769 GB, free: 2.133 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (mean.x,rectifiedMean.mean.x,rootMeanSquare.mean.x,harmonic.mean1.x,harmonic.mean2.x) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,mean.y,rectifiedMean.mean.y,rootMeanSquare.mean.y,harmonic.mean1.y,harmonic.mean2.y) * Number of discrete states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001447/0.4594, allocations: 117.5 kB / 0.5771 GB, free: 2.012 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.000512/0.4599, allocations: 279.6 kB / 0.5773 GB, free: 1.738 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.4599, allocations: 0 / 0.5773 GB, free: 1.738 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002394/0.4602, allocations: 136.8 kB / 0.5775 GB, free: 1.605 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000358/0.4605, allocations: 42.31 kB / 0.5775 GB, free: 1.566 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009418/0.4615, allocations: 0.6915 MB / 0.5782 GB, free: 0.8594 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003231/0.4618, allocations: 0.7802 MB / 0.5789 GB, free: 52 kB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001498/0.462, allocations: 34.28 kB / 0.579 GB, free: 12 kB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.238e-05/0.4621, allocations: 35.5 kB / 0.579 GB, free: 15.97 MB / 410.7 MB Notification: Performance of SimCode: time 2.71e-07/0.4621, allocations: 192 / 0.579 GB, free: 15.97 MB / 410.7 MB Notification: Performance of Templates: time 0.004931/0.467, allocations: 2.231 MB / 0.5812 GB, free: 13.76 MB / 410.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Mean/Mean.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches