Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001019/0.001019, allocations: 91.22 kB / 20.43 MB, free: 4.141 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.0009752/0.0009752, allocations: 169 kB / 23.8 MB, free: 0.7734 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9312/0.9312, allocations: 158.6 MB / 185.7 MB, free: 2.914 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1566/0.1566, allocations: 32.38 MB / 270.4 MB, free: 14.69 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.104e-06/2.104e-06, allocations: 0 / 347.6 MB, free: 9.465 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.087e-05/3.297e-05, allocations: 6.312 kB / 347.7 MB, free: 9.457 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003013/0.003046, allocations: 2.198 MB / 349.9 MB, free: 7.254 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001235/0.004281, allocations: 0.7993 MB / 350.7 MB, free: 6.445 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001949/0.004476, allocations: 7.938 kB / 350.7 MB, free: 6.438 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001893/0.004665, allocations: 31.59 kB / 350.7 MB, free: 6.406 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003081/0.004973, allocations: 71.33 kB / 350.8 MB, free: 6.336 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004173/0.005391, allocations: 151.6 kB / 350.9 MB, free: 6.188 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003753/0.005766, allocations: 354.9 kB / 351.3 MB, free: 5.84 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000228/0.005994, allocations: 88.83 kB / 351.3 MB, free: 5.754 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002975/0.006291, allocations: 207.5 kB / 351.5 MB, free: 5.551 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001852/0.006477, allocations: 111.7 kB / 351.7 MB, free: 5.441 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.001e-05/0.006527, allocations: 32 kB / 351.7 MB, free: 5.41 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.108e-05/0.006558, allocations: 36 kB / 351.7 MB, free: 5.375 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.103e-05/0.006619, allocations: 79.67 kB / 351.8 MB, free: 5.297 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.447e-05/0.006703, allocations: 103.7 kB / 351.9 MB, free: 5.195 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002794/0.006983, allocations: 243 kB / 352.1 MB, free: 4.957 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.626e-06/0.006986, allocations: 4 kB / 352.1 MB, free: 4.953 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.006988, allocations: 0 / 352.1 MB, free: 4.953 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.534e-06/0.006995, allocations: 0 / 352.1 MB, free: 4.953 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.0008138/0.007809, allocations: 0.7817 MB / 352.9 MB, free: 4.113 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/0.007851, allocations: 12.03 kB / 352.9 MB, free: 4.102 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.969e-05/0.007941, allocations: 52.75 kB / 353 MB, free: 4.051 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000303/0.008244, allocations: 267.4 kB / 353.2 MB, free: 3.762 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.993e-05/0.008274, allocations: 24.88 kB / 353.3 MB, free: 3.738 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.151e-05/0.008315, allocations: 32.36 kB / 353.3 MB, free: 3.707 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002973/0.008612, allocations: 197.3 kB / 353.5 MB, free: 3.508 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.659e-05/0.008629, allocations: 4.188 kB / 353.5 MB, free: 3.504 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.217e-05/0.008651, allocations: 16.12 kB / 353.5 MB, free: 3.488 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.03e-05/0.008661, allocations: 4 kB / 353.5 MB, free: 3.484 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001385/0.0088, allocations: 86.92 kB / 353.6 MB, free: 3.395 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007912/0.009591, allocations: 0.6704 MB / 354.3 MB, free: 2.688 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002491/0.00984, allocations: 158.1 kB / 354.4 MB, free: 2.523 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.265e-05/0.009923, allocations: 51.66 kB / 354.5 MB, free: 2.469 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.491e-05/0.009948, allocations: 4 kB / 354.5 MB, free: 2.465 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002025/0.01015, allocations: 180.8 kB / 354.7 MB, free: 2.273 MB / 282.7 MB Notification: Performance of pre-optimization done (n=31): time 1.964e-06/0.01015, allocations: 0 / 354.7 MB, free: 2.273 MB / 282.7 MB Notification: Performance of matching and sorting (n=31): time 0.0003811/0.01053, allocations: 265.3 kB / 354.9 MB, free: 2.008 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.253e-05/0.01057, allocations: 59.41 kB / 355 MB, free: 1.938 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001377/0.0107, allocations: 288.2 kB / 355.3 MB, free: 1.637 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.843e-05/0.01072, allocations: 37.7 kB / 355.3 MB, free: 1.594 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.336e-05/0.01079, allocations: 207.5 kB / 355.5 MB, free: 1.387 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.308e-05/0.01084, allocations: 107.1 kB / 355.6 MB, free: 1.281 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.476e-05/0.01092, allocations: 79.72 kB / 355.7 MB, free: 1.191 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.409e-05/0.01099, allocations: 0.5079 MB / 356.2 MB, free: 0.6719 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.92e-05/0.01106, allocations: 40.72 kB / 356.2 MB, free: 0.6328 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001123/0.01117, allocations: 242.9 kB / 356.5 MB, free: 320 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000252/0.01142, allocations: 309.4 kB / 356.8 MB, free: 15.93 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.01143, allocations: 0 / 356.8 MB, free: 15.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003801/0.01181, allocations: 305.4 kB / 357.1 MB, free: 15.62 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.313e-05/0.01183, allocations: 8 kB / 357.1 MB, free: 15.61 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.01184, allocations: 4 kB / 357.1 MB, free: 15.61 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.214e-05/0.01186, allocations: 8 kB / 357.1 MB, free: 15.6 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002212/0.01208, allocations: 83.83 kB / 357.2 MB, free: 15.52 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.031e-05/0.01209, allocations: 4 kB / 357.2 MB, free: 15.52 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001009/0.01219, allocations: 35.78 kB / 357.2 MB, free: 15.48 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.064e-05/0.01221, allocations: 19.98 kB / 357.2 MB, free: 15.46 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,$PRE.mean.y,rectifiedMean.mean.y,$PRE.rectifiedMean.mean.y,rootMeanSquare.mean.y,$PRE.rootMeanSquare.mean.y,harmonic.mean1.y,$PRE.harmonic.mean1.y,harmonic.mean2.y,$PRE.harmonic.mean2.y) * 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.0001369/0.01235, allocations: 192.2 kB / 357.4 MB, free: 15.26 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.306e-05/0.01239, allocations: 35.86 kB / 357.4 MB, free: 15.23 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003678/0.01276, allocations: 239.5 kB / 357.7 MB, free: 14.99 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.01277, allocations: 4 kB / 357.7 MB, free: 14.98 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.01277, allocations: 4 kB / 357.7 MB, free: 14.98 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.438e-06/0.01278, allocations: 7.922 kB / 357.7 MB, free: 14.97 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005565/0.01334, allocations: 0.5557 MB / 358.3 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.01334, allocations: 4 kB / 358.3 MB, free: 14.37 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001504/0.01349, allocations: 51.91 kB / 358.3 MB, free: 14.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.911e-06/0.0135, allocations: 4 kB / 358.3 MB, free: 14.32 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.059e-05/0.01352, allocations: 4 kB / 358.3 MB, free: 14.31 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.959e-06/0.01352, allocations: 4 kB / 358.3 MB, free: 14.31 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.01353, allocations: 3.938 kB / 358.3 MB, free: 14.3 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004619/0.01399, allocations: 436 kB / 358.7 MB, free: 13.86 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.704e-05/0.01402, allocations: 31.73 kB / 358.8 MB, free: 13.83 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.382e-05/0.01405, allocations: 8 kB / 358.8 MB, free: 13.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.865e-05/0.01413, allocations: 11.98 kB / 358.8 MB, free: 13.81 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.089e-05/0.01419, allocations: 35.83 kB / 358.8 MB, free: 13.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.5e-05/0.0142, allocations: 12 kB / 358.8 MB, free: 13.76 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001/0.0143, allocations: 197.1 kB / 359 MB, free: 13.57 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.0143, allocations: 0 / 359 MB, free: 13.57 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000246/0.01455, allocations: 67.88 kB / 359.1 MB, free: 13.51 MB / 298.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,harmonic.mean1.y,rootMeanSquare.mean.y,rectifiedMean.mean.y,mean.y) * 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.0001081/0.01466, allocations: 107.2 kB / 359.2 MB, free: 13.39 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002865/0.01494, allocations: 188.3 kB / 359.4 MB, free: 13.21 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.01495, allocations: 4 kB / 359.4 MB, free: 13.2 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000108/0.01506, allocations: 87.52 kB / 359.5 MB, free: 13.11 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000254/0.01531, allocations: 48.95 kB / 359.5 MB, free: 13.07 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009077/0.01622, allocations: 0.5539 MB / 360.1 MB, free: 12.48 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.519e-05/0.01628, allocations: 97.53 kB / 360.2 MB, free: 12.37 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.591e-05/0.01637, allocations: 39.14 kB / 360.2 MB, free: 12.33 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.708e-05/0.01644, allocations: 36.5 kB / 360.3 MB, free: 12.3 MB / 298.7 MB Notification: Performance of SimCode: time 1.462e-06/0.01644, allocations: 0 / 360.3 MB, free: 12.3 MB / 298.7 MB Notification: Performance of Templates: time 0.005267/0.0217, allocations: 2.644 MB / 362.9 MB, free: 9.68 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.0953846722841263]