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.001455/0.001455, allocations: 88.31 kB / 20.96 MB, free: 3.469 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.001715/0.001715, allocations: 157.7 kB / 24.27 MB, free: 164 kB / 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.509/1.509, allocations: 177.1 MB / 204.6 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 178] 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.334/0.334, allocations: 32.79 MB / 293.9 MB, free: 1.219 MB / 266.7 MB " [Timeout remaining time 179] 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.803e-06/1.803e-06, allocations: 0 / 375.2 MB, free: 5.02 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.416e-05/2.597e-05, allocations: 6.312 kB / 375.2 MB, free: 5.012 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003953/0.003979, allocations: 2.177 MB / 377.4 MB, free: 2.816 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001778/0.005757, allocations: 0.8644 MB / 378.3 MB, free: 1.945 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001431/0.0059, allocations: 11.94 kB / 378.3 MB, free: 1.934 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001533/0.006053, allocations: 35.53 kB / 378.3 MB, free: 1.898 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000247/0.0063, allocations: 71.33 kB / 378.4 MB, free: 1.828 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004429/0.006743, allocations: 191.4 kB / 378.6 MB, free: 1.641 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004863/0.00723, allocations: 390.8 kB / 379 MB, free: 1.258 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002273/0.007457, allocations: 88.84 kB / 379.1 MB, free: 1.172 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003619/0.007819, allocations: 227.4 kB / 379.3 MB, free: 0.9492 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002324/0.008051, allocations: 123.6 kB / 379.4 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 6.202e-05/0.008113, allocations: 36 kB / 379.4 MB, free: 0.793 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001018/0.008215, allocations: 47.94 kB / 379.5 MB, free: 0.7461 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001059/0.008321, allocations: 91.66 kB / 379.6 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001523/0.008473, allocations: 111.7 kB / 379.7 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005506/0.009024, allocations: 430.5 kB / 380.1 MB, free: 128 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.009026, allocations: 4 kB / 380.1 MB, free: 124 kB / 346.7 MB Notification: Performance of FrontEnd: time 6.61e-07/0.009027, allocations: 0 / 380.1 MB, free: 124 kB / 346.7 MB Notification: Performance of Transformations before backend: time 5.661e-06/0.009033, allocations: 0 / 380.1 MB, free: 124 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.001399/0.01043, allocations: 0.7191 MB / 380.8 MB, free: 15.36 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.464e-05/0.01047, allocations: 12.03 kB / 380.8 MB, free: 15.34 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005419/0.01101, allocations: 104.5 kB / 380.9 MB, free: 15.24 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005952/0.0116, allocations: 314.2 kB / 381.3 MB, free: 14.91 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.422e-05/0.01164, allocations: 25.03 kB / 381.3 MB, free: 14.89 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.351e-05/0.01171, allocations: 36.33 kB / 381.3 MB, free: 14.85 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005818/0.01229, allocations: 270.6 kB / 381.6 MB, free: 14.58 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.104e-05/0.01231, allocations: 8.125 kB / 381.6 MB, free: 14.57 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.857e-05/0.01235, allocations: 16.12 kB / 381.6 MB, free: 14.56 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.152e-05/0.01236, allocations: 8 kB / 381.6 MB, free: 14.55 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004668/0.01283, allocations: 194.5 kB / 381.8 MB, free: 14.36 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001414/0.01424, allocations: 0.6721 MB / 382.5 MB, free: 13.65 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004533/0.0147, allocations: 194.3 kB / 382.7 MB, free: 13.46 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002383/0.01494, allocations: 92.8 kB / 382.7 MB, free: 13.37 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.396e-05/0.01497, allocations: 4 kB / 382.8 MB, free: 13.36 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004734/0.01544, allocations: 235.6 kB / 383 MB, free: 13.12 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 1.412e-06/0.01544, allocations: 0 / 383 MB, free: 13.12 MB / 362.7 MB Notification: Performance of matching and sorting (n=31): time 0.0009466/0.01639, allocations: 397.2 kB / 383.4 MB, free: 12.73 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.594e-05/0.01645, allocations: 55.41 kB / 383.4 MB, free: 12.66 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003192/0.01677, allocations: 268.2 kB / 383.7 MB, free: 12.39 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.625e-05/0.01681, allocations: 37.7 kB / 383.7 MB, free: 12.34 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004082/0.01722, allocations: 188.7 kB / 383.9 MB, free: 12.15 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000106/0.01733, allocations: 99.19 kB / 384 MB, free: 12.05 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001277/0.01745, allocations: 74.05 kB / 384.1 MB, free: 11.97 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002181/0.01767, allocations: 342.8 kB / 384.4 MB, free: 11.63 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002545/0.01793, allocations: 88.69 kB / 384.5 MB, free: 11.54 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003642/0.01829, allocations: 226.5 kB / 384.7 MB, free: 11.26 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006307/0.01892, allocations: 344.8 kB / 385.1 MB, free: 10.86 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.01893, allocations: 0 / 385.1 MB, free: 10.86 MB / 362.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007734/0.0197, allocations: 397.3 kB / 385.4 MB, free: 10.47 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.01972, allocations: 8 kB / 385.5 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.959e-06/0.01973, allocations: 4 kB / 385.5 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.98e-05/0.01976, allocations: 11.94 kB / 385.5 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003219/0.02008, allocations: 71.83 kB / 385.5 MB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.712e-05/0.0201, allocations: 11.98 kB / 385.5 MB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001908/0.02029, allocations: 35.78 kB / 385.6 MB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.915e-05/0.02032, allocations: 16 kB / 385.6 MB, free: 10.31 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.0002079/0.02052, allocations: 174.7 kB / 385.8 MB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.761e-05/0.0206, allocations: 39.95 kB / 385.8 MB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007376/0.02134, allocations: 332.2 kB / 386.1 MB, free: 9.766 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.526e-06/0.02135, allocations: 7.938 kB / 386.1 MB, free: 9.758 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.728e-06/0.02135, allocations: 0 / 386.1 MB, free: 9.758 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.552e-06/0.02136, allocations: 7.922 kB / 386.1 MB, free: 9.75 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00101/0.02237, allocations: 0.6111 MB / 386.8 MB, free: 9.102 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/0.02237, allocations: 0 / 386.8 MB, free: 9.102 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002543/0.02263, allocations: 51.91 kB / 386.8 MB, free: 9.051 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.44e-06/0.02263, allocations: 3.938 kB / 386.8 MB, free: 9.047 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.862e-05/0.02266, allocations: 11.98 kB / 386.8 MB, free: 9.035 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.02266, allocations: 0 / 386.8 MB, free: 9.035 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/0.02266, allocations: 4 kB / 386.8 MB, free: 9.031 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001006/0.02367, allocations: 0.5383 MB / 387.4 MB, free: 8.477 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.899e-05/0.02372, allocations: 31.81 kB / 387.4 MB, free: 8.445 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.06e-05/0.02377, allocations: 15.92 kB / 387.4 MB, free: 8.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001718/0.02394, allocations: 8 kB / 387.4 MB, free: 8.422 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.621e-05/0.02401, allocations: 23.95 kB / 387.4 MB, free: 8.398 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.12e-05/0.02404, allocations: 15.98 kB / 387.5 MB, free: 8.383 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002089/0.02425, allocations: 191 kB / 387.6 MB, free: 8.199 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.02425, allocations: 0 / 387.6 MB, free: 8.199 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004097/0.02466, allocations: 79.84 kB / 387.7 MB, free: 8.121 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.0001604/0.02482, allocations: 103.2 kB / 387.8 MB, free: 8.008 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006154/0.02543, allocations: 252.2 kB / 388.1 MB, free: 7.762 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/0.02544, allocations: 4.312 kB / 388.1 MB, free: 7.758 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002855/0.02573, allocations: 123.8 kB / 388.2 MB, free: 7.637 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004059/0.02613, allocations: 36.95 kB / 388.2 MB, free: 7.602 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001253/0.02738, allocations: 0.6138 MB / 388.8 MB, free: 6.957 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002384/0.02762, allocations: 182.1 kB / 389 MB, free: 6.762 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001603/0.02778, allocations: 47.22 kB / 389.1 MB, free: 6.711 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001026/0.02789, allocations: 36.48 kB / 389.1 MB, free: 6.676 MB / 362.7 MB Notification: Performance of SimCode: time 6.41e-07/0.02789, allocations: 0 / 389.1 MB, free: 6.676 MB / 362.7 MB Notification: Performance of Templates: time 0.008472/0.03636, allocations: 2.758 MB / 391.9 MB, free: 3.957 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.801700921962038]