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.00097/0.00097, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.0009828/0.0009828, allocations: 165.4 kB / 24.56 MB, free: 20 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 0.972/0.972, allocations: 177.1 MB / 205 MB, free: 5.613 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.2818/0.2818, allocations: 32.8 MB / 294.3 MB, free: 1.293 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.253e-06/1.253e-06, allocations: 0 / 376 MB, free: 4.68 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.755e-05/2.881e-05, allocations: 2.312 kB / 376 MB, free: 4.676 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002673/0.002702, allocations: 2.274 MB / 378.3 MB, free: 2.387 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001302/0.004004, allocations: 0.8685 MB / 379.2 MB, free: 1.512 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000149/0.004153, allocations: 7.938 kB / 379.2 MB, free: 1.504 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001427/0.004296, allocations: 39.47 kB / 379.2 MB, free: 1.465 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002154/0.004512, allocations: 71.27 kB / 379.3 MB, free: 1.395 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003926/0.004904, allocations: 191.5 kB / 379.5 MB, free: 1.207 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003492/0.005253, allocations: 398.8 kB / 379.8 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001843/0.005438, allocations: 84.84 kB / 379.9 MB, free: 0.7344 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003227/0.005761, allocations: 231.4 kB / 380.2 MB, free: 0.5078 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001734/0.005934, allocations: 119.6 kB / 380.3 MB, free: 400 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 4.282e-05/0.005977, allocations: 36 kB / 380.3 MB, free: 364 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.503e-05/0.006062, allocations: 47.94 kB / 380.4 MB, free: 316 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.911e-05/0.006131, allocations: 91.66 kB / 380.4 MB, free: 224 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001002/0.006231, allocations: 111.6 kB / 380.6 MB, free: 112 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003599/0.006591, allocations: 286.9 kB / 380.8 MB, free: 15.83 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.006595, allocations: 0 / 380.8 MB, free: 15.83 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.006596, allocations: 0 / 380.8 MB, free: 15.83 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.75e-06/0.006602, allocations: 0 / 380.8 MB, free: 15.83 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.0009165/0.007519, allocations: 0.8365 MB / 381.7 MB, free: 14.94 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.007556, allocations: 16.02 kB / 381.7 MB, free: 14.92 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000301/0.007857, allocations: 108.5 kB / 381.8 MB, free: 14.82 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007219/0.008579, allocations: 288.5 kB / 382.1 MB, free: 14.5 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.834e-05/0.008618, allocations: 25.03 kB / 382.1 MB, free: 14.48 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.569e-05/0.008673, allocations: 36.33 kB / 382.1 MB, free: 14.45 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000387/0.00906, allocations: 207.3 kB / 382.3 MB, free: 14.24 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.098e-05/0.009081, allocations: 8.188 kB / 382.3 MB, free: 14.23 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.692e-05/0.009108, allocations: 16.11 kB / 382.4 MB, free: 14.21 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.371e-05/0.009122, allocations: 8 kB / 382.4 MB, free: 14.21 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001629/0.009285, allocations: 87.86 kB / 382.5 MB, free: 14.12 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009905/0.01028, allocations: 0.7143 MB / 383.2 MB, free: 13.36 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000257/0.01053, allocations: 143.4 kB / 383.3 MB, free: 13.21 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.1e-05/0.01061, allocations: 56.25 kB / 383.4 MB, free: 13.15 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.675e-05/0.01064, allocations: 8 kB / 383.4 MB, free: 13.14 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002477/0.01089, allocations: 184.8 kB / 383.6 MB, free: 12.95 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 2.685e-06/0.01089, allocations: 4 kB / 383.6 MB, free: 12.95 MB / 362.7 MB Notification: Performance of matching and sorting (n=31): time 0.0004342/0.01132, allocations: 266.1 kB / 383.8 MB, free: 12.68 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.412e-05/0.01137, allocations: 59.34 kB / 383.9 MB, free: 12.61 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001992/0.01157, allocations: 306.3 kB / 384.2 MB, free: 12.3 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.793e-05/0.0116, allocations: 37.7 kB / 384.2 MB, free: 12.25 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001031/0.0117, allocations: 231.4 kB / 384.4 MB, free: 12.02 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.932e-05/0.01177, allocations: 99.22 kB / 384.5 MB, free: 11.92 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.847e-05/0.01185, allocations: 75.72 kB / 384.6 MB, free: 11.84 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.01198, allocations: 0.5157 MB / 385.1 MB, free: 11.31 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.867e-05/0.01206, allocations: 44.66 kB / 385.2 MB, free: 11.27 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00017/0.01223, allocations: 243.1 kB / 385.4 MB, free: 10.95 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002695/0.0125, allocations: 305.4 kB / 385.7 MB, free: 10.56 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.0125, allocations: 4 kB / 385.7 MB, free: 10.56 MB / 362.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003505/0.01285, allocations: 305.2 kB / 386 MB, free: 10.25 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.964e-05/0.01287, allocations: 8 kB / 386 MB, free: 10.25 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.01288, allocations: 4 kB / 386 MB, free: 10.24 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.169e-05/0.0129, allocations: 11.94 kB / 386 MB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002001/0.0131, allocations: 83.83 kB / 386.1 MB, free: 10.15 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.518e-06/0.01311, allocations: 7.938 kB / 386.1 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.389e-05/0.01321, allocations: 35.78 kB / 386.1 MB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.562e-05/0.01322, allocations: 12 kB / 386.2 MB, free: 10.09 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.0001183/0.01334, allocations: 193.6 kB / 386.4 MB, free: 9.895 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.125e-05/0.01338, allocations: 39.81 kB / 386.4 MB, free: 9.855 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003476/0.01373, allocations: 240.4 kB / 386.6 MB, free: 9.617 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.01373, allocations: 8.078 kB / 386.6 MB, free: 9.609 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.01374, allocations: 0 / 386.6 MB, free: 9.609 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.034e-06/0.01374, allocations: 7.969 kB / 386.6 MB, free: 9.602 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005034/0.01425, allocations: 0.5713 MB / 387.2 MB, free: 8.988 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.01425, allocations: 7.984 kB / 387.2 MB, free: 8.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001372/0.01439, allocations: 43.98 kB / 387.3 MB, free: 8.938 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.01439, allocations: 3.938 kB / 387.3 MB, free: 8.934 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.146e-05/0.01442, allocations: 11.98 kB / 387.3 MB, free: 8.922 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.916e-06/0.01442, allocations: 4 kB / 387.3 MB, free: 8.918 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.01442, allocations: 0 / 387.3 MB, free: 8.918 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004156/0.01484, allocations: 443.9 kB / 387.7 MB, free: 8.465 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.903e-05/0.01486, allocations: 31.73 kB / 387.7 MB, free: 8.434 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.397e-05/0.0149, allocations: 15.94 kB / 387.8 MB, free: 8.418 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.838e-05/0.01498, allocations: 11.98 kB / 387.8 MB, free: 8.406 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.827e-05/0.01503, allocations: 23.97 kB / 387.8 MB, free: 8.383 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.679e-05/0.01505, allocations: 15.98 kB / 387.8 MB, free: 8.367 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001137/0.01517, allocations: 211 kB / 388 MB, free: 8.16 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01517, allocations: 0 / 388 MB, free: 8.16 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002461/0.01541, allocations: 71.84 kB / 388.1 MB, free: 8.09 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.0001117/0.01552, allocations: 118.3 kB / 388.2 MB, free: 7.969 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002761/0.0158, allocations: 187.6 kB / 388.4 MB, free: 7.781 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.0158, allocations: 0 / 388.4 MB, free: 7.781 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001116/0.01591, allocations: 91.58 kB / 388.5 MB, free: 7.688 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002664/0.01618, allocations: 36.95 kB / 388.5 MB, free: 7.652 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001255/0.01743, allocations: 0.5893 MB / 389.1 MB, free: 7.027 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.478e-05/0.0175, allocations: 101.5 kB / 389.2 MB, free: 6.91 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.476e-05/0.01759, allocations: 51.16 kB / 389.3 MB, free: 6.859 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.037e-05/0.01766, allocations: 36.5 kB / 389.3 MB, free: 6.824 MB / 362.7 MB Notification: Performance of SimCode: time 9.82e-07/0.01767, allocations: 0 / 389.3 MB, free: 6.824 MB / 362.7 MB Notification: Performance of Templates: time 0.005555/0.02322, allocations: 2.887 MB / 392.2 MB, free: 3.977 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.0229602879844606]