Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_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_cpp_ModelicaTest.Blocks.Mean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002187/0.002187, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.043/2.043, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001057/0.001057, allocations: 95.23 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3739/0.3739, allocations: 43.49 MB / 353.6 MB, free: 2.262 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.641e-05/1.65e-05, allocations: 4.219 kB / 418.2 MB, free: 41.04 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3918/0.3918, allocations: 58.86 MB / 477.1 MB, free: 5.246 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1611/0.553, allocations: 86.55 MB / 0.5504 GB, free: 12.76 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002444/0.5533, allocations: 63.97 kB / 0.5505 GB, free: 12.7 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01992/0.5732, allocations: 4.252 MB / 0.5546 GB, free: 8.438 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.5733, allocations: 0 / 0.5546 GB, free: 8.438 MB / 395.1 MB Notification: Performance of Transformations before backend: time 2.635e-05/0.5733, allocations: 8 kB / 0.5546 GB, free: 8.43 MB / 395.1 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.001255/0.5746, allocations: 0.533 MB / 0.5552 GB, free: 7.852 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.447e-05/0.5746, allocations: 8.031 kB / 0.5552 GB, free: 7.844 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001216/0.5748, allocations: 43.58 kB / 0.5552 GB, free: 7.801 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006849/0.5755, allocations: 310 kB / 0.5555 GB, free: 7.461 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.272e-05/0.5755, allocations: 8 kB / 0.5555 GB, free: 7.453 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.737e-05/0.5756, allocations: 31.89 kB / 0.5555 GB, free: 7.422 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004828/0.5761, allocations: 149 kB / 0.5557 GB, free: 7.277 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005772/0.5767, allocations: 203.8 kB / 0.5559 GB, free: 7.07 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.101e-05/0.5767, allocations: 0 / 0.5559 GB, free: 7.07 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.705e-05/0.5768, allocations: 7.953 kB / 0.5559 GB, free: 7.062 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.107e-05/0.5768, allocations: 4 kB / 0.5559 GB, free: 7.059 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002069/0.5789, allocations: 0.7399 MB / 0.5566 GB, free: 6.277 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004935/0.5794, allocations: 167 kB / 0.5568 GB, free: 6.105 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002216/0.5797, allocations: 83.64 kB / 0.5569 GB, free: 6.023 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.745e-05/0.5797, allocations: 7.984 kB / 0.5569 GB, free: 6.016 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005089/0.5803, allocations: 203.2 kB / 0.5571 GB, free: 5.805 MB / 395.1 MB Notification: Performance of pre-optimization done (n=31): time 3.046e-06/0.5803, allocations: 4 kB / 0.5571 GB, free: 5.801 MB / 395.1 MB Notification: Performance of matching and sorting (n=31): time 0.0006913/0.581, allocations: 241.2 kB / 0.5573 GB, free: 5.559 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.196e-05/0.581, allocations: 59.39 kB / 0.5573 GB, free: 5.488 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002926/0.5813, allocations: 192.5 kB / 0.5575 GB, free: 5.289 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 4.493e-05/0.5814, allocations: 29.7 kB / 0.5576 GB, free: 5.254 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001589/0.5816, allocations: 219.3 kB / 0.5578 GB, free: 5.039 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001249/0.5817, allocations: 98.56 kB / 0.5579 GB, free: 4.941 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.212e-05/0.5817, allocations: 0 / 0.5579 GB, free: 4.941 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.5819, allocations: 326.8 kB / 0.5582 GB, free: 4.613 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002109/0.5821, allocations: 75.14 kB / 0.5582 GB, free: 4.539 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003122/0.5825, allocations: 198 kB / 0.5584 GB, free: 4.285 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000268/0.5827, allocations: 99.78 kB / 0.5585 GB, free: 4.188 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.348e-06/0.5828, allocations: 4 kB / 0.5585 GB, free: 4.184 MB / 395.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007571/0.5835, allocations: 285.2 kB / 0.5588 GB, free: 3.898 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.48e-05/0.5836, allocations: 8 kB / 0.5588 GB, free: 3.891 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.225e-05/0.5836, allocations: 4 kB / 0.5588 GB, free: 3.887 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.885e-05/0.5836, allocations: 8 kB / 0.5588 GB, free: 3.879 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005653/0.5842, allocations: 79.83 kB / 0.5589 GB, free: 3.801 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.41e-05/0.5842, allocations: 8 kB / 0.5589 GB, free: 3.793 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003059/0.5845, allocations: 32.08 kB / 0.5589 GB, free: 3.762 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.183e-05/0.5846, allocations: 20 kB / 0.559 GB, free: 3.742 MB / 395.1 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 () * 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.000165/0.5848, allocations: 124.8 kB / 0.5591 GB, free: 3.613 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.642e-05/0.5849, allocations: 31.62 kB / 0.5591 GB, free: 3.582 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007657/0.5856, allocations: 272.8 kB / 0.5594 GB, free: 3.309 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.666e-06/0.5857, allocations: 4 kB / 0.5594 GB, free: 3.305 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.5857, allocations: 96 / 0.5594 GB, free: 3.305 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.076e-05/0.5857, allocations: 7.938 kB / 0.5594 GB, free: 3.297 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001128/0.5868, allocations: 0.6237 MB / 0.56 GB, free: 2.629 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.5869, allocations: 0 / 0.56 GB, free: 2.629 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004886/0.5874, allocations: 43.97 kB / 0.56 GB, free: 2.586 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.187e-05/0.5874, allocations: 4 kB / 0.56 GB, free: 2.582 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.84e-05/0.5874, allocations: 15.92 kB / 0.56 GB, free: 2.566 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.422e-06/0.5874, allocations: 8 kB / 0.5601 GB, free: 2.559 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.075e-06/0.5875, allocations: 0 / 0.5601 GB, free: 2.559 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001006/0.5885, allocations: 458.9 kB / 0.5605 GB, free: 2.094 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001006/0.5886, allocations: 108.8 kB / 0.5606 GB, free: 1.969 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.691e-05/0.5887, allocations: 0 / 0.5606 GB, free: 1.969 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000305/0.589, allocations: 15.98 kB / 0.5606 GB, free: 1.953 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.048e-05/0.5891, allocations: 23.97 kB / 0.5606 GB, free: 1.93 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.318e-05/0.5891, allocations: 15.98 kB / 0.5607 GB, free: 1.914 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0002084/0.5894, allocations: 152.5 kB / 0.5608 GB, free: 1.766 MB / 395.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5894, allocations: 0 / 0.5608 GB, free: 1.766 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0005472/0.5899, allocations: 63.75 kB / 0.5609 GB, free: 1.703 MB / 395.1 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) * 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.0001994/0.5901, allocations: 111.2 kB / 0.561 GB, free: 1.586 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.000569/0.5907, allocations: 211.7 kB / 0.5612 GB, free: 1.379 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 2.756e-06/0.5907, allocations: 0 / 0.5612 GB, free: 1.379 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002868/0.591, allocations: 112.4 kB / 0.5613 GB, free: 1.27 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003559/0.5914, allocations: 20.75 kB / 0.5613 GB, free: 1.25 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001226/0.5926, allocations: 458.6 kB / 0.5617 GB, free: 0.7734 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004874/0.5932, allocations: 0.7932 MB / 0.5625 GB, free: 15.95 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001607/0.5933, allocations: 27.44 kB / 0.5625 GB, free: 15.93 MB / 411.1 MB Notification: Performance of SimCode: time 3.346e-06/0.5933, allocations: 0 / 0.5625 GB, free: 15.93 MB / 411.1 MB Notification: Performance of Templates: time 0.008748/0.6021, allocations: 3.44 MB / 0.5659 GB, free: 12.49 MB / 411.1 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches