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.001202/0.001202, allocations: 81.08 kB / 20.65 MB, free: 3.844 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.001328/0.001328, allocations: 173 kB / 24.06 MB, free: 452 kB / 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 1.007/1.007, allocations: 158.6 MB / 185.9 MB, free: 2.793 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.1569/0.1569, allocations: 32.38 MB / 270.7 MB, free: 14.53 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.093e-06/2.093e-06, allocations: 0 / 348.1 MB, free: 9.191 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.099e-05/3.308e-05, allocations: 6.25 kB / 348.1 MB, free: 9.184 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003936/0.003969, allocations: 2.171 MB / 350.3 MB, free: 7.008 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001879/0.005849, allocations: 0.7877 MB / 351.1 MB, free: 6.211 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002794/0.006128, allocations: 7.938 kB / 351.1 MB, free: 6.203 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001886/0.006317, allocations: 39.55 kB / 351.1 MB, free: 6.164 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003471/0.006664, allocations: 63.38 kB / 351.2 MB, free: 6.102 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004762/0.00714, allocations: 151.6 kB / 351.3 MB, free: 5.953 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004416/0.007582, allocations: 362.9 kB / 351.7 MB, free: 5.598 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002366/0.007818, allocations: 80.84 kB / 351.8 MB, free: 5.52 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003532/0.008171, allocations: 215.4 kB / 352 MB, free: 5.309 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002088/0.00838, allocations: 111.6 kB / 352.1 MB, free: 5.199 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.248e-05/0.008433, allocations: 32 kB / 352.1 MB, free: 5.168 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.039e-05/0.008483, allocations: 32 kB / 352.2 MB, free: 5.137 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.476e-05/0.008558, allocations: 87.67 kB / 352.2 MB, free: 5.051 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.213e-05/0.00865, allocations: 95.69 kB / 352.3 MB, free: 4.957 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003726/0.009023, allocations: 247 kB / 352.6 MB, free: 4.715 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.009027, allocations: 0 / 352.6 MB, free: 4.715 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.009028, allocations: 0 / 352.6 MB, free: 4.715 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.252e-06/0.009035, allocations: 3.938 kB / 352.6 MB, free: 4.711 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.00104/0.01007, allocations: 0.7894 MB / 353.4 MB, free: 3.863 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.158e-05/0.01013, allocations: 8.031 kB / 353.4 MB, free: 3.855 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001012/0.01023, allocations: 56.75 kB / 353.4 MB, free: 3.801 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003789/0.01061, allocations: 255.5 kB / 353.7 MB, free: 3.523 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.562e-05/0.01065, allocations: 28.88 kB / 353.7 MB, free: 3.496 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.956e-05/0.01071, allocations: 36.3 kB / 353.7 MB, free: 3.461 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003688/0.01108, allocations: 181.2 kB / 353.9 MB, free: 3.277 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.894e-05/0.0111, allocations: 192 / 353.9 MB, free: 3.277 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.141e-05/0.01113, allocations: 20.11 kB / 353.9 MB, free: 3.258 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.168e-05/0.01114, allocations: 4 kB / 353.9 MB, free: 3.254 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001445/0.01129, allocations: 63.44 kB / 354 MB, free: 3.188 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001111/0.0124, allocations: 0.6397 MB / 354.6 MB, free: 2.52 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002755/0.01267, allocations: 138.8 kB / 354.8 MB, free: 2.375 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.649e-05/0.01275, allocations: 51.64 kB / 354.8 MB, free: 2.32 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.431e-05/0.01278, allocations: 8 kB / 354.8 MB, free: 2.312 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002469/0.01303, allocations: 172.8 kB / 355 MB, free: 2.129 MB / 282.7 MB Notification: Performance of pre-optimization done (n=31): time 3.196e-06/0.01303, allocations: 0 / 355 MB, free: 2.129 MB / 282.7 MB Notification: Performance of matching and sorting (n=31): time 0.0004221/0.01346, allocations: 237.3 kB / 355.2 MB, free: 1.891 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.568e-05/0.01349, allocations: 55.41 kB / 355.3 MB, free: 1.824 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001563/0.01365, allocations: 284.1 kB / 355.6 MB, free: 1.527 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.487e-05/0.01367, allocations: 33.7 kB / 355.6 MB, free: 1.488 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.77e-05/0.01375, allocations: 215.5 kB / 355.8 MB, free: 1.273 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.878e-05/0.01382, allocations: 111.1 kB / 355.9 MB, free: 1.164 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.386e-05/0.01391, allocations: 79.69 kB / 356 MB, free: 1.074 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.918e-05/0.014, allocations: 0.5156 MB / 356.5 MB, free: 0.5469 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.731e-05/0.01407, allocations: 32.72 kB / 356.5 MB, free: 0.5156 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000144/0.01421, allocations: 230.8 kB / 356.8 MB, free: 212 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003338/0.01455, allocations: 297.4 kB / 357.1 MB, free: 15.83 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.624e-06/0.01456, allocations: 8 kB / 357.1 MB, free: 15.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004598/0.01502, allocations: 276.9 kB / 357.3 MB, free: 15.55 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.662e-05/0.01504, allocations: 11.98 kB / 357.4 MB, free: 15.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.01505, allocations: 4 kB / 357.4 MB, free: 15.53 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.528e-05/0.01508, allocations: 8 kB / 357.4 MB, free: 15.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002714/0.01535, allocations: 72.38 kB / 357.4 MB, free: 15.45 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.537e-05/0.01536, allocations: 19.92 kB / 357.5 MB, free: 15.43 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001047/0.01547, allocations: 27.84 kB / 357.5 MB, free: 15.41 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.209e-05/0.01549, allocations: 19.94 kB / 357.5 MB, free: 15.39 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.000147/0.01564, allocations: 192.2 kB / 357.7 MB, free: 15.19 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.856e-05/0.01569, allocations: 35.86 kB / 357.7 MB, free: 15.15 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000375/0.01606, allocations: 219.5 kB / 357.9 MB, free: 14.93 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.552e-06/0.01607, allocations: 8 kB / 357.9 MB, free: 14.93 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.01607, allocations: 0 / 357.9 MB, free: 14.93 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.01608, allocations: 0 / 357.9 MB, free: 14.93 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007283/0.01681, allocations: 0.5093 MB / 358.5 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.01681, allocations: 4 kB / 358.5 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001921/0.017, allocations: 43.97 kB / 358.5 MB, free: 14.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.47e-06/0.01701, allocations: 0 / 358.5 MB, free: 14.34 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.192e-05/0.01704, allocations: 11.98 kB / 358.5 MB, free: 14.32 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.003e-06/0.01705, allocations: 7.938 kB / 358.5 MB, free: 14.32 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.295e-06/0.01705, allocations: 3.938 kB / 358.5 MB, free: 14.31 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007679/0.01782, allocations: 412.1 kB / 358.9 MB, free: 13.89 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.12e-05/0.01786, allocations: 31.73 kB / 359 MB, free: 13.86 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.332e-05/0.0179, allocations: 12 kB / 359 MB, free: 13.85 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001277/0.01803, allocations: 11.98 kB / 359 MB, free: 13.84 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.107e-05/0.01811, allocations: 23.95 kB / 359 MB, free: 13.81 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.357e-05/0.01813, allocations: 15.98 kB / 359 MB, free: 13.8 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001452/0.01828, allocations: 189 kB / 359.2 MB, free: 13.61 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.01828, allocations: 0 / 359.2 MB, free: 13.61 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004564/0.01874, allocations: 63.89 kB / 359.3 MB, free: 13.55 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.00019/0.01893, allocations: 119.2 kB / 359.4 MB, free: 13.43 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003412/0.01927, allocations: 159.4 kB / 359.5 MB, free: 13.27 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.01927, allocations: 0 / 359.5 MB, free: 13.27 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001635/0.01944, allocations: 91.48 kB / 359.6 MB, free: 13.17 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003969/0.01983, allocations: 49.84 kB / 359.7 MB, free: 13.12 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001361/0.02119, allocations: 0.5423 MB / 360.2 MB, free: 12.55 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.904e-05/0.02129, allocations: 101.5 kB / 360.3 MB, free: 12.43 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001233/0.02142, allocations: 39.23 kB / 360.4 MB, free: 12.4 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001621/0.02158, allocations: 114.2 kB / 360.5 MB, free: 12.29 MB / 298.7 MB Notification: Performance of SimCode: time 1.052e-06/0.02158, allocations: 0 / 360.5 MB, free: 12.29 MB / 298.7 MB Notification: Performance of Templates: time 0.007543/0.02912, allocations: 2.756 MB / 363.2 MB, free: 9.562 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.2042090529575944]