Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_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_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Mean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001004/0.001004, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.182/1.182, allocations: 227.2 MB / 245 MB, free: 5.871 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000828/0.0008283, allocations: 103.8 kB / 297.3 MB, free: 5.977 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2708/0.2708, allocations: 45.24 MB / 394.7 MB, free: 31.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002449/0.0002449, allocations: 8 kB / 468.4 MB, free: 7.711 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2337/0.2339, allocations: 63.25 MB / 0.5192 GB, free: 37.39 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09373/0.3277, allocations: 89.4 MB / 0.6065 GB, free: 14.05 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001788/0.3279, allocations: 59.97 kB / 0.6065 GB, free: 13.99 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01328/0.3412, allocations: 4.69 MB / 0.6111 GB, free: 9.281 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3412, allocations: 0 / 0.6111 GB, free: 9.281 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.678e-05/0.3413, allocations: 8 kB / 0.6111 GB, free: 9.273 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.0008761/0.3421, allocations: 0.5959 MB / 0.6117 GB, free: 8.633 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.3422, allocations: 16.02 kB / 0.6117 GB, free: 8.617 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004236/0.3426, allocations: 79.5 kB / 0.6118 GB, free: 8.539 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004124/0.343, allocations: 322.9 kB / 0.6121 GB, free: 8.188 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.273e-05/0.3431, allocations: 28.55 kB / 0.6121 GB, free: 8.16 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.39e-05/0.3431, allocations: 35.91 kB / 0.6122 GB, free: 8.125 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004775/0.3436, allocations: 276.8 kB / 0.6124 GB, free: 7.844 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.316e-05/0.3437, allocations: 0 / 0.6124 GB, free: 7.844 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.799e-05/0.3437, allocations: 8 kB / 0.6124 GB, free: 7.836 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.3437, allocations: 8 kB / 0.6125 GB, free: 7.828 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004271/0.3441, allocations: 214.1 kB / 0.6127 GB, free: 7.621 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001274/0.3454, allocations: 0.8538 MB / 0.6135 GB, free: 6.711 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004113/0.3458, allocations: 214.8 kB / 0.6137 GB, free: 6.492 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.324e-05/0.3459, allocations: 3.938 kB / 0.6137 GB, free: 6.488 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004036/0.3463, allocations: 249.4 kB / 0.6139 GB, free: 6.234 MB / 426.7 MB Notification: Performance of pre-optimization done (n=31): time 1.774e-06/0.3463, allocations: 4 kB / 0.6139 GB, free: 6.23 MB / 426.7 MB Notification: Performance of matching and sorting (n=31): time 0.0007804/0.3471, allocations: 385.1 kB / 0.6143 GB, free: 5.848 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.324e-05/0.3471, allocations: 59.41 kB / 0.6144 GB, free: 5.777 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002039/0.3473, allocations: 229.9 kB / 0.6146 GB, free: 5.547 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.491e-05/0.3474, allocations: 33.7 kB / 0.6146 GB, free: 5.508 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.853e-05/0.3475, allocations: 188.4 kB / 0.6148 GB, free: 5.32 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.071e-05/0.3476, allocations: 90.7 kB / 0.6149 GB, free: 5.23 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.643e-05/0.3476, allocations: 8 kB / 0.6149 GB, free: 5.223 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001058/0.3477, allocations: 338.8 kB / 0.6152 GB, free: 4.883 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002098/0.3479, allocations: 100.7 kB / 0.6153 GB, free: 4.781 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002698/0.3482, allocations: 234.5 kB / 0.6155 GB, free: 4.492 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002547/0.3485, allocations: 131.8 kB / 0.6157 GB, free: 4.363 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.3485, allocations: 0 / 0.6157 GB, free: 4.363 MB / 426.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006442/0.3491, allocations: 389 kB / 0.616 GB, free: 3.977 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.317e-05/0.3491, allocations: 4 kB / 0.616 GB, free: 3.973 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.3492, allocations: 8 kB / 0.616 GB, free: 3.965 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/0.3492, allocations: 4 kB / 0.616 GB, free: 3.961 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003/0.3495, allocations: 87.83 kB / 0.6161 GB, free: 3.875 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.699e-06/0.3495, allocations: 8.188 kB / 0.6161 GB, free: 3.867 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001864/0.3497, allocations: 39.67 kB / 0.6162 GB, free: 3.828 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.671e-05/0.3497, allocations: 20 kB / 0.6162 GB, free: 3.809 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.000152/0.3499, allocations: 170.6 kB / 0.6164 GB, free: 3.633 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.962e-05/0.3499, allocations: 31.62 kB / 0.6164 GB, free: 3.602 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006368/0.3506, allocations: 332.3 kB / 0.6167 GB, free: 3.266 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.722e-06/0.3506, allocations: 7.984 kB / 0.6167 GB, free: 3.258 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.3506, allocations: 0 / 0.6167 GB, free: 3.258 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.3506, allocations: 4.141 kB / 0.6167 GB, free: 3.254 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008732/0.3515, allocations: 0.7363 MB / 0.6174 GB, free: 2.461 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.3515, allocations: 0 / 0.6174 GB, free: 2.461 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002603/0.3518, allocations: 55.91 kB / 0.6175 GB, free: 2.406 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.9e-06/0.3518, allocations: 4 kB / 0.6175 GB, free: 2.402 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.692e-05/0.3518, allocations: 11.98 kB / 0.6175 GB, free: 2.391 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.3518, allocations: 0 / 0.6175 GB, free: 2.391 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.3518, allocations: 0 / 0.6175 GB, free: 2.391 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00082/0.3527, allocations: 0.55 MB / 0.618 GB, free: 1.824 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.411e-05/0.3527, allocations: 100.8 kB / 0.6181 GB, free: 1.707 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.214e-05/0.3528, allocations: 8.062 kB / 0.6181 GB, free: 1.699 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001827/0.353, allocations: 19.98 kB / 0.6182 GB, free: 1.68 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.111e-05/0.353, allocations: 23.97 kB / 0.6182 GB, free: 1.656 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.513e-05/0.3531, allocations: 15.98 kB / 0.6182 GB, free: 1.641 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001464/0.3532, allocations: 182 kB / 0.6184 GB, free: 1.469 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3532, allocations: 0 / 0.6184 GB, free: 1.469 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0003543/0.3536, allocations: 83.69 kB / 0.6185 GB, free: 1.387 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.0001358/0.3537, allocations: 131 kB / 0.6186 GB, free: 1.25 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0005125/0.3543, allocations: 276.4 kB / 0.6188 GB, free: 0.9805 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3543, allocations: 4 kB / 0.6188 GB, free: 0.9766 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002387/0.3545, allocations: 135.8 kB / 0.619 GB, free: 0.8438 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002303/0.3548, allocations: 32.5 kB / 0.619 GB, free: 0.8086 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009238/0.3557, allocations: 0.7237 MB / 0.6197 GB, free: 60 kB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003097/0.356, allocations: 0.7997 MB / 0.6205 GB, free: 15.23 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0001419/0.3562, allocations: 43.23 kB / 0.6205 GB, free: 15.18 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.005e-05/0.3562, allocations: 23.44 kB / 0.6206 GB, free: 15.16 MB / 442.7 MB Notification: Performance of SimCode: time 1.854e-06/0.3562, allocations: 0 / 0.6206 GB, free: 15.16 MB / 442.7 MB Notification: Performance of Templates: time 0.004921/0.3612, allocations: 2.407 MB / 0.6229 GB, free: 12.77 MB / 442.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.Mean.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Mean/Mean.csv","../files/ModelicaTest_trunk_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches