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.008951/0.008951, allocations: 109.8 kB / 15.74 MB, free: 6.449 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.001904/0.001903, allocations: 196 kB / 16.67 MB, free: 6.355 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.844/1.844, allocations: 205.1 MB / 222.5 MB, free: 4.535 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.4185/0.4185, 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.001489/0.001489, allocations: 75.89 kB / 433 MB, free: 5.441 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3481/0.3496, allocations: 56.46 MB / 489.4 MB, free: 19.98 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002904/0.3526, allocations: 1.475 MB / 490.9 MB, free: 18.95 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008832/0.3535, allocations: 0.5124 MB / 491.4 MB, free: 18.59 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.661e-05/0.3536, allocations: 1.219 kB / 491.4 MB, free: 18.59 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.468e-05/0.3536, allocations: 4.641 kB / 491.4 MB, free: 18.59 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.45e-05/0.3537, allocations: 6.375 kB / 491.4 MB, free: 18.58 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002252/0.3539, allocations: 26.11 kB / 491.5 MB, free: 18.57 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001033/0.354, allocations: 46.62 kB / 491.5 MB, free: 18.54 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001023/0.3541, allocations: 5.328 kB / 491.5 MB, free: 18.54 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001017/0.3543, allocations: 35.52 kB / 491.6 MB, free: 18.52 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.656e-05/0.3543, allocations: 16.81 kB / 491.6 MB, free: 18.51 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.319e-05/0.3544, allocations: 3.875 kB / 491.6 MB, free: 18.51 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.414e-05/0.3544, allocations: 2.75 kB / 491.6 MB, free: 18.51 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.553e-05/0.3544, allocations: 11.27 kB / 491.6 MB, free: 18.5 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.219e-05/0.3545, allocations: 17.78 kB / 491.6 MB, free: 18.49 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001131/0.3546, allocations: 39.31 kB / 491.6 MB, free: 18.48 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/0.3546, allocations: 0.6562 kB / 491.6 MB, free: 18.48 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3546, allocations: 1.031 kB / 491.6 MB, free: 18.48 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.989e-06/0.3546, allocations: 0 / 491.6 MB, free: 18.48 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.0005097/0.3551, allocations: 350.1 kB / 492 MB, free: 18.11 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/0.3552, allocations: 14.17 kB / 492 MB, free: 18.11 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.93e-05/0.3552, allocations: 8.844 kB / 492 MB, free: 18.11 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002058/0.3554, allocations: 181 kB / 492.2 MB, free: 17.9 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.474e-05/0.3555, allocations: 5.531 kB / 492.2 MB, free: 17.89 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.114e-05/0.3555, allocations: 2.656 kB / 492.2 MB, free: 17.89 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001582/0.3557, allocations: 52.34 kB / 492.2 MB, free: 17.86 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.318e-05/0.3557, allocations: 0 / 492.2 MB, free: 17.86 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.296e-05/0.3557, allocations: 6.047 kB / 492.2 MB, free: 17.85 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.3557, allocations: 0 / 492.2 MB, free: 17.85 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.644e-05/0.3558, allocations: 23.27 kB / 492.3 MB, free: 17.84 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003841/0.3562, allocations: 265.4 kB / 492.5 MB, free: 17.57 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.241e-05/0.3563, allocations: 31.8 kB / 492.6 MB, free: 17.54 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.38e-05/0.3564, allocations: 21.95 kB / 492.6 MB, free: 17.52 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.808e-05/0.3564, allocations: 1.156 kB / 492.6 MB, free: 17.52 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001585/0.3566, allocations: 69.62 kB / 492.7 MB, free: 17.47 MB / 382.1 MB Notification: Performance of pre-optimization done (n=4): time 1.332e-06/0.3566, allocations: 0 / 492.7 MB, free: 17.47 MB / 382.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002818/0.3569, allocations: 77.12 kB / 492.7 MB, free: 17.43 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.328e-05/0.3569, allocations: 58.03 kB / 492.8 MB, free: 17.36 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.342e-05/0.357, allocations: 116.4 kB / 492.9 MB, free: 17.25 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.335e-05/0.357, allocations: 27.91 kB / 492.9 MB, free: 17.22 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.781e-05/0.3571, allocations: 86.5 kB / 493 MB, free: 17.13 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.991e-05/0.3571, allocations: 15.25 kB / 493 MB, free: 17.12 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.597e-05/0.3571, allocations: 29.88 kB / 493.1 MB, free: 17.09 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.861e-05/0.3572, allocations: 316.9 kB / 493.4 MB, free: 16.78 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.614e-05/0.3572, allocations: 15.83 kB / 493.4 MB, free: 16.77 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.739e-05/0.3573, allocations: 46.52 kB / 493.4 MB, free: 16.73 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001289/0.3575, allocations: 69.14 kB / 493.5 MB, free: 16.67 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3575, allocations: 0 / 493.5 MB, free: 16.67 MB / 382.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001672/0.3576, allocations: 86.02 kB / 493.6 MB, free: 16.62 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.031e-05/0.3577, allocations: 5.719 kB / 493.6 MB, free: 16.62 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.3577, allocations: 0.9375 kB / 493.6 MB, free: 16.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.861e-05/0.3577, allocations: 2.125 kB / 493.6 MB, free: 16.62 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.563e-05/0.3578, allocations: 11.47 kB / 493.6 MB, free: 16.62 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.586e-06/0.3578, allocations: 3.438 kB / 493.6 MB, free: 16.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.47e-05/0.3579, allocations: 10.25 kB / 493.6 MB, free: 16.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.085e-05/0.3579, allocations: 4.656 kB / 493.6 MB, free: 16.61 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 6.386e-05/0.358, allocations: 125.3 kB / 493.7 MB, free: 16.48 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.36e-05/0.358, allocations: 7.344 kB / 493.7 MB, free: 16.48 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.649e-05/0.358, allocations: 6.25 kB / 493.7 MB, free: 16.46 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.358, allocations: 0 / 493.7 MB, free: 16.46 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.323e-06/0.358, allocations: 5.219 kB / 493.8 MB, free: 16.46 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.358, allocations: 0 / 493.8 MB, free: 16.46 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.309e-05/0.3581, allocations: 174.7 kB / 493.9 MB, free: 16.26 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.3581, allocations: 0 / 493.9 MB, free: 16.26 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.132e-05/0.3582, allocations: 6.672 kB / 493.9 MB, free: 16.26 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.3582, allocations: 1.125 kB / 493.9 MB, free: 16.26 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.747e-06/0.3582, allocations: 1.031 kB / 493.9 MB, free: 16.26 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.3582, allocations: 1.156 kB / 493.9 MB, free: 16.26 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.3582, allocations: 192 / 493.9 MB, free: 16.26 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002271/0.3585, allocations: 119.6 kB / 494.1 MB, free: 16.17 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.279e-05/0.3585, allocations: 82.59 kB / 494.1 MB, free: 16.07 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.985e-05/0.3585, allocations: 1.578 kB / 494.1 MB, free: 16.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.177e-05/0.3586, allocations: 3.359 kB / 494.1 MB, free: 16.07 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.614e-05/0.3586, allocations: 6.906 kB / 494.1 MB, free: 16.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.016e-05/0.3587, allocations: 3.25 kB / 494.1 MB, free: 16.07 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.972e-05/0.3587, allocations: 93.06 kB / 494.2 MB, free: 15.98 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3587, allocations: 0 / 494.2 MB, free: 15.98 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0001883/0.3589, allocations: 11.28 kB / 494.2 MB, free: 15.98 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.57e-05/0.359, allocations: 109.8 kB / 494.4 MB, free: 15.88 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001628/0.3592, allocations: 37.47 kB / 494.4 MB, free: 15.87 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3592, allocations: 0 / 494.4 MB, free: 15.87 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 6.305e-05/0.3592, allocations: 19.36 kB / 494.4 MB, free: 15.87 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001489/0.3594, allocations: 9.828 kB / 494.4 MB, free: 15.86 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003447/0.3597, allocations: 154.7 kB / 494.6 MB, free: 15.73 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001247/0.3599, allocations: 0.6856 MB / 495.3 MB, free: 15.03 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.704e-05/0.3599, allocations: 4.5 kB / 495.3 MB, free: 15.03 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.639e-05/0.3599, allocations: 10.45 kB / 495.3 MB, free: 15.02 MB / 382.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3599, allocations: 0 / 495.3 MB, free: 15.02 MB / 382.1 MB Notification: Performance of Templates: time 0.002657/0.3626, allocations: 476.8 kB / 495.7 MB, free: 14.95 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)