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.00148/0.00148, allocations: 184.6 kB / 16.41 MB, free: 5.727 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.874/1.874, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001164/0.001163, allocations: 88.48 kB / 270.9 MB, free: 8.363 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.499/0.499, allocations: 43.55 MB / 362.7 MB, free: 51.98 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006248/0.0006252, allocations: 11.94 kB / 431.4 MB, free: 5.945 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.1252, allocations: 58.85 MB / 490.2 MB, free: 11.01 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.46/0.5853, allocations: 87.31 MB / 0.564 GB, free: 15.24 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002597/0.5856, allocations: 63.97 kB / 0.564 GB, free: 15.18 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02013/0.6057, allocations: 4.298 MB / 0.5682 GB, free: 10.91 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.6058, allocations: 0 / 0.5682 GB, free: 10.91 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.684e-05/0.6058, allocations: 11.06 kB / 0.5683 GB, free: 10.9 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.001363/0.6072, allocations: 0.5665 MB / 0.5688 GB, free: 10.29 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/0.6073, allocations: 8.031 kB / 0.5688 GB, free: 10.28 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001201/0.6074, allocations: 43.47 kB / 0.5689 GB, free: 10.24 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000629/0.608, allocations: 318.5 kB / 0.5692 GB, free: 9.895 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.057e-05/0.6081, allocations: 20.56 kB / 0.5692 GB, free: 9.875 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.438e-05/0.6082, allocations: 28 kB / 0.5692 GB, free: 9.848 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007987/0.609, allocations: 265.8 kB / 0.5695 GB, free: 9.586 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.481e-05/0.609, allocations: 7.906 kB / 0.5695 GB, free: 9.578 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.837e-05/0.6091, allocations: 8 kB / 0.5695 GB, free: 9.57 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.524e-05/0.6091, allocations: 11.95 kB / 0.5695 GB, free: 9.559 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007288/0.6099, allocations: 198.1 kB / 0.5697 GB, free: 9.363 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002038/0.6119, allocations: 0.7912 MB / 0.5704 GB, free: 8.523 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006682/0.6126, allocations: 209.9 kB / 0.5706 GB, free: 8.312 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.458e-05/0.6127, allocations: 4 kB / 0.5706 GB, free: 8.309 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006675/0.6134, allocations: 240.5 kB / 0.5709 GB, free: 8.066 MB / 394.7 MB Notification: Performance of pre-optimization done (n=31): time 2.986e-06/0.6134, allocations: 4 kB / 0.5709 GB, free: 8.062 MB / 394.7 MB Notification: Performance of matching and sorting (n=31): time 0.001381/0.6148, allocations: 391.3 kB / 0.5713 GB, free: 7.676 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.045e-05/0.6148, allocations: 59.39 kB / 0.5713 GB, free: 7.605 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003384/0.6152, allocations: 204.2 kB / 0.5715 GB, free: 7.402 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.544e-05/0.6153, allocations: 37.7 kB / 0.5715 GB, free: 7.359 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001471/0.6154, allocations: 227 kB / 0.5718 GB, free: 7.137 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001185/0.6155, allocations: 94.62 kB / 0.5718 GB, free: 7.043 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.079e-05/0.6156, allocations: 4 kB / 0.5719 GB, free: 7.039 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001221/0.6157, allocations: 326.8 kB / 0.5722 GB, free: 6.711 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000361/0.6161, allocations: 96.69 kB / 0.5723 GB, free: 6.613 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004575/0.6166, allocations: 238.2 kB / 0.5725 GB, free: 6.32 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004286/0.617, allocations: 123.9 kB / 0.5726 GB, free: 6.199 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.566e-06/0.617, allocations: 0 / 0.5726 GB, free: 6.199 MB / 394.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001063/0.6181, allocations: 369.2 kB / 0.573 GB, free: 5.832 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.453e-05/0.6181, allocations: 8 kB / 0.573 GB, free: 5.824 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.356e-05/0.6182, allocations: 7.984 kB / 0.573 GB, free: 5.816 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.69e-05/0.6182, allocations: 8 kB / 0.573 GB, free: 5.809 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005503/0.6188, allocations: 84.11 kB / 0.5731 GB, free: 5.727 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.808e-05/0.6188, allocations: 9.25 kB / 0.5731 GB, free: 5.719 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003254/0.6191, allocations: 39.67 kB / 0.5731 GB, free: 5.68 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.881e-05/0.6192, allocations: 16 kB / 0.5731 GB, free: 5.664 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.0002825/0.6195, allocations: 173.5 kB / 0.5733 GB, free: 5.484 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.937e-05/0.6195, allocations: 27.62 kB / 0.5733 GB, free: 5.457 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001106/0.6207, allocations: 341.2 kB / 0.5736 GB, free: 5.121 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/0.6207, allocations: 3.938 kB / 0.5736 GB, free: 5.117 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.6207, allocations: 8 kB / 0.5736 GB, free: 5.109 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.075e-05/0.6207, allocations: 3.984 kB / 0.5737 GB, free: 5.105 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001472/0.6222, allocations: 0.7129 MB / 0.5743 GB, free: 4.336 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.6222, allocations: 4 kB / 0.5744 GB, free: 4.332 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004901/0.6227, allocations: 51.89 kB / 0.5744 GB, free: 4.281 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.175e-05/0.6228, allocations: 4 kB / 0.5744 GB, free: 4.277 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.669e-05/0.6228, allocations: 7.938 kB / 0.5744 GB, free: 4.27 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.971e-06/0.6228, allocations: 4.875 kB / 0.5744 GB, free: 4.266 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.6228, allocations: 0 / 0.5744 GB, free: 4.266 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001484/0.6243, allocations: 0.5423 MB / 0.5749 GB, free: 3.707 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.844e-05/0.6244, allocations: 112.8 kB / 0.5751 GB, free: 3.578 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.426e-05/0.6245, allocations: 12 kB / 0.5751 GB, free: 3.566 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000298/0.6248, allocations: 15.98 kB / 0.5751 GB, free: 3.551 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.761e-05/0.625, allocations: 24.09 kB / 0.5751 GB, free: 3.527 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.058e-05/0.625, allocations: 15.98 kB / 0.5751 GB, free: 3.512 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002316/0.6252, allocations: 164.5 kB / 0.5753 GB, free: 3.352 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6253, allocations: 0 / 0.5753 GB, free: 3.352 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005223/0.6258, allocations: 75.75 kB / 0.5753 GB, free: 3.277 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.0002034/0.626, allocations: 120.8 kB / 0.5755 GB, free: 3.152 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0009126/0.6269, allocations: 272.1 kB / 0.5757 GB, free: 2.887 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.627, allocations: 0 / 0.5757 GB, free: 2.887 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004791/0.6274, allocations: 139.8 kB / 0.5759 GB, free: 2.75 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003779/0.6278, allocations: 34.02 kB / 0.5759 GB, free: 2.719 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001605/0.6295, allocations: 0.7214 MB / 0.5766 GB, free: 1.969 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004219/0.6299, allocations: 0.788 MB / 0.5774 GB, free: 1.152 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001935/0.6301, allocations: 35.42 kB / 0.5774 GB, free: 1.117 MB / 394.7 MB Notification: Performance of SimCode: time 1.563e-06/0.6302, allocations: 3.938 kB / 0.5774 GB, free: 1.113 MB / 394.7 MB Notification: Performance of Templates: time 0.009614/0.6398, allocations: 3.446 MB / 0.5808 GB, free: 13.68 MB / 410.7 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