Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Mean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Mean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001105/0.001109, allocations: 195.8 kB / 16.78 MB, free: 5.035 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.465/1.465, allocations: 226.5 MB / 244.1 MB, free: 6.516 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007886/0.0007889, allocations: 96.31 kB / 296.1 MB, free: 6.699 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2916/0.2916, allocations: 44.83 MB / 393 MB, free: 35.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000273/0.0002734, allocations: 8 kB / 465.9 MB, free: 12.74 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3123/0.3126, allocations: 62.95 MB / 0.5165 GB, free: 37.3 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1097/0.4224, allocations: 89.27 MB / 0.6036 GB, free: 140 kB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002306/0.4226, allocations: 59.97 kB / 0.6037 GB, free: 80 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0129/0.4355, allocations: 4.677 MB / 0.6083 GB, free: 11.39 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.512e-06/0.4356, allocations: 0 / 0.6083 GB, free: 11.39 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.839e-05/0.4356, allocations: 8 kB / 0.6083 GB, free: 11.38 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0009426/0.4366, allocations: 0.596 MB / 0.6089 GB, free: 10.74 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.409e-05/0.4366, allocations: 11.97 kB / 0.6089 GB, free: 10.73 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004362/0.437, allocations: 92.42 kB / 0.609 GB, free: 10.64 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004162/0.4375, allocations: 331.9 kB / 0.6093 GB, free: 10.27 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.999e-05/0.4375, allocations: 24.94 kB / 0.6093 GB, free: 10.25 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.924e-05/0.4376, allocations: 32.38 kB / 0.6093 GB, free: 10.22 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004962/0.4381, allocations: 277.1 kB / 0.6096 GB, free: 9.938 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.903e-05/0.4381, allocations: 7.922 kB / 0.6096 GB, free: 9.93 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.429e-05/0.4381, allocations: 19.98 kB / 0.6096 GB, free: 9.91 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.4382, allocations: 8 kB / 0.6096 GB, free: 9.902 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004199/0.4386, allocations: 202.1 kB / 0.6098 GB, free: 9.707 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001352/0.4399, allocations: 0.8538 MB / 0.6107 GB, free: 8.797 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003854/0.4403, allocations: 210.8 kB / 0.6109 GB, free: 8.582 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002124/0.4406, allocations: 108.8 kB / 0.611 GB, free: 8.473 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.41e-05/0.4406, allocations: 11.92 kB / 0.611 GB, free: 8.461 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004091/0.441, allocations: 240.4 kB / 0.6112 GB, free: 8.219 MB / 426.7 MB Notification: Performance of pre-optimization done (n=31): time 1.873e-06/0.441, allocations: 0 / 0.6112 GB, free: 8.219 MB / 426.7 MB Notification: Performance of matching and sorting (n=31): time 0.000808/0.4419, allocations: 401.8 kB / 0.6116 GB, free: 7.82 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.455e-05/0.4419, allocations: 55.41 kB / 0.6116 GB, free: 7.754 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002348/0.4421, allocations: 254.7 kB / 0.6119 GB, free: 7.5 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.327e-05/0.4422, allocations: 37.69 kB / 0.6119 GB, free: 7.457 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001082/0.4423, allocations: 184.4 kB / 0.6121 GB, free: 7.273 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.671e-05/0.4424, allocations: 98.61 kB / 0.6122 GB, free: 7.176 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.712e-05/0.4424, allocations: 8 kB / 0.6122 GB, free: 7.168 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.4426, allocations: 342.8 kB / 0.6125 GB, free: 6.824 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002072/0.4428, allocations: 92.69 kB / 0.6126 GB, free: 6.73 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002868/0.4431, allocations: 238.5 kB / 0.6128 GB, free: 6.438 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005237/0.4436, allocations: 348.9 kB / 0.6132 GB, free: 6.035 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.4436, allocations: 3.938 kB / 0.6132 GB, free: 6.031 MB / 426.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006492/0.4443, allocations: 401.1 kB / 0.6136 GB, free: 5.633 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/0.4443, allocations: 8 kB / 0.6136 GB, free: 5.625 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.4443, allocations: 4 kB / 0.6136 GB, free: 5.621 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.559e-05/0.4443, allocations: 4 kB / 0.6136 GB, free: 5.617 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002871/0.4446, allocations: 79.83 kB / 0.6136 GB, free: 5.539 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.145e-05/0.4446, allocations: 7.938 kB / 0.6136 GB, free: 5.531 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000173/0.4448, allocations: 39.78 kB / 0.6137 GB, free: 5.492 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.592e-05/0.4449, allocations: 19.98 kB / 0.6137 GB, free: 5.473 MB / 426.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_last,mean.y_last,$PRE.rectifiedMean.mean.y_last,rectifiedMean.mean.y_last,$PRE.rootMeanSquare.mean.y_last,rootMeanSquare.mean.y_last,$PRE.harmonic.mean1.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean2.y_last,harmonic.mean2.y_last) * 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.0001837/0.445, allocations: 166.9 kB / 0.6139 GB, free: 5.301 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.849e-05/0.4451, allocations: 39.55 kB / 0.6139 GB, free: 5.262 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006717/0.4458, allocations: 333.1 kB / 0.6142 GB, free: 4.93 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.251e-06/0.4458, allocations: 4 kB / 0.6142 GB, free: 4.926 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.972e-06/0.4458, allocations: 0 / 0.6142 GB, free: 4.926 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.4458, allocations: 3.984 kB / 0.6142 GB, free: 4.922 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001055/0.4469, allocations: 0.7363 MB / 0.6149 GB, free: 4.129 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.377e-06/0.4469, allocations: 0 / 0.6149 GB, free: 4.129 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002855/0.4472, allocations: 55.89 kB / 0.615 GB, free: 4.074 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.656e-06/0.4472, allocations: 4 kB / 0.615 GB, free: 4.07 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.029e-05/0.4472, allocations: 8 kB / 0.615 GB, free: 4.062 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.4472, allocations: 0 / 0.615 GB, free: 4.062 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.4473, allocations: 0 / 0.615 GB, free: 4.062 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009677/0.4482, allocations: 0.55 MB / 0.6155 GB, free: 3.496 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.292e-05/0.4483, allocations: 108.8 kB / 0.6157 GB, free: 3.371 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.626e-05/0.4484, allocations: 8 kB / 0.6157 GB, free: 3.363 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001684/0.4485, allocations: 16.39 kB / 0.6157 GB, free: 3.348 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.771e-05/0.4486, allocations: 27.97 kB / 0.6157 GB, free: 3.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.555e-05/0.4487, allocations: 11.98 kB / 0.6157 GB, free: 3.309 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001826/0.4488, allocations: 182 kB / 0.6159 GB, free: 3.133 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.683e-06/0.4488, allocations: 0 / 0.6159 GB, free: 3.133 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004228/0.4493, allocations: 87.61 kB / 0.616 GB, free: 3.047 MB / 426.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_last,rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,harmonic.mean1.y_last,harmonic.mean2.y_last) * 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.000183/0.4495, allocations: 123 kB / 0.6161 GB, free: 2.914 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.000571/0.45, allocations: 283.3 kB / 0.6164 GB, free: 2.641 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.4501, allocations: 192 / 0.6164 GB, free: 2.641 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002516/0.4503, allocations: 136 kB / 0.6165 GB, free: 2.508 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003633/0.4507, allocations: 44.42 kB / 0.6165 GB, free: 2.461 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001111/0.4518, allocations: 0.7636 MB / 0.6173 GB, free: 1.66 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003586/0.4522, allocations: 0.7841 MB / 0.618 GB, free: 0.8438 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.877e-05/0.4523, allocations: 39.42 kB / 0.6181 GB, free: 0.8086 MB / 426.7 MB Notification: Performance of SimCode: time 4.41e-07/0.4523, allocations: 0 / 0.6181 GB, free: 0.8086 MB / 426.7 MB Notification: Performance of Templates: time 0.006109/0.4584, allocations: 3.741 MB / 0.6217 GB, free: 13.07 MB / 442.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Mean.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Mean --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Mean.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Mean/Mean.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches