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.001926/0.001926, allocations: 71.75 kB / 21.24 MB, free: 400 kB / 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.002247/0.002247, allocations: 169.2 kB / 24.5 MB, free: 3.453 MB / 14.72 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.505/1.505, allocations: 177.2 MB / 204.9 MB, free: 9.055 MB / 190.1 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.2146/0.2146, allocations: 32.8 MB / 294.1 MB, free: 68 kB / 270.1 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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 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.002302/0.002302, allocations: 67.89 kB / 440.6 MB, free: 9.488 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3529/0.3552, allocations: 65.44 MB / 0.4941 GB, free: 31.42 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.00304/0.3582, allocations: 2.188 MB / 0.4963 GB, free: 29.94 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001506/0.3597, allocations: 0.8641 MB / 0.4971 GB, free: 29.35 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001701/0.3599, allocations: 7.219 kB / 0.4971 GB, free: 29.34 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001666/0.36, allocations: 37.34 kB / 0.4972 GB, free: 29.32 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002637/0.3603, allocations: 68.33 kB / 0.4972 GB, free: 29.26 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004721/0.3608, allocations: 185.8 kB / 0.4974 GB, free: 29.15 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004259/0.3612, allocations: 384.3 kB / 0.4978 GB, free: 28.96 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002476/0.3615, allocations: 98.59 kB / 0.4979 GB, free: 28.91 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002923/0.3617, allocations: 154.6 kB / 0.498 GB, free: 28.83 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002372/0.362, allocations: 152.6 kB / 0.4982 GB, free: 28.75 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.608e-05/0.362, allocations: 37.53 kB / 0.4982 GB, free: 28.75 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001177/0.3622, allocations: 45.22 kB / 0.4982 GB, free: 28.75 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001058/0.3623, allocations: 93.12 kB / 0.4983 GB, free: 28.68 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000166/0.3624, allocations: 139 kB / 0.4985 GB, free: 28.6 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004745/0.3629, allocations: 417.4 kB / 0.4989 GB, free: 28.41 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.3629, allocations: 0 / 0.4989 GB, free: 28.41 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3629, allocations: 0 / 0.4989 GB, free: 28.41 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.326e-06/0.3629, allocations: 3.938 kB / 0.4989 GB, free: 28.41 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001174/0.3641, allocations: 0.7258 MB / 0.4996 GB, free: 27.88 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.3641, allocations: 9.5 kB / 0.4996 GB, free: 27.88 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004433/0.3646, allocations: 78.78 kB / 0.4996 GB, free: 27.85 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004536/0.365, allocations: 307.6 kB / 0.4999 GB, free: 27.62 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.561e-05/0.3651, allocations: 25.75 kB / 0.5 GB, free: 27.61 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.342e-05/0.3651, allocations: 31.48 kB / 0.5 GB, free: 27.6 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004148/0.3655, allocations: 276.1 kB / 0.5003 GB, free: 27.49 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.654e-05/0.3655, allocations: 0 / 0.5003 GB, free: 27.49 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.622e-05/0.3656, allocations: 11.22 kB / 0.5003 GB, free: 27.48 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.3656, allocations: 10.41 kB / 0.5003 GB, free: 27.48 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003563/0.3659, allocations: 191.3 kB / 0.5005 GB, free: 27.41 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001121/0.367, allocations: 0.6701 MB / 0.5011 GB, free: 27 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003696/0.3674, allocations: 186.8 kB / 0.5013 GB, free: 26.92 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000176/0.3676, allocations: 89.39 kB / 0.5014 GB, free: 26.89 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.322e-05/0.3676, allocations: 3.125 kB / 0.5014 GB, free: 26.89 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003656/0.368, allocations: 236.3 kB / 0.5016 GB, free: 26.79 MB / 446.1 MB Notification: Performance of pre-optimization done (n=31): time 2.355e-06/0.368, allocations: 0 / 0.5016 GB, free: 26.79 MB / 446.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007247/0.3687, allocations: 377.4 kB / 0.502 GB, free: 26.64 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.977e-05/0.3688, allocations: 54.69 kB / 0.502 GB, free: 26.58 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001965/0.369, allocations: 266.6 kB / 0.5023 GB, free: 26.43 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.412e-05/0.369, allocations: 40.92 kB / 0.5023 GB, free: 26.39 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.986e-05/0.3691, allocations: 187.2 kB / 0.5025 GB, free: 26.23 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.648e-05/0.3691, allocations: 98.59 kB / 0.5026 GB, free: 26.15 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.673e-05/0.3692, allocations: 73.36 kB / 0.5027 GB, free: 26.11 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.687e-05/0.3693, allocations: 347.8 kB / 0.503 GB, free: 25.78 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001755/0.3694, allocations: 87.08 kB / 0.5031 GB, free: 25.75 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002176/0.3697, allocations: 230 kB / 0.5033 GB, free: 25.55 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004082/0.3701, allocations: 349.9 kB / 0.5036 GB, free: 25.29 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.3701, allocations: 6.938 kB / 0.5036 GB, free: 25.29 MB / 446.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005597/0.3706, allocations: 380.5 kB / 0.504 GB, free: 25.12 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.774e-05/0.3706, allocations: 5.531 kB / 0.504 GB, free: 25.12 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.3707, allocations: 5.531 kB / 0.504 GB, free: 25.12 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.031e-05/0.3707, allocations: 9.453 kB / 0.504 GB, free: 25.12 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002835/0.371, allocations: 79.02 kB / 0.5041 GB, free: 25.11 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.187e-05/0.371, allocations: 6.125 kB / 0.5041 GB, free: 25.11 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001737/0.3711, allocations: 35.52 kB / 0.5041 GB, free: 25.09 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.312e-05/0.3712, allocations: 19.53 kB / 0.5041 GB, free: 25.08 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_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.0001429/0.3713, allocations: 174.4 kB / 0.5043 GB, free: 24.93 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.225e-05/0.3714, allocations: 34.06 kB / 0.5043 GB, free: 24.91 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000584/0.3719, allocations: 332 kB / 0.5047 GB, free: 24.76 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.3719, allocations: 3.438 kB / 0.5047 GB, free: 24.76 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.3719, allocations: 0 / 0.5047 GB, free: 24.76 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-06/0.372, allocations: 7.938 kB / 0.5047 GB, free: 24.75 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000727/0.3727, allocations: 0.6103 MB / 0.5053 GB, free: 24.38 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.3727, allocations: 0 / 0.5053 GB, free: 24.38 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002381/0.3729, allocations: 47.88 kB / 0.5053 GB, free: 24.38 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.3729, allocations: 3.938 kB / 0.5053 GB, free: 24.38 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.434e-05/0.3729, allocations: 10.06 kB / 0.5053 GB, free: 24.37 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.373, allocations: 3.156 kB / 0.5053 GB, free: 24.37 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.373, allocations: 0 / 0.5053 GB, free: 24.37 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000721/0.3737, allocations: 0.534 MB / 0.5059 GB, free: 24.08 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.561e-05/0.3737, allocations: 36.02 kB / 0.5059 GB, free: 24.06 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.269e-05/0.3738, allocations: 6.969 kB / 0.5059 GB, free: 24.05 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001713/0.3739, allocations: 17.31 kB / 0.5059 GB, free: 24.05 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.554e-05/0.374, allocations: 23.44 kB / 0.5059 GB, free: 24.04 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.471e-05/0.374, allocations: 13.92 kB / 0.5059 GB, free: 24.04 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001411/0.3742, allocations: 189 kB / 0.5061 GB, free: 23.93 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3742, allocations: 4.094 kB / 0.5061 GB, free: 23.93 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003837/0.3745, allocations: 78.19 kB / 0.5062 GB, free: 23.9 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_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.0001013/0.3746, allocations: 112.3 kB / 0.5063 GB, free: 23.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004914/0.3751, allocations: 249.3 kB / 0.5065 GB, free: 23.73 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3751, allocations: 0 / 0.5065 GB, free: 23.73 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002092/0.3754, allocations: 123.2 kB / 0.5067 GB, free: 23.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003663/0.3757, allocations: 39.45 kB / 0.5067 GB, free: 23.68 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009034/0.3766, allocations: 0.6332 MB / 0.5073 GB, free: 23.28 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001271/0.3767, allocations: 184.8 kB / 0.5075 GB, free: 23.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001214/0.3769, allocations: 41.45 kB / 0.5075 GB, free: 23.19 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.529e-05/0.3769, allocations: 38.52 kB / 0.5076 GB, free: 23.18 MB / 446.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3769, allocations: 0 / 0.5076 GB, free: 23.18 MB / 446.1 MB Notification: Performance of Templates: time 0.006129/0.3831, allocations: 2.745 MB / 0.5103 GB, free: 22.81 MB / 446.1 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=480 -s ida -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins1/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: 5.201559980981983]