Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001268/0.002463, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0007698/0.0007698, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009393/0.001709, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.9718/0.9718, allocations: 177.2 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09193/1.064, allocations: 53.66 MB / 243.3 MB, free: 15.58 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2755/0.2755, allocations: 34.26 MB / 278.2 MB, free: 15.29 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02314/0.2987, allocations: 13.1 MB / 291.3 MB, free: 7.367 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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|yMean|yRectifiedMean|yRootMeanSquare|yHarmonicCos|yHarmonicSin|yHarmonicAbs|yHarmonicArg",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|yMean|yRectifiedMean|yRootMeanSquare|yHarmonicCos|yHarmonicSin|yHarmonicAbs|yHarmonicArg",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.704e-06/1.704e-06, allocations: 0 / 292.6 MB, free: 6.312 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.074e-05/1.244e-05, allocations: 3.859 kB / 292.6 MB, free: 6.309 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002664/0.002676, allocations: 2.308 MB / 294.9 MB, free: 3.992 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001217/0.003894, allocations: 0.8999 MB / 295.8 MB, free: 3.086 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001791/0.004073, allocations: 11.88 kB / 295.8 MB, free: 3.074 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 8.666e-05/0.00416, allocations: 43.47 kB / 295.9 MB, free: 3.031 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001409/0.004301, allocations: 75.31 kB / 296 MB, free: 2.957 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002919/0.004592, allocations: 179.5 kB / 296.1 MB, free: 2.781 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003126/0.004905, allocations: 386.8 kB / 296.5 MB, free: 2.402 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001568/0.005062, allocations: 91.94 kB / 296.6 MB, free: 2.312 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003205/0.005382, allocations: 264 kB / 296.9 MB, free: 2.055 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001516/0.005534, allocations: 127.6 kB / 297 MB, free: 1.93 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.371e-05/0.005578, allocations: 36 kB / 297 MB, free: 1.895 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.898e-05/0.005667, allocations: 48 kB / 297.1 MB, free: 1.848 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.825e-05/0.005725, allocations: 67.75 kB / 297.1 MB, free: 1.781 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.861e-05/0.005814, allocations: 87.75 kB / 297.2 MB, free: 1.695 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002826/0.006096, allocations: 254.9 kB / 297.5 MB, free: 1.445 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.162e-05/0.006108, allocations: 0 / 297.5 MB, free: 1.445 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.91e-07/0.006108, allocations: 4 kB / 297.5 MB, free: 1.441 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.193e-05/0.00612, allocations: 0 / 297.5 MB, free: 1.441 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0007014/0.006822, allocations: 0.6284 MB / 298.1 MB, free: 0.7852 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.539e-05/0.006847, allocations: 8.625 kB / 298.1 MB, free: 0.7773 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003206/0.007168, allocations: 173.8 kB / 298.3 MB, free: 0.5898 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002706/0.007438, allocations: 245.7 kB / 298.5 MB, free: 332 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.337e-05/0.007462, allocations: 25.02 kB / 298.5 MB, free: 308 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.317e-05/0.007505, allocations: 40.36 kB / 298.6 MB, free: 268 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002302/0.007735, allocations: 191.3 kB / 298.8 MB, free: 68 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/0.007748, allocations: 8.156 kB / 298.8 MB, free: 60 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.053e-05/0.007769, allocations: 16.12 kB / 298.8 MB, free: 44 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.632e-06/0.007775, allocations: 7.938 kB / 298.8 MB, free: 36 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001153/0.007891, allocations: 68.55 kB / 298.9 MB, free: 15.97 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007385/0.008629, allocations: 0.4957 MB / 299.4 MB, free: 15.45 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001765/0.008806, allocations: 115.5 kB / 299.5 MB, free: 15.33 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.621e-05/0.008862, allocations: 37.5 kB / 299.5 MB, free: 15.29 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.174e-05/0.008884, allocations: 8 kB / 299.5 MB, free: 15.28 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002004/0.009084, allocations: 171.6 kB / 299.7 MB, free: 15.1 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 1.473e-06/0.009085, allocations: 0 / 299.7 MB, free: 15.1 MB / 298.7 MB Notification: Performance of matching and sorting (n=31): time 0.0002471/0.009333, allocations: 169.5 kB / 299.9 MB, free: 14.93 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.855e-05/0.009371, allocations: 67.34 kB / 299.9 MB, free: 14.85 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001613/0.009532, allocations: 243 kB / 300.2 MB, free: 14.6 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.677e-05/0.009559, allocations: 41.69 kB / 300.2 MB, free: 14.55 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.354e-05/0.009633, allocations: 161.1 kB / 300.4 MB, free: 14.39 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.676e-05/0.0097, allocations: 103.1 kB / 300.5 MB, free: 14.29 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.855e-05/0.009778, allocations: 70.02 kB / 300.5 MB, free: 14.22 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.841e-05/0.009876, allocations: 350.7 kB / 300.9 MB, free: 13.87 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.876e-05/0.009925, allocations: 28.73 kB / 300.9 MB, free: 13.84 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001263/0.01005, allocations: 172 kB / 301.1 MB, free: 13.61 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002292/0.01028, allocations: 253.9 kB / 301.3 MB, free: 13.3 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.01028, allocations: 0 / 301.3 MB, free: 13.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000266/0.01055, allocations: 233.1 kB / 301.5 MB, free: 13.07 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.11e-05/0.01056, allocations: 4 kB / 301.5 MB, free: 13.07 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.01057, allocations: 8 kB / 301.5 MB, free: 13.06 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.003e-05/0.01058, allocations: 4 kB / 301.6 MB, free: 13.05 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002186/0.0108, allocations: 91.83 kB / 301.6 MB, free: 12.96 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.058e-05/0.01081, allocations: 15.92 kB / 301.7 MB, free: 12.95 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001081/0.01092, allocations: 32.19 kB / 301.7 MB, free: 12.92 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.9e-05/0.01093, allocations: 16 kB / 301.7 MB, free: 12.9 MB / 298.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.mean2.y_last,$PRE.harmonic.mean2.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean1.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.674e-05/0.01103, allocations: 148.5 kB / 301.9 MB, free: 12.75 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.2e-05/0.01107, allocations: 31.97 kB / 301.9 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000224/0.0113, allocations: 159.9 kB / 302 MB, free: 12.55 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.0113, allocations: 4 kB / 302 MB, free: 12.55 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.0113, allocations: 3.938 kB / 302 MB, free: 12.54 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/0.01131, allocations: 3.984 kB / 302 MB, free: 12.54 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003577/0.01167, allocations: 390.9 kB / 302.4 MB, free: 12.13 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.01167, allocations: 0 / 302.4 MB, free: 12.13 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001644/0.01183, allocations: 60.03 kB / 302.5 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.945e-05/0.01186, allocations: 35.73 kB / 302.5 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.01186, allocations: 0 / 302.5 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.239e-05/0.01189, allocations: 11.92 kB / 302.5 MB, free: 12.03 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.01189, allocations: 4 kB / 302.5 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.01189, allocations: 0 / 302.5 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002905/0.01218, allocations: 302.6 kB / 302.8 MB, free: 11.71 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.241e-05/0.01221, allocations: 16 kB / 302.9 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.841e-05/0.01231, allocations: 8 kB / 302.9 MB, free: 11.69 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.448e-05/0.01235, allocations: 27.89 kB / 302.9 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.486e-05/0.01237, allocations: 7.984 kB / 302.9 MB, free: 11.65 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.075e-05/0.01244, allocations: 84.64 kB / 303 MB, free: 11.57 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.01244, allocations: 7.938 kB / 303 MB, free: 11.56 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002742/0.01271, allocations: 79.77 kB / 303.1 MB, free: 11.48 MB / 298.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 (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.451e-05/0.01279, allocations: 88.36 kB / 303.1 MB, free: 11.39 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001977/0.01299, allocations: 157.3 kB / 303.3 MB, free: 11.23 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 7.735e-06/0.01299, allocations: 4 kB / 303.3 MB, free: 11.23 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.258e-05/0.01309, allocations: 80.61 kB / 303.4 MB, free: 11.14 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000222/0.01331, allocations: 67.86 kB / 303.5 MB, free: 11.08 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001643/0.01495, allocations: 0.5673 MB / 304 MB, free: 10.48 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.882e-05/0.01502, allocations: 105.5 kB / 304.1 MB, free: 10.36 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001001/0.01512, allocations: 39.23 kB / 304.2 MB, free: 10.32 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001215/0.01524, allocations: 99.34 kB / 304.3 MB, free: 10.22 MB / 298.7 MB Notification: Performance of SimCode: time 4.01e-07/0.01524, allocations: 0 / 304.3 MB, free: 10.22 MB / 298.7 MB Notification: Performance of Templates: time 0.008308/0.02355, allocations: 3.002 MB / 307.3 MB, free: 7.285 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.813108970411122]