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.001194/0.001194, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.0009252/0.0009252, allocations: 165.8 kB / 24.82 MB, free: 9.266 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 0.9422/0.9422, allocations: 177.1 MB / 205.3 MB, free: 5.473 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.2294/0.2294, allocations: 32.81 MB / 294.6 MB, free: 1.254 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 1.172e-06/1.172e-06, allocations: 0 / 376.5 MB, free: 4.402 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.084e-05/1.201e-05, allocations: 6.25 kB / 376.5 MB, free: 4.395 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002021/0.002033, allocations: 2.242 MB / 378.7 MB, free: 2.137 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009228/0.002956, allocations: 0.8723 MB / 379.6 MB, free: 1.258 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000103/0.003059, allocations: 15.88 kB / 379.6 MB, free: 1.242 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001017/0.003161, allocations: 39.47 kB / 379.6 MB, free: 1.203 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000153/0.003314, allocations: 71.33 kB / 379.7 MB, free: 1.133 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003887/0.003702, allocations: 183.5 kB / 379.9 MB, free: 0.9531 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002591/0.003961, allocations: 398.8 kB / 380.3 MB, free: 0.5625 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001482/0.00411, allocations: 88.78 kB / 380.4 MB, free: 488 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002033/0.004313, allocations: 227.5 kB / 380.6 MB, free: 260 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001275/0.004441, allocations: 119.6 kB / 380.7 MB, free: 140 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 3.693e-05/0.004477, allocations: 36 kB / 380.7 MB, free: 104 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.601e-05/0.004543, allocations: 55.92 kB / 380.8 MB, free: 48 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.415e-05/0.004608, allocations: 87.75 kB / 380.9 MB, free: 15.96 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 7.509e-05/0.004683, allocations: 111.7 kB / 381 MB, free: 15.85 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002326/0.004915, allocations: 282.7 kB / 381.3 MB, free: 15.57 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.402e-06/0.004917, allocations: 0 / 381.3 MB, free: 15.57 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.61e-07/0.004917, allocations: 0 / 381.3 MB, free: 15.57 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.848e-06/0.004921, allocations: 0 / 381.3 MB, free: 15.57 MB / 362.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.0006784/0.005599, allocations: 0.8519 MB / 382.1 MB, free: 14.67 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.062e-05/0.00563, allocations: 12.03 kB / 382.1 MB, free: 14.66 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000248/0.005878, allocations: 100.6 kB / 382.2 MB, free: 14.56 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002496/0.006128, allocations: 288.4 kB / 382.5 MB, free: 14.25 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.257e-05/0.00615, allocations: 25.03 kB / 382.5 MB, free: 14.22 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.833e-05/0.006188, allocations: 40.31 kB / 382.6 MB, free: 14.18 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000213/0.006402, allocations: 191.3 kB / 382.8 MB, free: 13.99 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.006414, allocations: 192 / 382.8 MB, free: 13.99 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.899e-05/0.006433, allocations: 16.12 kB / 382.8 MB, free: 13.98 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.006439, allocations: 4 kB / 382.8 MB, free: 13.97 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.374e-05/0.006533, allocations: 76.45 kB / 382.9 MB, free: 13.89 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006766/0.007209, allocations: 0.668 MB / 383.5 MB, free: 13.2 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001727/0.007382, allocations: 147.2 kB / 383.7 MB, free: 13.04 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.063e-05/0.007433, allocations: 43.66 kB / 383.7 MB, free: 12.99 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.052e-05/0.007453, allocations: 4 kB / 383.7 MB, free: 12.99 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000162/0.007615, allocations: 180.8 kB / 383.9 MB, free: 12.8 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 1.413e-06/0.007616, allocations: 0 / 383.9 MB, free: 12.8 MB / 362.7 MB Notification: Performance of matching and sorting (n=31): time 0.0002966/0.007913, allocations: 242.1 kB / 384.1 MB, free: 12.55 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.029e-05/0.007943, allocations: 63.34 kB / 384.2 MB, free: 12.48 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001457/0.008089, allocations: 298.2 kB / 384.5 MB, free: 12.17 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.114e-05/0.00811, allocations: 41.69 kB / 384.5 MB, free: 12.12 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.834e-05/0.008199, allocations: 243.3 kB / 384.8 MB, free: 11.88 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.363e-05/0.008252, allocations: 95.2 kB / 384.9 MB, free: 11.79 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.79e-05/0.00832, allocations: 79.69 kB / 384.9 MB, free: 11.7 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.008432, allocations: 0.5195 MB / 385.5 MB, free: 11.16 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.255e-05/0.008475, allocations: 32.72 kB / 385.5 MB, free: 11.13 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001154/0.00859, allocations: 223 kB / 385.7 MB, free: 10.83 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002076/0.008798, allocations: 293.4 kB / 386 MB, free: 10.46 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.008801, allocations: 4 kB / 386 MB, free: 10.46 MB / 362.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0002531/0.009054, allocations: 284.9 kB / 386.3 MB, free: 10.17 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.232e-05/0.009066, allocations: 8 kB / 386.3 MB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-06/0.009072, allocations: 4 kB / 386.3 MB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/0.009085, allocations: 8.469 kB / 386.3 MB, free: 10.15 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001654/0.009251, allocations: 87.77 kB / 386.4 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.909e-06/0.009256, allocations: 7.938 kB / 386.4 MB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.112e-05/0.009337, allocations: 39.77 kB / 386.4 MB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.383e-05/0.00935, allocations: 12 kB / 386.4 MB, free: 10.01 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 9.791e-05/0.009448, allocations: 185.4 kB / 386.6 MB, free: 9.816 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.699e-05/0.009485, allocations: 47.8 kB / 386.7 MB, free: 9.77 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004936/0.009979, allocations: 224.4 kB / 386.9 MB, free: 9.547 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.009982, allocations: 0 / 386.9 MB, free: 9.547 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.164e-06/0.009984, allocations: 7.938 kB / 386.9 MB, free: 9.539 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.009988, allocations: 0 / 386.9 MB, free: 9.539 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003842/0.01037, allocations: 0.5133 MB / 387.4 MB, free: 8.992 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.01037, allocations: 4 kB / 387.4 MB, free: 8.988 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001242/0.0105, allocations: 47.91 kB / 387.5 MB, free: 8.941 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.988e-06/0.0105, allocations: 4 kB / 387.5 MB, free: 8.938 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.711e-05/0.01052, allocations: 7.984 kB / 387.5 MB, free: 8.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.01052, allocations: 7.938 kB / 387.5 MB, free: 8.922 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.01053, allocations: 4 kB / 387.5 MB, free: 8.918 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003202/0.01085, allocations: 415.9 kB / 387.9 MB, free: 8.492 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.408e-05/0.01087, allocations: 35.73 kB / 387.9 MB, free: 8.457 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.461e-05/0.01089, allocations: 8 kB / 387.9 MB, free: 8.449 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001159/0.01101, allocations: 11.94 kB / 387.9 MB, free: 8.438 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.199e-05/0.01105, allocations: 23.95 kB / 388 MB, free: 8.414 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.354e-05/0.01107, allocations: 15.98 kB / 388 MB, free: 8.398 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.825e-05/0.01114, allocations: 199 kB / 388.2 MB, free: 8.203 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01114, allocations: 0 / 388.2 MB, free: 8.203 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002136/0.01136, allocations: 71.84 kB / 388.2 MB, free: 8.133 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 7.542e-05/0.01143, allocations: 118.4 kB / 388.4 MB, free: 8.012 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001846/0.01162, allocations: 167.2 kB / 388.5 MB, free: 7.844 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.412e-06/0.01162, allocations: 4.938 kB / 388.5 MB, free: 7.84 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.504e-05/0.0117, allocations: 83.5 kB / 388.6 MB, free: 7.754 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000231/0.01194, allocations: 57.28 kB / 388.7 MB, free: 7.699 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007019/0.01264, allocations: 0.577 MB / 389.2 MB, free: 7.086 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.182e-05/0.01269, allocations: 101.5 kB / 389.3 MB, free: 6.969 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.52e-05/0.01276, allocations: 34.97 kB / 389.4 MB, free: 6.934 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001105/0.01287, allocations: 130.1 kB / 389.5 MB, free: 6.805 MB / 362.7 MB Notification: Performance of SimCode: time 7.32e-07/0.01288, allocations: 0 / 389.5 MB, free: 6.805 MB / 362.7 MB Notification: Performance of Templates: time 0.004366/0.01724, allocations: 3.012 MB / 392.5 MB, free: 3.848 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: 2.8267472218722105]