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.001963/0.001963, allocations: 91.61 kB / 20.96 MB, free: 3.461 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.002023/0.002023, allocations: 165.3 kB / 24.28 MB, free: 152 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.573/1.573, allocations: 177.1 MB / 204.6 MB, free: 5.629 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.3447/0.3447, allocations: 32.81 MB / 293.9 MB, free: 1.188 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.563e-06/1.563e-06, allocations: 0 / 375.3 MB, free: 5.008 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.38e-05/3.537e-05, allocations: 6.312 kB / 375.3 MB, free: 5 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003929/0.003965, allocations: 2.235 MB / 377.5 MB, free: 2.75 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.00181/0.005774, allocations: 0.8722 MB / 378.4 MB, free: 1.871 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001568/0.005931, allocations: 7.938 kB / 378.4 MB, free: 1.863 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001642/0.006095, allocations: 35.55 kB / 378.4 MB, free: 1.828 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002789/0.006374, allocations: 71.31 kB / 378.5 MB, free: 1.758 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000448/0.006822, allocations: 191.4 kB / 378.7 MB, free: 1.57 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004949/0.007317, allocations: 390.9 kB / 379 MB, free: 1.188 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005268/0.007844, allocations: 92.83 kB / 379.1 MB, free: 1.098 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003775/0.008221, allocations: 227.4 kB / 379.4 MB, free: 0.875 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002226/0.008444, allocations: 111.6 kB / 379.5 MB, free: 0.7656 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 6.453e-05/0.008509, allocations: 40 kB / 379.5 MB, free: 0.7266 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000114/0.008622, allocations: 55.91 kB / 379.6 MB, free: 0.6719 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001149/0.008737, allocations: 95.66 kB / 379.7 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001444/0.008882, allocations: 111.6 kB / 379.8 MB, free: 480 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005608/0.009443, allocations: 426.6 kB / 380.2 MB, free: 52 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.009446, allocations: 0 / 380.2 MB, free: 52 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.009447, allocations: 4 kB / 380.2 MB, free: 48 kB / 346.7 MB Notification: Performance of Transformations before backend: time 6.862e-06/0.009454, allocations: 0 / 380.2 MB, free: 48 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.001501/0.01096, allocations: 0.9183 MB / 381.1 MB, free: 15.07 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.01099, allocations: 15.97 kB / 381.1 MB, free: 15.06 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004999/0.01149, allocations: 104.6 kB / 381.2 MB, free: 14.96 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005676/0.01206, allocations: 301.1 kB / 381.5 MB, free: 14.63 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.584e-05/0.0121, allocations: 29.03 kB / 381.5 MB, free: 14.61 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.837e-05/0.01216, allocations: 40.33 kB / 381.6 MB, free: 14.57 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005059/0.01267, allocations: 246.5 kB / 381.8 MB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.94e-05/0.01269, allocations: 4.188 kB / 381.8 MB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.722e-05/0.01273, allocations: 16.11 kB / 381.8 MB, free: 14.3 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.001e-05/0.01274, allocations: 12 kB / 381.9 MB, free: 14.29 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004074/0.01314, allocations: 162.5 kB / 382 MB, free: 14.13 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001518/0.01466, allocations: 0.7845 MB / 382.8 MB, free: 13.3 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004379/0.0151, allocations: 195.3 kB / 383 MB, free: 13.1 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002073/0.01531, allocations: 83.66 kB / 383.1 MB, free: 13.02 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.613e-05/0.01534, allocations: 7.984 kB / 383.1 MB, free: 13.01 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004294/0.01577, allocations: 224.8 kB / 383.3 MB, free: 12.77 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 1.753e-06/0.01578, allocations: 4 kB / 383.3 MB, free: 12.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=31): time 0.0008557/0.01663, allocations: 362.1 kB / 383.7 MB, free: 12.41 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.599e-05/0.01669, allocations: 55.41 kB / 383.7 MB, free: 12.34 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000405/0.01709, allocations: 370.3 kB / 384.1 MB, free: 11.97 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.742e-05/0.01714, allocations: 29.7 kB / 384.1 MB, free: 11.93 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002071/0.01735, allocations: 247.4 kB / 384.3 MB, free: 11.68 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001254/0.01747, allocations: 111.2 kB / 384.4 MB, free: 11.57 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001591/0.01763, allocations: 91.72 kB / 384.5 MB, free: 11.47 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003044/0.01794, allocations: 0.5274 MB / 385.1 MB, free: 10.93 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000209/0.01814, allocations: 84.7 kB / 385.1 MB, free: 10.85 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003801/0.01852, allocations: 279.1 kB / 385.4 MB, free: 10.5 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006144/0.01914, allocations: 389.3 kB / 385.8 MB, free: 10.03 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.062e-06/0.01915, allocations: 4 kB / 385.8 MB, free: 10.03 MB / 362.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009862/0.02013, allocations: 372.9 kB / 386.2 MB, free: 9.656 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.283e-05/0.02015, allocations: 8 kB / 386.2 MB, free: 9.648 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.147e-05/0.02017, allocations: 4 kB / 386.2 MB, free: 9.645 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.396e-05/0.02019, allocations: 11.94 kB / 386.2 MB, free: 9.633 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003189/0.02051, allocations: 80.31 kB / 386.3 MB, free: 9.555 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.544e-05/0.02052, allocations: 11.98 kB / 386.3 MB, free: 9.543 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001741/0.0207, allocations: 35.78 kB / 386.3 MB, free: 9.508 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.191e-05/0.02073, allocations: 16 kB / 386.3 MB, free: 9.492 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.0002238/0.02095, allocations: 213.4 kB / 386.5 MB, free: 9.273 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.941e-05/0.02103, allocations: 39.81 kB / 386.6 MB, free: 9.234 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006849/0.02172, allocations: 304.4 kB / 386.9 MB, free: 8.93 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.375e-06/0.02173, allocations: 15.88 kB / 386.9 MB, free: 8.914 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.02173, allocations: 0 / 386.9 MB, free: 8.914 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/0.02174, allocations: 3.984 kB / 386.9 MB, free: 8.91 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001055/0.02279, allocations: 0.6924 MB / 387.6 MB, free: 8.176 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.02279, allocations: 0 / 387.6 MB, free: 8.176 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000252/0.02305, allocations: 43.91 kB / 387.6 MB, free: 8.133 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.226e-06/0.02305, allocations: 7.938 kB / 387.6 MB, free: 8.125 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.719e-05/0.02308, allocations: 8 kB / 387.6 MB, free: 8.117 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.02308, allocations: 4 kB / 387.7 MB, free: 8.113 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.02309, allocations: 4 kB / 387.7 MB, free: 8.109 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009711/0.02406, allocations: 0.5585 MB / 388.2 MB, free: 7.531 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.367e-05/0.02411, allocations: 31.73 kB / 388.2 MB, free: 7.5 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.968e-05/0.02416, allocations: 11.94 kB / 388.3 MB, free: 7.488 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001569/0.02432, allocations: 8 kB / 388.3 MB, free: 7.48 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.173e-05/0.02441, allocations: 31.89 kB / 388.3 MB, free: 7.449 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.765e-05/0.02444, allocations: 11.98 kB / 388.3 MB, free: 7.438 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002546/0.02469, allocations: 247 kB / 388.5 MB, free: 7.199 MB / 362.7 MB Notification: Performance of sort global known variables: time 1e-07/0.02469, allocations: 4 kB / 388.6 MB, free: 7.195 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003852/0.02508, allocations: 71.84 kB / 388.6 MB, free: 7.125 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.0001581/0.02523, allocations: 118.1 kB / 388.7 MB, free: 7.004 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000564/0.0258, allocations: 256.3 kB / 389 MB, free: 6.75 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.0258, allocations: 256 / 389 MB, free: 6.75 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000273/0.02607, allocations: 139.5 kB / 389.1 MB, free: 6.609 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003792/0.02645, allocations: 49.02 kB / 389.2 MB, free: 6.562 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001162/0.02761, allocations: 0.6085 MB / 389.8 MB, free: 5.918 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002049/0.02782, allocations: 190 kB / 390 MB, free: 5.719 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001534/0.02797, allocations: 42.95 kB / 390 MB, free: 5.672 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.227e-05/0.02807, allocations: 32.5 kB / 390 MB, free: 5.641 MB / 362.7 MB Notification: Performance of SimCode: time 7.82e-07/0.02807, allocations: 0 / 390 MB, free: 5.641 MB / 362.7 MB Notification: Performance of Templates: time 0.007699/0.03576, allocations: 2.772 MB / 392.8 MB, free: 2.906 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","/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.898997416021302]