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.001016/0.001016, allocations: 181.1 kB / 17.41 MB, free: 4.289 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.415/1.415, allocations: 205.4 MB / 223.6 MB, free: 9.016 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.0007494/0.0007495, allocations: 86.39 kB / 271.9 MB, free: 8.25 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.321/0.321, allocations: 43.56 MB / 363.7 MB, free: 52.11 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003865/0.0003867, allocations: 12 kB / 432.6 MB, free: 5.879 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1065, allocations: 58.86 MB / 491.4 MB, free: 10.94 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.283/0.3896, allocations: 87.35 MB / 0.5652 GB, free: 15.06 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001958/0.3898, allocations: 59.98 kB / 0.5653 GB, free: 15 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01209/0.4019, allocations: 4.297 MB / 0.5695 GB, free: 10.73 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.402, allocations: 0 / 0.5695 GB, free: 10.73 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.71e-05/0.402, allocations: 8 kB / 0.5695 GB, free: 10.72 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.0008694/0.4029, allocations: 0.5658 MB / 0.57 GB, free: 10.11 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.4029, allocations: 8.031 kB / 0.57 GB, free: 10.11 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.595e-05/0.403, allocations: 40.47 kB / 0.5701 GB, free: 10.07 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004175/0.4034, allocations: 330.6 kB / 0.5704 GB, free: 9.711 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.956e-05/0.4035, allocations: 24.94 kB / 0.5704 GB, free: 9.688 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.177e-05/0.4035, allocations: 28.38 kB / 0.5705 GB, free: 9.66 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004835/0.404, allocations: 269.1 kB / 0.5707 GB, free: 9.398 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.48e-05/0.404, allocations: 0 / 0.5707 GB, free: 9.398 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.142e-05/0.4041, allocations: 11.98 kB / 0.5707 GB, free: 9.387 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.4041, allocations: 12 kB / 0.5707 GB, free: 9.375 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004121/0.4045, allocations: 190.1 kB / 0.5709 GB, free: 9.188 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001227/0.4057, allocations: 0.7989 MB / 0.5717 GB, free: 8.34 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000404/0.4061, allocations: 212.2 kB / 0.5719 GB, free: 8.129 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002082/0.4064, allocations: 104.8 kB / 0.572 GB, free: 8.023 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.842e-05/0.4064, allocations: 11.98 kB / 0.572 GB, free: 8.012 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004/0.4068, allocations: 234.1 kB / 0.5722 GB, free: 7.773 MB / 394.7 MB Notification: Performance of pre-optimization done (n=31): time 1.813e-06/0.4068, allocations: 4 kB / 0.5722 GB, free: 7.77 MB / 394.7 MB Notification: Performance of matching and sorting (n=31): time 0.0007921/0.4076, allocations: 391.2 kB / 0.5726 GB, free: 7.383 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.845e-05/0.4077, allocations: 55.41 kB / 0.5727 GB, free: 7.316 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002156/0.4079, allocations: 232.9 kB / 0.5729 GB, free: 7.078 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.11e-05/0.4079, allocations: 37.7 kB / 0.5729 GB, free: 7.035 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.053e-05/0.408, allocations: 168.5 kB / 0.5731 GB, free: 6.867 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.621e-05/0.4081, allocations: 94.7 kB / 0.5732 GB, free: 6.773 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.659e-05/0.4082, allocations: 4 kB / 0.5732 GB, free: 6.77 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.4083, allocations: 342.8 kB / 0.5735 GB, free: 6.426 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002031/0.4085, allocations: 96.69 kB / 0.5736 GB, free: 6.328 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002734/0.4088, allocations: 234.3 kB / 0.5738 GB, free: 6.039 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005/0.4093, allocations: 357.5 kB / 0.5742 GB, free: 5.629 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.4093, allocations: 4 kB / 0.5742 GB, free: 5.625 MB / 394.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006108/0.4099, allocations: 384.7 kB / 0.5745 GB, free: 5.242 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/0.4099, allocations: 4.469 kB / 0.5745 GB, free: 5.238 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/0.41, allocations: 12 kB / 0.5745 GB, free: 5.227 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.403e-05/0.41, allocations: 7.938 kB / 0.5746 GB, free: 5.219 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002839/0.4103, allocations: 83.83 kB / 0.5746 GB, free: 5.137 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.153e-05/0.4103, allocations: 4.625 kB / 0.5746 GB, free: 5.133 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001613/0.4105, allocations: 35.69 kB / 0.5747 GB, free: 5.098 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.705e-05/0.4105, allocations: 23.98 kB / 0.5747 GB, free: 5.074 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.0001615/0.4107, allocations: 169.5 kB / 0.5749 GB, free: 4.898 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.863e-05/0.4107, allocations: 27.7 kB / 0.5749 GB, free: 4.871 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000635/0.4114, allocations: 341 kB / 0.5752 GB, free: 4.531 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.4114, allocations: 7.938 kB / 0.5752 GB, free: 4.523 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.4114, allocations: 0 / 0.5752 GB, free: 4.523 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.634e-06/0.4114, allocations: 3.984 kB / 0.5752 GB, free: 4.52 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008928/0.4123, allocations: 0.7129 MB / 0.5759 GB, free: 3.75 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.189e-06/0.4123, allocations: 7.938 kB / 0.5759 GB, free: 3.742 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002383/0.4126, allocations: 51.91 kB / 0.576 GB, free: 3.691 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.4126, allocations: 0 / 0.576 GB, free: 3.691 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.642e-05/0.4126, allocations: 15.98 kB / 0.576 GB, free: 3.676 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.729e-06/0.4126, allocations: 4 kB / 0.576 GB, free: 3.672 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.4126, allocations: 4 kB / 0.576 GB, free: 3.668 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008342/0.4135, allocations: 0.5421 MB / 0.5765 GB, free: 3.109 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.921e-05/0.4135, allocations: 108.6 kB / 0.5766 GB, free: 2.984 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.662e-05/0.4136, allocations: 16.05 kB / 0.5766 GB, free: 2.969 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00016/0.4137, allocations: 15.98 kB / 0.5767 GB, free: 2.953 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.32e-05/0.4138, allocations: 15.97 kB / 0.5767 GB, free: 2.938 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.468e-05/0.4138, allocations: 15.98 kB / 0.5767 GB, free: 2.922 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001686/0.414, allocations: 168.5 kB / 0.5768 GB, free: 2.758 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.414, allocations: 0 / 0.5768 GB, free: 2.758 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003531/0.4144, allocations: 75.84 kB / 0.5769 GB, free: 2.684 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.0001464/0.4145, allocations: 117.6 kB / 0.577 GB, free: 2.562 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005088/0.4151, allocations: 271.6 kB / 0.5773 GB, free: 2.297 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.4151, allocations: 0 / 0.5773 GB, free: 2.297 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002541/0.4153, allocations: 140.8 kB / 0.5774 GB, free: 2.16 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003463/0.4157, allocations: 44.62 kB / 0.5775 GB, free: 2.117 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009814/0.4167, allocations: 0.7283 MB / 0.5782 GB, free: 1.367 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003476/0.417, allocations: 0.7764 MB / 0.5789 GB, free: 0.5625 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.276e-05/0.4171, allocations: 35.42 kB / 0.579 GB, free: 0.5273 MB / 394.7 MB Notification: Performance of SimCode: time 2.61e-07/0.4171, allocations: 0 / 0.579 GB, free: 0.5273 MB / 394.7 MB Notification: Performance of Templates: time 0.00503/0.4222, allocations: 3.501 MB / 0.5824 GB, free: 13.04 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