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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007949/0.0007949, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00117/0.001964, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0006495/0.0006495, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009928/0.001642, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9005/0.9005, allocations: 173.4 MB / 186 MB, free: 7.539 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1568/1.057, allocations: 52.49 MB / 238.5 MB, free: 7.617 MB / 234.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.1456/0.1456, allocations: 32.8 MB / 272 MB, free: 6.289 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0204/0.166, allocations: 12.54 MB / 284.5 MB, free: 9.707 MB / 282.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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.302e-06/1.302e-06, allocations: 0 / 285.8 MB, free: 8.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.847e-05/1.977e-05, allocations: 2.312 kB / 285.8 MB, free: 8.406 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002496/0.002515, allocations: 2.249 MB / 288.1 MB, free: 6.148 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001028/0.003543, allocations: 0.7827 MB / 288.9 MB, free: 5.359 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001162/0.00366, allocations: 7.938 kB / 288.9 MB, free: 5.352 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 8.224e-05/0.003742, allocations: 31.59 kB / 288.9 MB, free: 5.32 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001233/0.003865, allocations: 75.31 kB / 289 MB, free: 5.246 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002715/0.004137, allocations: 151.6 kB / 289.1 MB, free: 5.098 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002902/0.004427, allocations: 363 kB / 289.5 MB, free: 4.742 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001734/0.0046, allocations: 87.47 kB / 289.6 MB, free: 4.66 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002714/0.004872, allocations: 248.1 kB / 289.8 MB, free: 4.418 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001729/0.005044, allocations: 119.6 kB / 289.9 MB, free: 4.301 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.749e-05/0.005092, allocations: 35.94 kB / 290 MB, free: 4.266 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.676e-05/0.005129, allocations: 32 kB / 290 MB, free: 4.234 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.143e-05/0.00519, allocations: 63.8 kB / 290.1 MB, free: 4.172 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.313e-05/0.005283, allocations: 87.75 kB / 290.2 MB, free: 4.086 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002434/0.005527, allocations: 223.1 kB / 290.4 MB, free: 3.867 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.152e-05/0.005538, allocations: 0 / 290.4 MB, free: 3.867 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.92e-07/0.005539, allocations: 0 / 290.4 MB, free: 3.867 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.119e-05/0.00555, allocations: 0 / 290.4 MB, free: 3.867 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0007096/0.00626, allocations: 0.5845 MB / 291 MB, free: 3.254 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.44e-05/0.006294, allocations: 15.91 kB / 291 MB, free: 3.238 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.196e-05/0.006356, allocations: 48.89 kB / 291 MB, free: 3.191 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002332/0.006589, allocations: 228.7 kB / 291.2 MB, free: 2.938 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.112e-05/0.00661, allocations: 21.03 kB / 291.3 MB, free: 2.918 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.994e-05/0.00665, allocations: 40.38 kB / 291.3 MB, free: 2.879 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002305/0.006881, allocations: 199.2 kB / 291.5 MB, free: 2.676 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.006893, allocations: 192 / 291.5 MB, free: 2.676 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.869e-05/0.006911, allocations: 16.12 kB / 291.5 MB, free: 2.66 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.698e-06/0.006921, allocations: 4 kB / 291.5 MB, free: 2.656 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.628e-05/0.007007, allocations: 64.55 kB / 291.6 MB, free: 2.59 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006234/0.007631, allocations: 499.6 kB / 292.1 MB, free: 2.082 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001654/0.007796, allocations: 121.4 kB / 292.2 MB, free: 1.957 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.581e-05/0.007842, allocations: 36.84 kB / 292.2 MB, free: 1.918 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.267e-05/0.007864, allocations: 8 kB / 292.2 MB, free: 1.91 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001789/0.008043, allocations: 175.6 kB / 292.4 MB, free: 1.727 MB / 282.7 MB Notification: Performance of pre-optimization done (n=31): time 2.034e-06/0.008045, allocations: 0 / 292.4 MB, free: 1.727 MB / 282.7 MB Notification: Performance of matching and sorting (n=31): time 0.0002186/0.008264, allocations: 165.6 kB / 292.6 MB, free: 1.559 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.787e-05/0.008302, allocations: 67.28 kB / 292.6 MB, free: 1.48 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001197/0.008422, allocations: 224.9 kB / 292.8 MB, free: 1.25 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.164e-05/0.008443, allocations: 33.7 kB / 292.9 MB, free: 1.211 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.764e-05/0.008501, allocations: 153.2 kB / 293 MB, free: 1.059 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.751e-05/0.008558, allocations: 103.1 kB / 293.1 MB, free: 0.957 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.762e-05/0.008626, allocations: 78.02 kB / 293.2 MB, free: 0.8711 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.705e-05/0.008703, allocations: 342.8 kB / 293.5 MB, free: 0.5273 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.803e-05/0.008741, allocations: 36.73 kB / 293.6 MB, free: 0.4922 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001004/0.008841, allocations: 174.3 kB / 293.7 MB, free: 268 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002/0.009041, allocations: 251.5 kB / 294 MB, free: 15.95 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.009045, allocations: 4 kB / 294 MB, free: 15.95 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0002085/0.009254, allocations: 221.2 kB / 294.2 MB, free: 15.73 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/0.009267, allocations: 8 kB / 294.2 MB, free: 15.72 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.009272, allocations: 4 kB / 294.2 MB, free: 15.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.009287, allocations: 8 kB / 294.2 MB, free: 15.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001766/0.009463, allocations: 87.83 kB / 294.3 MB, free: 15.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.566e-06/0.009472, allocations: 11.88 kB / 294.3 MB, free: 15.61 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.778e-05/0.00955, allocations: 39.77 kB / 294.4 MB, free: 15.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.415e-05/0.009564, allocations: 12.38 kB / 294.4 MB, free: 15.56 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_last,$PRE.mean.y_last,rectifiedMean.mean.y_last,$PRE.rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last,harmonic.mean2.y_last,$PRE.harmonic.mean2.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean1.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 8.771e-05/0.009652, allocations: 152.5 kB / 294.5 MB, free: 15.4 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.765e-05/0.009679, allocations: 23.98 kB / 294.6 MB, free: 15.38 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001962/0.009875, allocations: 171.8 kB / 294.7 MB, free: 15.2 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.009879, allocations: 4 kB / 294.7 MB, free: 15.2 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.009882, allocations: 3.938 kB / 294.7 MB, free: 15.2 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.009886, allocations: 0 / 294.7 MB, free: 15.2 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004214/0.01031, allocations: 384.4 kB / 295.1 MB, free: 14.8 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.01031, allocations: 3.938 kB / 295.1 MB, free: 14.79 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001319/0.01044, allocations: 59.89 kB / 295.2 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.966e-05/0.01046, allocations: 27.75 kB / 295.2 MB, free: 14.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.01046, allocations: 4 kB / 295.2 MB, free: 14.7 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.653e-05/0.01048, allocations: 11.92 kB / 295.2 MB, free: 14.69 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.01048, allocations: 4 kB / 295.2 MB, free: 14.69 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.01048, allocations: 0 / 295.2 MB, free: 14.69 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002373/0.01072, allocations: 302.5 kB / 295.5 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.502e-05/0.01075, allocations: 12 kB / 295.5 MB, free: 14.36 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.442e-05/0.01082, allocations: 11.98 kB / 295.5 MB, free: 14.35 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.303e-05/0.01086, allocations: 27.89 kB / 295.6 MB, free: 14.32 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.184e-05/0.01087, allocations: 8 kB / 295.6 MB, free: 14.32 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.985e-05/0.01092, allocations: 74.77 kB / 295.6 MB, free: 14.24 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01092, allocations: 0 / 295.6 MB, free: 14.24 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001889/0.01111, allocations: 71.78 kB / 295.7 MB, free: 14.17 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (mean.x,rectifiedMean.mean.x,rootMeanSquare.mean.x,harmonic.mean1.x,harmonic.mean2.x) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,mean.y_last,rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,harmonic.mean1.y_last,harmonic.mean2.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 8.08e-05/0.01119, allocations: 100.3 kB / 295.8 MB, free: 14.06 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001661/0.01136, allocations: 144.6 kB / 295.9 MB, free: 13.92 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 8.356e-06/0.01137, allocations: 4 kB / 296 MB, free: 13.91 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.185e-05/0.01146, allocations: 104.8 kB / 296.1 MB, free: 13.81 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002348/0.0117, allocations: 236.5 kB / 296.3 MB, free: 13.54 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001113/0.01281, allocations: 0.5425 MB / 296.8 MB, free: 12.97 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.082e-05/0.01286, allocations: 93.55 kB / 296.9 MB, free: 12.86 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.786e-05/0.01294, allocations: 38.95 kB / 297 MB, free: 12.82 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001091/0.01305, allocations: 99.34 kB / 297.1 MB, free: 12.72 MB / 298.7 MB Notification: Performance of SimCode: time 6.01e-07/0.01305, allocations: 0 / 297.1 MB, free: 12.72 MB / 298.7 MB Notification: Performance of Templates: time 0.004224/0.01727, allocations: 2.663 MB / 299.7 MB, free: 10.1 MB / 298.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.662560222670436]