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.006769/0.006769, allocations: 99.66 kB / 15.73 MB, free: 5.949 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.001277/0.001277, allocations: 193.1 kB / 16.67 MB, free: 5.875 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.52/1.52, allocations: 205.1 MB / 222.6 MB, free: 4.352 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.3873/0.3873, allocations: 38 MB / 307.9 MB, free: 10.35 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.001944/0.001944, allocations: 72.36 kB / 433 MB, free: 5.438 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.407/0.409, allocations: 56.47 MB / 489.4 MB, free: 19.88 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002824/0.4119, allocations: 1.485 MB / 490.9 MB, free: 18.84 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009241/0.4128, allocations: 0.5073 MB / 491.4 MB, free: 18.48 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.887e-05/0.4129, allocations: 1.344 kB / 491.4 MB, free: 18.48 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.231e-05/0.4129, allocations: 4.734 kB / 491.4 MB, free: 18.48 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.681e-05/0.413, allocations: 9.797 kB / 491.4 MB, free: 18.47 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002487/0.4132, allocations: 21.95 kB / 491.5 MB, free: 18.46 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001187/0.4134, allocations: 48.66 kB / 491.5 MB, free: 18.43 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001133/0.4135, allocations: 8.828 kB / 491.5 MB, free: 18.43 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001109/0.4136, allocations: 27.19 kB / 491.5 MB, free: 18.41 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.626e-05/0.4137, allocations: 16.33 kB / 491.6 MB, free: 18.41 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.084e-05/0.4137, allocations: 7.344 kB / 491.6 MB, free: 18.4 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.378e-05/0.4137, allocations: 7.469 kB / 491.6 MB, free: 18.4 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.827e-05/0.4138, allocations: 6.844 kB / 491.6 MB, free: 18.39 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.76e-05/0.4138, allocations: 18.83 kB / 491.6 MB, free: 18.38 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001128/0.4139, allocations: 38.39 kB / 491.6 MB, free: 18.37 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.414, allocations: 1.469 kB / 491.6 MB, free: 18.37 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.414, allocations: 0 / 491.6 MB, free: 18.37 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.324e-06/0.414, allocations: 4.562 kB / 491.6 MB, free: 18.36 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.0006007/0.4146, allocations: 346.8 kB / 492 MB, free: 18 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.915e-05/0.4147, allocations: 13.91 kB / 492 MB, free: 18 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.494e-05/0.4147, allocations: 7.094 kB / 492 MB, free: 18 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002171/0.4149, allocations: 177.2 kB / 492.2 MB, free: 17.79 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.439e-05/0.4149, allocations: 2.594 kB / 492.2 MB, free: 17.79 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.356e-05/0.415, allocations: 7.406 kB / 492.2 MB, free: 17.79 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001943/0.4152, allocations: 55.03 kB / 492.2 MB, free: 17.75 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.528e-05/0.4152, allocations: 1.094 kB / 492.2 MB, free: 17.75 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.55e-05/0.4152, allocations: 7.922 kB / 492.3 MB, free: 17.74 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.4152, allocations: 1.094 kB / 492.3 MB, free: 17.74 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.464e-05/0.4153, allocations: 19.34 kB / 492.3 MB, free: 17.73 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003896/0.4157, allocations: 266.1 kB / 492.5 MB, free: 17.46 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001216/0.4159, allocations: 35.61 kB / 492.6 MB, free: 17.43 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.346e-05/0.4159, allocations: 17.98 kB / 492.6 MB, free: 17.41 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.838e-05/0.416, allocations: 3.984 kB / 492.6 MB, free: 17.41 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001724/0.4161, allocations: 69.27 kB / 492.7 MB, free: 17.36 MB / 382.1 MB Notification: Performance of pre-optimization done (n=4): time 1.493e-06/0.4162, allocations: 1.375 kB / 492.7 MB, free: 17.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003001/0.4165, allocations: 82.16 kB / 492.7 MB, free: 17.31 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.171e-05/0.4165, allocations: 52.41 kB / 492.8 MB, free: 17.25 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001042/0.4166, allocations: 113.8 kB / 492.9 MB, free: 17.14 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.799e-05/0.4166, allocations: 26.86 kB / 492.9 MB, free: 17.11 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.503e-05/0.4167, allocations: 90.83 kB / 493 MB, free: 17.02 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.114e-05/0.4167, allocations: 11.67 kB / 493 MB, free: 17.01 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.968e-05/0.4168, allocations: 23.89 kB / 493 MB, free: 16.99 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.075e-05/0.4168, allocations: 318.3 kB / 493.4 MB, free: 16.67 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.576e-05/0.4169, allocations: 23.41 kB / 493.4 MB, free: 16.66 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.093e-05/0.417, allocations: 41.97 kB / 493.4 MB, free: 16.62 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001293/0.4171, allocations: 69.2 kB / 493.5 MB, free: 16.56 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.4171, allocations: 0.9062 kB / 493.5 MB, free: 16.56 MB / 382.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002053/0.4173, allocations: 86.14 kB / 493.6 MB, free: 16.51 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.4174, allocations: 5.031 kB / 493.6 MB, free: 16.51 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/0.4174, allocations: 1.281 kB / 493.6 MB, free: 16.51 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.441e-05/0.4174, allocations: 2.828 kB / 493.6 MB, free: 16.51 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.481e-05/0.4175, allocations: 15.66 kB / 493.6 MB, free: 16.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.127e-06/0.4175, allocations: 1.719 kB / 493.6 MB, free: 16.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.933e-05/0.4176, allocations: 8.031 kB / 493.6 MB, free: 16.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.212e-05/0.4176, allocations: 2.812 kB / 493.6 MB, free: 16.5 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 8.707e-05/0.4177, allocations: 122.6 kB / 493.7 MB, free: 16.38 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.063e-05/0.4177, allocations: 10.62 kB / 493.7 MB, free: 16.37 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.254e-05/0.4178, allocations: 6.094 kB / 493.7 MB, free: 16.36 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.4178, allocations: 0.875 kB / 493.7 MB, free: 16.36 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.074e-06/0.4178, allocations: 5.062 kB / 493.8 MB, free: 16.35 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.4178, allocations: 0.6562 kB / 493.8 MB, free: 16.35 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000123/0.4179, allocations: 169.8 kB / 493.9 MB, free: 16.15 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.4179, allocations: 5.219 kB / 493.9 MB, free: 16.15 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.78e-05/0.418, allocations: 6.594 kB / 493.9 MB, free: 16.15 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/0.418, allocations: 0 / 493.9 MB, free: 16.15 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.533e-05/0.418, allocations: 1.953 kB / 493.9 MB, free: 16.15 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.418, allocations: 0 / 493.9 MB, free: 16.15 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.4181, allocations: 1.125 kB / 493.9 MB, free: 16.15 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002463/0.4183, allocations: 115.2 kB / 494 MB, free: 16.06 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.883e-05/0.4183, allocations: 82.98 kB / 494.1 MB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.904e-05/0.4184, allocations: 2.234 kB / 494.1 MB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.866e-05/0.4184, allocations: 6.547 kB / 494.1 MB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.7e-05/0.4185, allocations: 4.375 kB / 494.1 MB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.393e-06/0.4185, allocations: 2.344 kB / 494.1 MB, free: 15.96 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.527e-05/0.4185, allocations: 87.58 kB / 494.2 MB, free: 15.88 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4185, allocations: 64 / 494.2 MB, free: 15.88 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002111/0.4188, allocations: 12.28 kB / 494.2 MB, free: 15.88 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.195e-05/0.4188, allocations: 108.7 kB / 494.3 MB, free: 15.78 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001753/0.419, allocations: 38.06 kB / 494.4 MB, free: 15.77 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.419, allocations: 3.938 kB / 494.4 MB, free: 15.77 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 6.612e-05/0.4191, allocations: 18.72 kB / 494.4 MB, free: 15.76 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001565/0.4193, allocations: 15.36 kB / 494.4 MB, free: 15.75 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004783/0.4198, allocations: 158 kB / 494.6 MB, free: 15.61 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002722/0.42, allocations: 0.6832 MB / 495.3 MB, free: 14.92 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.482e-05/0.4201, allocations: 3.844 kB / 495.3 MB, free: 14.92 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.46e-05/0.4201, allocations: 9.906 kB / 495.3 MB, free: 14.91 MB / 382.1 MB Notification: Performance of SimCode: time 2.31e-07/0.4201, allocations: 0 / 495.3 MB, free: 14.91 MB / 382.1 MB Notification: Performance of Templates: time 0.002932/0.4231, allocations: 476.3 kB / 495.7 MB, free: 14.85 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)