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.001732/0.001732, allocations: 79.75 kB / 20.51 MB, free: 1.121 MB / 14.72 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.002232/0.002232, allocations: 164.3 kB / 23.76 MB, free: 4.195 MB / 14.72 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.577/1.577, allocations: 158.6 MB / 185.5 MB, free: 6.227 MB / 174.1 MB " [Timeout remaining time 178] 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.341/0.341, allocations: 32.38 MB / 270.1 MB, free: 2.719 MB / 254.1 MB " [Timeout remaining time 179] 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: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002304/0.002304, allocations: 67.91 kB / 407.7 MB, free: 5.551 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1219/0.1242, allocations: 61.05 MB / 468.8 MB, free: 8.316 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003962/0.1282, allocations: 2.103 MB / 470.9 MB, free: 6.203 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001477/0.1297, allocations: 0.7681 MB / 471.7 MB, free: 5.426 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000122/0.1298, allocations: 15.81 kB / 471.7 MB, free: 5.41 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001403/0.1299, allocations: 35.59 kB / 471.7 MB, free: 5.375 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002143/0.1302, allocations: 63.44 kB / 471.8 MB, free: 5.312 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003681/0.1305, allocations: 147.7 kB / 471.9 MB, free: 5.168 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004086/0.1309, allocations: 359 kB / 472.3 MB, free: 4.816 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002147/0.1312, allocations: 84.84 kB / 472.4 MB, free: 4.734 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002049/0.1314, allocations: 143.4 kB / 472.5 MB, free: 4.594 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002206/0.1316, allocations: 131.3 kB / 472.6 MB, free: 4.465 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.605e-05/0.1316, allocations: 32 kB / 472.7 MB, free: 4.434 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.223e-05/0.1317, allocations: 32 kB / 472.7 MB, free: 4.402 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001032/0.1318, allocations: 91.69 kB / 472.8 MB, free: 4.312 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001391/0.1319, allocations: 119.4 kB / 472.9 MB, free: 4.195 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004304/0.1324, allocations: 366.5 kB / 473.2 MB, free: 3.836 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.1324, allocations: 0 / 473.2 MB, free: 3.836 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1324, allocations: 0 / 473.2 MB, free: 3.836 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.833e-06/0.1324, allocations: 0 / 473.2 MB, free: 3.836 MB / 446.1 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.001244/0.1336, allocations: 0.6719 MB / 473.9 MB, free: 3.113 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.694e-05/0.1337, allocations: 12.03 kB / 473.9 MB, free: 3.102 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.201e-05/0.1337, allocations: 40.69 kB / 474 MB, free: 3.062 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000552/0.1343, allocations: 273.8 kB / 474.2 MB, free: 2.77 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.058e-05/0.1343, allocations: 20.88 kB / 474.3 MB, free: 2.75 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.382e-05/0.1344, allocations: 32.38 kB / 474.3 MB, free: 2.719 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005057/0.1349, allocations: 256.1 kB / 474.5 MB, free: 2.461 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.801e-05/0.1349, allocations: 8 kB / 474.5 MB, free: 2.453 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.859e-05/0.1349, allocations: 11.94 kB / 474.6 MB, free: 2.441 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.848e-05/0.1349, allocations: 12 kB / 474.6 MB, free: 2.43 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004922/0.1354, allocations: 181.9 kB / 474.8 MB, free: 2.25 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00124/0.1367, allocations: 0.6204 MB / 475.4 MB, free: 1.602 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004268/0.1371, allocations: 186.8 kB / 475.6 MB, free: 1.41 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002069/0.1373, allocations: 92.75 kB / 475.6 MB, free: 1.316 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.089e-05/0.1373, allocations: 7.984 kB / 475.7 MB, free: 1.309 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004291/0.1378, allocations: 227.2 kB / 475.9 MB, free: 1.074 MB / 446.1 MB Notification: Performance of pre-optimization done (n=31): time 1.673e-06/0.1378, allocations: 0 / 475.9 MB, free: 1.074 MB / 446.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008995/0.1387, allocations: 373.2 kB / 476.2 MB, free: 0.7031 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.177e-05/0.1387, allocations: 71.31 kB / 476.3 MB, free: 0.6211 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002521/0.139, allocations: 233.9 kB / 476.5 MB, free: 388 kB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.673e-05/0.139, allocations: 37.7 kB / 476.6 MB, free: 344 kB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001814/0.1392, allocations: 172.6 kB / 476.7 MB, free: 168 kB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.543e-05/0.1393, allocations: 99.22 kB / 476.8 MB, free: 68 kB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.2132/0.3525, allocations: 71.09 kB / 476.9 MB, free: 50.36 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.3526, allocations: 337.6 kB / 477.2 MB, free: 50.04 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002942/0.3529, allocations: 92.48 kB / 477.3 MB, free: 50.04 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002634/0.3532, allocations: 220 kB / 477.5 MB, free: 49.88 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004851/0.3537, allocations: 354.5 kB / 477.9 MB, free: 49.73 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.122e-06/0.3537, allocations: 0 / 477.9 MB, free: 49.73 MB / 446.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006582/0.3543, allocations: 363.9 kB / 478.2 MB, free: 49.68 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.099e-05/0.3543, allocations: 8.125 kB / 478.3 MB, free: 49.68 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/0.3544, allocations: 3.281 kB / 478.3 MB, free: 49.68 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.427e-05/0.3544, allocations: 10.19 kB / 478.3 MB, free: 49.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002837/0.3547, allocations: 78.48 kB / 478.3 MB, free: 49.68 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.072e-05/0.3547, allocations: 13.66 kB / 478.4 MB, free: 49.68 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001906/0.3549, allocations: 36.62 kB / 478.4 MB, free: 49.68 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.388e-05/0.3549, allocations: 21.16 kB / 478.4 MB, free: 49.68 MB / 446.1 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.0001586/0.3551, allocations: 168.7 kB / 478.6 MB, free: 49.55 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.756e-05/0.3551, allocations: 26.91 kB / 478.6 MB, free: 49.55 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005616/0.3557, allocations: 325.7 kB / 478.9 MB, free: 49.51 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.598e-06/0.3557, allocations: 5.781 kB / 478.9 MB, free: 49.51 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.3557, allocations: 3.938 kB / 478.9 MB, free: 49.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.3557, allocations: 3.25 kB / 478.9 MB, free: 49.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006933/0.3564, allocations: 0.5947 MB / 479.5 MB, free: 49.27 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.3564, allocations: 3.469 kB / 479.5 MB, free: 49.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002321/0.3566, allocations: 48.02 kB / 479.6 MB, free: 49.27 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.3566, allocations: 4.172 kB / 479.6 MB, free: 49.27 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.52e-05/0.3566, allocations: 18.44 kB / 479.6 MB, free: 49.27 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.3566, allocations: 0 / 479.6 MB, free: 49.27 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.3566, allocations: 3.25 kB / 479.6 MB, free: 49.27 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007428/0.3574, allocations: 0.525 MB / 480.1 MB, free: 49.12 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.92e-05/0.3574, allocations: 31.86 kB / 480.2 MB, free: 49.12 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.32e-05/0.3575, allocations: 14.47 kB / 480.2 MB, free: 49.11 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001682/0.3576, allocations: 13.88 kB / 480.2 MB, free: 49.11 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.181e-05/0.3577, allocations: 23.77 kB / 480.2 MB, free: 49.11 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.327e-05/0.3577, allocations: 13 kB / 480.2 MB, free: 49.11 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001176/0.3579, allocations: 165.5 kB / 480.4 MB, free: 49.04 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3579, allocations: 2.625 kB / 480.4 MB, free: 49.04 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000354/0.3582, allocations: 68.17 kB / 480.5 MB, free: 49.04 MB / 446.1 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.0001044/0.3583, allocations: 118.9 kB / 480.6 MB, free: 48.95 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004705/0.3588, allocations: 244.4 kB / 480.8 MB, free: 48.93 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.3588, allocations: 3.188 kB / 480.8 MB, free: 48.93 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002018/0.359, allocations: 118.9 kB / 480.9 MB, free: 48.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003455/0.3593, allocations: 39.39 kB / 481 MB, free: 48.89 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000897/0.3602, allocations: 0.5997 MB / 481.6 MB, free: 48.54 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001321/0.3604, allocations: 173.9 kB / 481.7 MB, free: 48.46 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001293/0.3605, allocations: 44.16 kB / 481.8 MB, free: 48.46 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.383e-05/0.3606, allocations: 29.91 kB / 481.8 MB, free: 48.45 MB / 446.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3606, allocations: 0 / 481.8 MB, free: 48.45 MB / 446.1 MB Notification: Performance of Templates: time 0.006448/0.367, allocations: 2.516 MB / 484.3 MB, free: 48.2 MB / 446.1 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=480 -s ida -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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: 5.504876178922132]