Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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.001195/0.001195, allocations: 71.77 kB / 21.69 MB, free: 2.859 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.001416/0.001416, allocations: 162.6 kB / 24.99 MB, free: 8.336 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.012/1.012, allocations: 177.1 MB / 205.3 MB, free: 5.641 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2803/0.2803, allocations: 32.8 MB / 294.6 MB, free: 1.199 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.0.0_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.316e-06/3.316e-06, allocations: 0 / 376 MB, free: 4.996 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.931e-05/3.262e-05, allocations: 4.141 kB / 376 MB, free: 4.992 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002945/0.002978, allocations: 2.27 MB / 378.3 MB, free: 2.707 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001604/0.004582, allocations: 0.8684 MB / 379.1 MB, free: 1.832 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001681/0.00475, allocations: 11.94 kB / 379.1 MB, free: 1.82 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001438/0.004894, allocations: 35.53 kB / 379.2 MB, free: 1.785 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002355/0.005129, allocations: 71.31 kB / 379.2 MB, free: 1.715 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005962/0.005725, allocations: 191.4 kB / 379.4 MB, free: 1.527 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003889/0.006114, allocations: 398.8 kB / 379.8 MB, free: 1.137 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001993/0.006314, allocations: 84.84 kB / 379.9 MB, free: 1.055 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002824/0.006596, allocations: 223.4 kB / 380.1 MB, free: 0.8359 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001608/0.006757, allocations: 123.6 kB / 380.2 MB, free: 0.7148 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 4.966e-05/0.006807, allocations: 36 kB / 380.3 MB, free: 0.6797 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.496e-05/0.006892, allocations: 51.94 kB / 380.3 MB, free: 0.6289 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.536e-05/0.006957, allocations: 87.66 kB / 380.4 MB, free: 0.543 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001085/0.007065, allocations: 119.7 kB / 380.5 MB, free: 436 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000431/0.007496, allocations: 282.9 kB / 380.8 MB, free: 152 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.0075, allocations: 0 / 380.8 MB, free: 152 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.007501, allocations: 4 kB / 380.8 MB, free: 148 kB / 346.7 MB Notification: Performance of Transformations before backend: time 9.839e-06/0.007511, allocations: 3.938 kB / 380.8 MB, free: 144 kB / 346.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.0009776/0.008489, allocations: 0.8288 MB / 381.6 MB, free: 15.26 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.008528, allocations: 8.031 kB / 381.6 MB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003203/0.008848, allocations: 108.5 kB / 381.8 MB, free: 15.14 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003673/0.009215, allocations: 309 kB / 382.1 MB, free: 14.81 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.64e-05/0.009242, allocations: 21.03 kB / 382.1 MB, free: 14.79 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.467e-05/0.009287, allocations: 40.33 kB / 382.1 MB, free: 14.75 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003111/0.009598, allocations: 207.3 kB / 382.3 MB, free: 14.55 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.58e-05/0.009613, allocations: 4.125 kB / 382.3 MB, free: 14.54 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.66e-05/0.00964, allocations: 16.12 kB / 382.3 MB, free: 14.53 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.321e-05/0.009653, allocations: 15.98 kB / 382.4 MB, free: 14.51 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001654/0.009819, allocations: 87.88 kB / 382.4 MB, free: 14.42 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009306/0.01075, allocations: 0.7143 MB / 383.2 MB, free: 13.67 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002484/0.011, allocations: 147.3 kB / 383.3 MB, free: 13.51 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.426e-05/0.01108, allocations: 55.66 kB / 383.4 MB, free: 13.45 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.74e-05/0.01111, allocations: 4 kB / 383.4 MB, free: 13.45 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002262/0.01134, allocations: 180.8 kB / 383.5 MB, free: 13.26 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 2.204e-06/0.01134, allocations: 0 / 383.5 MB, free: 13.26 MB / 362.7 MB Notification: Performance of matching and sorting (n=31): time 0.0004514/0.01179, allocations: 274 kB / 383.8 MB, free: 12.98 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.285e-05/0.01183, allocations: 55.41 kB / 383.9 MB, free: 12.92 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002064/0.01204, allocations: 306.3 kB / 384.2 MB, free: 12.61 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.94e-05/0.01207, allocations: 37.7 kB / 384.2 MB, free: 12.56 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001081/0.01218, allocations: 235.3 kB / 384.4 MB, free: 12.32 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.402e-05/0.01224, allocations: 95.23 kB / 384.5 MB, free: 12.23 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.826e-05/0.01232, allocations: 75.72 kB / 384.6 MB, free: 12.14 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001352/0.01245, allocations: 0.5157 MB / 385.1 MB, free: 11.62 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.847e-05/0.01253, allocations: 40.72 kB / 385.1 MB, free: 11.58 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001653/0.0127, allocations: 239.1 kB / 385.4 MB, free: 11.26 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002687/0.01297, allocations: 317.4 kB / 385.7 MB, free: 10.87 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.01297, allocations: 7.938 kB / 385.7 MB, free: 10.86 MB / 362.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003572/0.01333, allocations: 301.3 kB / 386 MB, free: 10.56 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.989e-05/0.01335, allocations: 12.06 kB / 386 MB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.01336, allocations: 4.141 kB / 386 MB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.241e-05/0.01338, allocations: 11.94 kB / 386 MB, free: 10.53 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002009/0.01358, allocations: 75.83 kB / 386.1 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.246e-05/0.01359, allocations: 11.98 kB / 386.1 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000103/0.0137, allocations: 35.78 kB / 386.1 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.637e-05/0.01371, allocations: 12 kB / 386.1 MB, free: 10.4 MB / 362.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_last,$PRE.mean.y_last,rectifiedMean.mean.y_last,$PRE.rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean1.y_last,harmonic.mean2.y_last,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002186/0.01393, allocations: 197.4 kB / 386.3 MB, free: 10.2 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.169e-05/0.01397, allocations: 39.81 kB / 386.4 MB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003354/0.01431, allocations: 236.4 kB / 386.6 MB, free: 9.918 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.01431, allocations: 11.94 kB / 386.6 MB, free: 9.906 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.828e-06/0.01432, allocations: 0 / 386.6 MB, free: 9.906 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.01432, allocations: 3.984 kB / 386.6 MB, free: 9.902 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005016/0.01483, allocations: 0.5713 MB / 387.2 MB, free: 9.289 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.01483, allocations: 0 / 387.2 MB, free: 9.289 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001376/0.01497, allocations: 47.91 kB / 387.2 MB, free: 9.242 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.01497, allocations: 11.88 kB / 387.3 MB, free: 9.23 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.96e-05/0.01499, allocations: 11.98 kB / 387.3 MB, free: 9.219 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.01499, allocations: 0 / 387.3 MB, free: 9.219 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-06/0.01499, allocations: 0 / 387.3 MB, free: 9.219 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004028/0.0154, allocations: 444 kB / 387.7 MB, free: 8.766 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.627e-05/0.01542, allocations: 35.73 kB / 387.7 MB, free: 8.73 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.273e-05/0.01545, allocations: 11.94 kB / 387.7 MB, free: 8.719 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.088e-05/0.01554, allocations: 8 kB / 387.8 MB, free: 8.711 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.277e-05/0.0156, allocations: 23.95 kB / 387.8 MB, free: 8.688 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.709e-05/0.01562, allocations: 19.92 kB / 387.8 MB, free: 8.668 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001126/0.01573, allocations: 215 kB / 388 MB, free: 8.461 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.01573, allocations: 0 / 388 MB, free: 8.461 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002541/0.01598, allocations: 71.84 kB / 388.1 MB, free: 8.391 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,harmonic.mean2.y_last,harmonic.mean1.y_last,rootMeanSquare.mean.y_last,rectifiedMean.mean.y_last,mean.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001108/0.01609, allocations: 107.2 kB / 388.2 MB, free: 8.277 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002665/0.01636, allocations: 184.1 kB / 388.4 MB, free: 8.094 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.01636, allocations: 8.062 kB / 388.4 MB, free: 8.086 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001123/0.01647, allocations: 91.52 kB / 388.5 MB, free: 7.992 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002625/0.01674, allocations: 40.33 kB / 388.5 MB, free: 7.957 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009036/0.01764, allocations: 0.589 MB / 389.1 MB, free: 7.332 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.33e-05/0.0177, allocations: 101.5 kB / 389.2 MB, free: 7.215 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.989e-05/0.01779, allocations: 42.95 kB / 389.2 MB, free: 7.172 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.303e-05/0.01786, allocations: 32.5 kB / 389.3 MB, free: 7.141 MB / 362.7 MB Notification: Performance of SimCode: time 8.61e-07/0.01786, allocations: 0 / 389.3 MB, free: 7.141 MB / 362.7 MB Notification: Performance of Templates: time 0.004893/0.02275, allocations: 2.779 MB / 392 MB, free: 4.398 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.143137385137379]