Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009956/0.0009956, allocations: 80.05 kB / 20.72 MB, free: 3.77 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001085/0.001085, allocations: 169 kB / 24.14 MB, free: 360 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9155/0.9155, allocations: 158.6 MB / 186 MB, free: 2.77 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1608/0.1608, allocations: 32.38 MB / 270.7 MB, free: 14.6 MB / 266.7 MB " [Timeout remaining time 180] 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 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 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.122e-06/1.122e-06, allocations: 0 / 299.1 MB, free: 2.168 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.279e-05/1.392e-05, allocations: 2.312 kB / 299.1 MB, free: 2.164 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.1376/0.1376, allocations: 2.212 MB / 301.3 MB, free: 19.25 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001378/0.139, allocations: 0.8156 MB / 302.1 MB, free: 19.18 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001277/0.1391, allocations: 13.95 kB / 302.1 MB, free: 19.17 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000122/0.1392, allocations: 30.84 kB / 302.2 MB, free: 19.15 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001999/0.1394, allocations: 73.19 kB / 302.2 MB, free: 19.12 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002681/0.1397, allocations: 145 kB / 302.4 MB, free: 19.11 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002819/0.14, allocations: 360.3 kB / 302.7 MB, free: 19.05 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001574/0.1401, allocations: 86.42 kB / 302.8 MB, free: 19.05 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002216/0.1404, allocations: 216 kB / 303 MB, free: 18.98 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001602/0.1405, allocations: 113.8 kB / 303.1 MB, free: 18.95 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.215e-05/0.1406, allocations: 34.41 kB / 303.2 MB, free: 18.95 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.12e-05/0.1406, allocations: 30.69 kB / 303.2 MB, free: 18.95 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.77e-05/0.1407, allocations: 77.27 kB / 303.3 MB, free: 18.9 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.946e-05/0.1407, allocations: 103.8 kB / 303.4 MB, free: 18.86 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002294/0.141, allocations: 248 kB / 303.6 MB, free: 18.74 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.141, allocations: 1.484 kB / 303.6 MB, free: 18.74 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.003e-06/0.141, allocations: 0.9375 kB / 303.6 MB, free: 18.74 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.56e-06/0.141, allocations: 0.5312 kB / 303.6 MB, free: 18.74 MB / 282.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.0005563/0.1415, allocations: 0.5104 MB / 304.1 MB, free: 18.36 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.84e-05/0.1416, allocations: 9.438 kB / 304.1 MB, free: 18.36 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.058e-05/0.1416, allocations: 48.05 kB / 304.2 MB, free: 18.35 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002096/0.1419, allocations: 223.9 kB / 304.4 MB, free: 18.18 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.104e-05/0.1419, allocations: 22.11 kB / 304.4 MB, free: 18.17 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.904e-05/0.1419, allocations: 40.06 kB / 304.5 MB, free: 18.15 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002465/0.1422, allocations: 180.9 kB / 304.7 MB, free: 18.08 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.1422, allocations: 2.016 kB / 304.7 MB, free: 18.08 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.884e-05/0.1422, allocations: 16.91 kB / 304.7 MB, free: 18.07 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.1422, allocations: 5.312 kB / 304.7 MB, free: 18.07 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.322e-05/0.1423, allocations: 57.06 kB / 304.7 MB, free: 18.07 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006462/0.1429, allocations: 476.9 kB / 305.2 MB, free: 17.82 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001832/0.1431, allocations: 114.9 kB / 305.3 MB, free: 17.79 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.426e-05/0.1432, allocations: 39.42 kB / 305.3 MB, free: 17.77 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.294e-05/0.1432, allocations: 7.094 kB / 305.4 MB, free: 17.77 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002049/0.1434, allocations: 171.3 kB / 305.5 MB, free: 17.71 MB / 282.7 MB Notification: Performance of pre-optimization done (n=31): time 1.774e-06/0.1434, allocations: 0 / 305.5 MB, free: 17.71 MB / 282.7 MB Notification: Performance of matching and sorting (n=31): time 0.0002658/0.1437, allocations: 168.4 kB / 305.7 MB, free: 17.67 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.878e-05/0.1437, allocations: 57.47 kB / 305.7 MB, free: 17.61 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000138/0.1438, allocations: 221.6 kB / 306 MB, free: 17.48 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.098e-05/0.1439, allocations: 37.42 kB / 306 MB, free: 17.45 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.174e-05/0.1439, allocations: 157.4 kB / 306.1 MB, free: 17.32 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.596e-05/0.144, allocations: 95.25 kB / 306.2 MB, free: 17.26 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.485e-05/0.144, allocations: 77.44 kB / 306.3 MB, free: 17.22 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.802e-05/0.1441, allocations: 352.2 kB / 306.7 MB, free: 16.88 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.748e-05/0.1441, allocations: 30.5 kB / 306.7 MB, free: 16.88 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.341e-05/0.1442, allocations: 167.9 kB / 306.9 MB, free: 16.71 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001985/0.1444, allocations: 252.1 kB / 307.1 MB, free: 16.51 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.1444, allocations: 2.594 kB / 307.1 MB, free: 16.51 MB / 282.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000277/0.1447, allocations: 223.1 kB / 307.3 MB, free: 16.44 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.258e-05/0.1447, allocations: 7.203 kB / 307.3 MB, free: 16.44 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.166e-05/0.1448, allocations: 5.484 kB / 307.3 MB, free: 16.44 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.1e-05/0.1448, allocations: 6.688 kB / 307.3 MB, free: 16.44 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001955/0.145, allocations: 86.91 kB / 307.4 MB, free: 16.43 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.204e-06/0.145, allocations: 7.75 kB / 307.4 MB, free: 16.43 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.406e-05/0.1451, allocations: 36.42 kB / 307.5 MB, free: 16.4 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.553e-05/0.1451, allocations: 15.91 kB / 307.5 MB, free: 16.4 MB / 282.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,mean.y,$PRE.mean.y,rectifiedMean.mean.y,$PRE.rectifiedMean.mean.y,rootMeanSquare.mean.y,$PRE.rootMeanSquare.mean.y,harmonic.mean2.y,$PRE.harmonic.mean2.y,harmonic.mean1.y,$PRE.harmonic.mean1.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.008e-05/0.1452, allocations: 153.6 kB / 307.6 MB, free: 16.25 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.392e-05/0.1452, allocations: 27.81 kB / 307.7 MB, free: 16.25 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002179/0.1454, allocations: 162.8 kB / 307.8 MB, free: 16.19 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.1454, allocations: 8.25 kB / 307.8 MB, free: 16.18 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.523e-06/0.1454, allocations: 4 kB / 307.8 MB, free: 16.18 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.1454, allocations: 2.875 kB / 307.8 MB, free: 16.18 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003352/0.1458, allocations: 386.7 kB / 308.2 MB, free: 15.94 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.1458, allocations: 1.438 kB / 308.2 MB, free: 15.94 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001397/0.1459, allocations: 47.44 kB / 308.3 MB, free: 15.94 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.524e-06/0.1459, allocations: 2.188 kB / 308.3 MB, free: 15.94 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.614e-05/0.1459, allocations: 13.17 kB / 308.3 MB, free: 15.93 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.1459, allocations: 1.406 kB / 308.3 MB, free: 15.93 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.1459, allocations: 3.516 kB / 308.3 MB, free: 15.93 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002669/0.1462, allocations: 308.8 kB / 308.6 MB, free: 15.76 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.308e-05/0.1462, allocations: 28.73 kB / 308.6 MB, free: 15.74 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.775e-05/0.1462, allocations: 12.22 kB / 308.6 MB, free: 15.73 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.656e-05/0.1463, allocations: 10.92 kB / 308.6 MB, free: 15.73 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.308e-05/0.1464, allocations: 22.81 kB / 308.7 MB, free: 15.72 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.438e-05/0.1464, allocations: 7.734 kB / 308.7 MB, free: 15.72 MB / 282.7 MB Notification: Performance of sorting global known variables: time 6.674e-05/0.1464, allocations: 73.67 kB / 308.7 MB, free: 15.7 MB / 282.7 MB Notification: Performance of sort global known variables: time 2e-07/0.1464, allocations: 0 / 308.7 MB, free: 15.7 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002173/0.1467, allocations: 72.59 kB / 308.8 MB, free: 15.68 MB / 282.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.2e-05/0.1467, allocations: 96.09 kB / 308.9 MB, free: 15.6 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001986/0.1469, allocations: 153.1 kB / 309 MB, free: 15.56 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.518e-06/0.1469, allocations: 2.188 kB / 309.1 MB, free: 15.56 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 8.908e-05/0.147, allocations: 75.86 kB / 309.1 MB, free: 15.54 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001889/0.1472, allocations: 46.95 kB / 309.2 MB, free: 15.53 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007159/0.1479, allocations: 0.5423 MB / 309.7 MB, free: 15.17 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.503e-05/0.148, allocations: 96.02 kB / 309.8 MB, free: 15.1 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 8.297e-05/0.1481, allocations: 40.3 kB / 309.8 MB, free: 15.09 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001048/0.1482, allocations: 95.06 kB / 309.9 MB, free: 15.04 MB / 282.7 MB Notification: Performance of SimCode: time 5.51e-07/0.1482, allocations: 1.5 kB / 309.9 MB, free: 15.04 MB / 282.7 MB Notification: Performance of Templates: time 0.004821/0.153, allocations: 2.673 MB / 312.6 MB, free: 14.38 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Mean/Mean.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9753860398195684]