Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Blocks.Mean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+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.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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Blocks.Mean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01086/0.01086, allocations: 105.2 kB / 15.74 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002024/0.002024, allocations: 197 kB / 16.67 MB, free: 5.918 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.562/1.562, allocations: 205.1 MB / 222.6 MB, free: 4.484 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.4058/0.4058, allocations: 38 MB / 307.9 MB, free: 10.07 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaTest requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001837/0.001838, allocations: 79.83 kB / 433 MB, free: 5.43 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4631/0.465, allocations: 56.47 MB / 489.4 MB, free: 19.95 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002941/0.468, allocations: 1.467 MB / 490.9 MB, free: 18.92 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000874/0.4689, allocations: 0.5163 MB / 491.4 MB, free: 18.55 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.78e-05/0.469, allocations: 1.156 kB / 491.4 MB, free: 18.55 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.349e-05/0.469, allocations: 4.688 kB / 491.4 MB, free: 18.55 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.593e-05/0.4691, allocations: 9.594 kB / 491.4 MB, free: 18.54 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002433/0.4693, allocations: 29.91 kB / 491.5 MB, free: 18.52 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001107/0.4694, allocations: 43.84 kB / 491.5 MB, free: 18.5 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001082/0.4696, allocations: 8.844 kB / 491.5 MB, free: 18.5 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001183/0.4697, allocations: 31.66 kB / 491.6 MB, free: 18.48 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.927e-05/0.4698, allocations: 16.3 kB / 491.6 MB, free: 18.47 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.211e-05/0.4698, allocations: 3.188 kB / 491.6 MB, free: 18.47 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.463e-05/0.4698, allocations: 3.594 kB / 491.6 MB, free: 18.47 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.55e-05/0.4699, allocations: 7.125 kB / 491.6 MB, free: 18.47 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.33e-05/0.4699, allocations: 23.66 kB / 491.6 MB, free: 18.45 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000107/0.47, allocations: 33.94 kB / 491.6 MB, free: 18.44 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.47, allocations: 1.094 kB / 491.6 MB, free: 18.44 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.47, allocations: 4 kB / 491.6 MB, free: 18.44 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.073e-06/0.4701, allocations: 0 / 491.6 MB, free: 18.44 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0005784/0.4706, allocations: 347.9 kB / 492 MB, free: 18.08 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.201e-05/0.4707, allocations: 12.48 kB / 492 MB, free: 18.07 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.434e-05/0.4708, allocations: 8.344 kB / 492 MB, free: 18.07 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002259/0.471, allocations: 177.4 kB / 492.2 MB, free: 17.87 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.779e-06/0.471, allocations: 5.375 kB / 492.2 MB, free: 17.86 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.751e-05/0.471, allocations: 3.641 kB / 492.2 MB, free: 17.86 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001454/0.4712, allocations: 59.44 kB / 492.2 MB, free: 17.82 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.4712, allocations: 0.6094 kB / 492.2 MB, free: 17.82 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.05e-05/0.4712, allocations: 1.125 kB / 492.2 MB, free: 17.82 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.4712, allocations: 0 / 492.2 MB, free: 17.82 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.945e-05/0.4713, allocations: 19.95 kB / 492.3 MB, free: 17.81 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003804/0.4717, allocations: 265.5 kB / 492.5 MB, free: 17.54 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.95e-05/0.4718, allocations: 39.31 kB / 492.6 MB, free: 17.5 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.362e-05/0.4719, allocations: 18.16 kB / 492.6 MB, free: 17.49 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.398e-05/0.4719, allocations: 1.797 kB / 492.6 MB, free: 17.49 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001807/0.4721, allocations: 65.41 kB / 492.6 MB, free: 17.44 MB / 382.1 MB Notification: Performance of pre-optimization done (n=4): time 1.373e-06/0.4721, allocations: 0 / 492.6 MB, free: 17.44 MB / 382.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003083/0.4724, allocations: 85.34 kB / 492.7 MB, free: 17.39 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.87e-05/0.4725, allocations: 56.89 kB / 492.8 MB, free: 17.32 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.066e-05/0.4726, allocations: 113.5 kB / 492.9 MB, free: 17.21 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.609e-05/0.4726, allocations: 26.98 kB / 492.9 MB, free: 17.18 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.178e-05/0.4726, allocations: 91.72 kB / 493 MB, free: 17.09 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.204e-05/0.4726, allocations: 10.38 kB / 493 MB, free: 17.09 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.524e-05/0.4727, allocations: 24.78 kB / 493 MB, free: 17.06 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.971e-05/0.4728, allocations: 322.1 kB / 493.4 MB, free: 16.74 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.302e-05/0.4729, allocations: 15.28 kB / 493.4 MB, free: 16.74 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.604e-05/0.4729, allocations: 42.27 kB / 493.4 MB, free: 16.7 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001209/0.4731, allocations: 69.16 kB / 493.5 MB, free: 16.64 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.4731, allocations: 1.094 kB / 493.5 MB, free: 16.64 MB / 382.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001671/0.4732, allocations: 85.31 kB / 493.6 MB, free: 16.59 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.108e-05/0.4733, allocations: 6.75 kB / 493.6 MB, free: 16.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.682e-06/0.4733, allocations: 1.188 kB / 493.6 MB, free: 16.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.969e-05/0.4733, allocations: 5.25 kB / 493.6 MB, free: 16.58 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.468e-05/0.4734, allocations: 15.8 kB / 493.6 MB, free: 16.58 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.859e-06/0.4734, allocations: 2.891 kB / 493.6 MB, free: 16.58 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.606e-05/0.4735, allocations: 3.469 kB / 493.6 MB, free: 16.58 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.059e-05/0.4735, allocations: 3.469 kB / 493.6 MB, free: 16.58 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (mean.y,$PRE.mean.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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 7.432e-05/0.4736, allocations: 125 kB / 493.7 MB, free: 16.45 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.622e-05/0.4736, allocations: 7.906 kB / 493.7 MB, free: 16.45 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.558e-05/0.4736, allocations: 5.5 kB / 493.7 MB, free: 16.43 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.4737, allocations: 5.125 kB / 493.7 MB, free: 16.43 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.4737, allocations: 0.7031 kB / 493.7 MB, free: 16.43 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.4737, allocations: 1.281 kB / 493.8 MB, free: 16.43 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001448/0.4738, allocations: 169.3 kB / 493.9 MB, free: 16.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.4738, allocations: 1.031 kB / 493.9 MB, free: 16.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.993e-05/0.4739, allocations: 6.422 kB / 493.9 MB, free: 16.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.357e-06/0.4739, allocations: 7.984 kB / 493.9 MB, free: 16.22 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.018e-05/0.4739, allocations: 1.766 kB / 493.9 MB, free: 16.22 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.4739, allocations: 1.125 kB / 493.9 MB, free: 16.22 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.4739, allocations: 0.6094 kB / 493.9 MB, free: 16.22 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000227/0.4742, allocations: 118.6 kB / 494 MB, free: 16.13 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.487e-05/0.4742, allocations: 82.86 kB / 494.1 MB, free: 16.04 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.593e-05/0.4742, allocations: 1.938 kB / 494.1 MB, free: 16.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.993e-05/0.4743, allocations: 3.656 kB / 494.1 MB, free: 16.04 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.754e-05/0.4743, allocations: 2.844 kB / 494.1 MB, free: 16.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.366e-06/0.4743, allocations: 3.734 kB / 494.1 MB, free: 16.04 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.737e-05/0.4744, allocations: 92.36 kB / 494.2 MB, free: 15.95 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4744, allocations: 4.062 kB / 494.2 MB, free: 15.95 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0001925/0.4746, allocations: 11.88 kB / 494.2 MB, free: 15.95 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (mean.x) * Number of discrete variables: 2 ($whenCondition1,mean.y) * Number of discrete states: 1 (mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.072e-05/0.4747, allocations: 101.2 kB / 494.3 MB, free: 15.85 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001677/0.4748, allocations: 41.36 kB / 494.4 MB, free: 15.84 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.4749, allocations: 1.094 kB / 494.4 MB, free: 15.84 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 6.263e-05/0.4749, allocations: 12.44 kB / 494.4 MB, free: 15.84 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001563/0.4751, allocations: 20.7 kB / 494.4 MB, free: 15.82 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004088/0.4755, allocations: 153.5 kB / 494.6 MB, free: 15.69 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002085/0.4757, allocations: 0.6833 MB / 495.3 MB, free: 15 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.812e-05/0.4758, allocations: 3.078 kB / 495.3 MB, free: 15 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.202e-05/0.4758, allocations: 10.78 kB / 495.3 MB, free: 14.99 MB / 382.1 MB Notification: Performance of SimCode: time 2e-07/0.4758, allocations: 0 / 495.3 MB, free: 14.99 MB / 382.1 MB Notification: Performance of Templates: time 0.003527/0.4793, allocations: 498.3 kB / 495.8 MB, free: 14.91 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Blocks.Mean.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_3.2.1_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Blocks.Mean.pipe 2>&1)