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.001512/0.001512, allocations: 200.8 kB / 18.11 MB, free: 3.617 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.433/1.433, allocations: 226.5 MB / 245.4 MB, free: 6.367 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008409/0.0008408, allocations: 102.9 kB / 297.5 MB, free: 6.637 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4141/0.4141, allocations: 44.82 MB / 394.3 MB, free: 35.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004534/0.0004535, allocations: 4 kB / 467.9 MB, free: 12.03 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4345/0.435, allocations: 62.96 MB / 0.5184 GB, free: 37.56 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1378/0.5729, allocations: 89.27 MB / 0.6056 GB, free: 16 kB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002405/0.5731, allocations: 63.97 kB / 0.6056 GB, free: 15.96 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01496/0.5881, allocations: 4.67 MB / 0.6102 GB, free: 11.27 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.625e-06/0.5882, allocations: 4 kB / 0.6102 GB, free: 11.27 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.065e-05/0.5882, allocations: 7.938 kB / 0.6102 GB, free: 11.26 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.001609/0.5899, allocations: 0.5999 MB / 0.6108 GB, free: 10.61 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.551e-05/0.5899, allocations: 8.031 kB / 0.6108 GB, free: 10.61 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006231/0.5906, allocations: 88.36 kB / 0.6109 GB, free: 10.52 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007799/0.5914, allocations: 332 kB / 0.6112 GB, free: 10.16 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.198e-05/0.5915, allocations: 28.94 kB / 0.6112 GB, free: 10.13 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000108/0.5916, allocations: 36.36 kB / 0.6113 GB, free: 10.09 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006938/0.5923, allocations: 277.1 kB / 0.6115 GB, free: 9.812 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.511e-05/0.5923, allocations: 11.97 kB / 0.6116 GB, free: 9.801 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.731e-05/0.5924, allocations: 8 kB / 0.6116 GB, free: 9.793 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.188e-05/0.5924, allocations: 8 kB / 0.6116 GB, free: 9.785 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004968/0.5929, allocations: 206.1 kB / 0.6118 GB, free: 9.586 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001686/0.5946, allocations: 0.8499 MB / 0.6126 GB, free: 8.68 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004649/0.5951, allocations: 214.8 kB / 0.6128 GB, free: 8.461 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002295/0.5953, allocations: 104.8 kB / 0.6129 GB, free: 8.355 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.868e-05/0.5954, allocations: 11.92 kB / 0.6129 GB, free: 8.344 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004737/0.5959, allocations: 239.6 kB / 0.6131 GB, free: 8.098 MB / 426.7 MB Notification: Performance of pre-optimization done (n=31): time 5.36e-06/0.5959, allocations: 0 / 0.6131 GB, free: 8.098 MB / 426.7 MB Notification: Performance of matching and sorting (n=31): time 0.000903/0.5968, allocations: 397.1 kB / 0.6135 GB, free: 7.703 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.385e-05/0.5969, allocations: 59.39 kB / 0.6136 GB, free: 7.633 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003395/0.5972, allocations: 254.7 kB / 0.6138 GB, free: 7.379 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.476e-05/0.5973, allocations: 33.7 kB / 0.6139 GB, free: 7.34 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001422/0.5974, allocations: 180.4 kB / 0.614 GB, free: 7.16 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.431e-05/0.5975, allocations: 98.61 kB / 0.6141 GB, free: 7.062 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.498e-05/0.5976, allocations: 4 kB / 0.6141 GB, free: 7.059 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001653/0.5977, allocations: 350.8 kB / 0.6145 GB, free: 6.707 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002325/0.598, allocations: 96.7 kB / 0.6145 GB, free: 6.609 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003191/0.5983, allocations: 230.5 kB / 0.6148 GB, free: 6.324 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006054/0.5989, allocations: 360.7 kB / 0.6151 GB, free: 5.91 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-05/0.5989, allocations: 4 kB / 0.6151 GB, free: 5.906 MB / 426.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007613/0.5997, allocations: 389.1 kB / 0.6155 GB, free: 5.52 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.602e-05/0.5997, allocations: 12 kB / 0.6155 GB, free: 5.508 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.165e-05/0.5998, allocations: 7.938 kB / 0.6155 GB, free: 5.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.359e-05/0.5998, allocations: 8 kB / 0.6155 GB, free: 5.492 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003129/0.6001, allocations: 71.89 kB / 0.6156 GB, free: 5.422 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.65e-05/0.6001, allocations: 11.94 kB / 0.6156 GB, free: 5.41 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002158/0.6004, allocations: 39.77 kB / 0.6156 GB, free: 5.371 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.682e-05/0.6004, allocations: 16 kB / 0.6156 GB, free: 5.355 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.0002138/0.6006, allocations: 174.9 kB / 0.6158 GB, free: 5.176 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.268e-05/0.6007, allocations: 31.56 kB / 0.6158 GB, free: 5.145 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007137/0.6014, allocations: 341.1 kB / 0.6162 GB, free: 4.805 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.723e-06/0.6014, allocations: 4 kB / 0.6162 GB, free: 4.801 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.6014, allocations: 0 / 0.6162 GB, free: 4.801 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.6014, allocations: 0 / 0.6162 GB, free: 4.801 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001076/0.6025, allocations: 0.7402 MB / 0.6169 GB, free: 4.004 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.6025, allocations: 0 / 0.6169 GB, free: 4.004 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002554/0.6028, allocations: 51.91 kB / 0.6169 GB, free: 3.953 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.696e-06/0.6028, allocations: 0 / 0.6169 GB, free: 3.953 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.554e-05/0.6029, allocations: 11.98 kB / 0.617 GB, free: 3.941 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.6029, allocations: 4 kB / 0.617 GB, free: 3.938 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.6029, allocations: 4 kB / 0.617 GB, free: 3.934 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009754/0.6039, allocations: 0.5539 MB / 0.6175 GB, free: 3.363 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001069/0.604, allocations: 104.8 kB / 0.6176 GB, free: 3.242 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.406e-05/0.604, allocations: 8 kB / 0.6176 GB, free: 3.234 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001703/0.6042, allocations: 16.39 kB / 0.6176 GB, free: 3.219 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.528e-05/0.6043, allocations: 23.97 kB / 0.6177 GB, free: 3.195 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.749e-05/0.6044, allocations: 11.98 kB / 0.6177 GB, free: 3.184 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0002142/0.6046, allocations: 186 kB / 0.6178 GB, free: 3.004 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.047e-06/0.6046, allocations: 0 / 0.6178 GB, free: 3.004 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004495/0.6051, allocations: 91.62 kB / 0.6179 GB, free: 2.914 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.0002326/0.6053, allocations: 115 kB / 0.618 GB, free: 2.789 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0006172/0.6059, allocations: 283.6 kB / 0.6183 GB, free: 2.512 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.6059, allocations: 0 / 0.6183 GB, free: 2.512 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002613/0.6062, allocations: 136.8 kB / 0.6184 GB, free: 2.379 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000418/0.6066, allocations: 44.47 kB / 0.6185 GB, free: 2.332 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001286/0.6079, allocations: 0.7265 MB / 0.6192 GB, free: 1.574 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004491/0.6084, allocations: 0.7883 MB / 0.62 GB, free: 0.7539 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0001736/0.6086, allocations: 42.95 kB / 0.62 GB, free: 0.7148 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.654e-05/0.6087, allocations: 35.42 kB / 0.62 GB, free: 0.6836 MB / 426.7 MB Notification: Performance of SimCode: time 4.01e-07/0.6087, allocations: 0 / 0.62 GB, free: 0.6836 MB / 426.7 MB Notification: Performance of Templates: time 0.006769/0.6154, allocations: 2.418 MB / 0.6224 GB, free: 14.29 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/jenkins1/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