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.0007741/0.0007742, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.0008739/0.0008739, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.2/1.2, allocations: 205.4 MB / 222.1 MB, free: 5.652 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.2611/0.2611, allocations: 38.03 MB / 308.4 MB, free: 10.37 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.0005087/0.0005088, allocations: 12 kB / 376.4 MB, free: 15.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08742/0.08794, allocations: 57.52 MB / 433.9 MB, free: 5.547 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.001466/0.08944, allocations: 1.189 MB / 435.1 MB, free: 4.344 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007209/0.09019, allocations: 493.6 kB / 435.6 MB, free: 3.855 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.895e-05/0.09027, allocations: 0 / 435.6 MB, free: 3.855 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.481e-05/0.09029, allocations: 7.875 kB / 435.6 MB, free: 3.848 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 4.614e-05/0.09034, allocations: 3.938 kB / 435.6 MB, free: 3.844 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001787/0.09053, allocations: 19.98 kB / 435.7 MB, free: 3.824 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 7.16e-05/0.09061, allocations: 47.83 kB / 435.7 MB, free: 3.777 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.735e-05/0.09068, allocations: 4 kB / 435.7 MB, free: 3.773 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.99e-05/0.09077, allocations: 19.92 kB / 435.7 MB, free: 3.754 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.084e-05/0.09083, allocations: 11.92 kB / 435.7 MB, free: 3.742 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.278e-05/0.09085, allocations: 4 kB / 435.7 MB, free: 3.738 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.326e-06/0.09086, allocations: 0 / 435.7 MB, free: 3.738 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.283e-05/0.09088, allocations: 4 kB / 435.7 MB, free: 3.734 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.547e-05/0.09092, allocations: 33.64 kB / 435.8 MB, free: 3.695 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 5.689e-05/0.09098, allocations: 36.16 kB / 435.8 MB, free: 3.66 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.09099, allocations: 0 / 435.8 MB, free: 3.66 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.091, allocations: 0 / 435.8 MB, free: 3.66 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.066e-06/0.09101, allocations: 3.938 kB / 435.8 MB, free: 3.656 MB / 366.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.0003788/0.09139, allocations: 335.3 kB / 436.1 MB, free: 3.281 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.139e-05/0.09143, allocations: 8.031 kB / 436.1 MB, free: 3.273 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.275e-05/0.09147, allocations: 19.84 kB / 436.2 MB, free: 3.254 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001441/0.09162, allocations: 171 kB / 436.3 MB, free: 3.047 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.689e-06/0.09164, allocations: 8 kB / 436.3 MB, free: 3.039 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.067e-05/0.09166, allocations: 4 kB / 436.3 MB, free: 3.035 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001296/0.0918, allocations: 53.61 kB / 436.4 MB, free: 2.977 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.516e-06/0.09182, allocations: 0 / 436.4 MB, free: 2.977 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.345e-06/0.09183, allocations: 0 / 436.4 MB, free: 2.977 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-06/0.09184, allocations: 0 / 436.4 MB, free: 2.977 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.77e-05/0.09192, allocations: 23.98 kB / 436.4 MB, free: 2.953 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003201/0.09225, allocations: 268.9 kB / 436.7 MB, free: 2.641 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.696e-05/0.09234, allocations: 34.56 kB / 436.7 MB, free: 2.598 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.731e-05/0.0924, allocations: 20.8 kB / 436.7 MB, free: 2.574 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.19e-05/0.09242, allocations: 96 / 436.7 MB, free: 2.574 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001644/0.09259, allocations: 75.38 kB / 436.8 MB, free: 2.488 MB / 366.1 MB Notification: Performance of pre-optimization done (n=4): time 1.092e-06/0.0926, allocations: 0 / 436.8 MB, free: 2.488 MB / 366.1 MB Notification: Performance of matching and sorting (n=4): time 0.000221/0.09282, allocations: 85.52 kB / 436.9 MB, free: 2.398 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.161e-05/0.09288, allocations: 63.41 kB / 437 MB, free: 2.324 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.097e-05/0.09297, allocations: 109.8 kB / 437.1 MB, free: 2.207 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.269e-05/0.09299, allocations: 33.64 kB / 437.1 MB, free: 2.168 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.652e-05/0.09303, allocations: 84.14 kB / 437.2 MB, free: 2.082 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.612e-05/0.09306, allocations: 23.78 kB / 437.2 MB, free: 2.059 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.406e-06/0.09307, allocations: 0 / 437.2 MB, free: 2.059 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.945e-05/0.09317, allocations: 314.8 kB / 437.5 MB, free: 1.742 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.706e-05/0.09322, allocations: 15.98 kB / 437.5 MB, free: 1.727 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.743e-05/0.09328, allocations: 48.28 kB / 437.6 MB, free: 1.664 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.266e-05/0.09335, allocations: 20.38 kB / 437.6 MB, free: 1.645 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.09336, allocations: 4 kB / 437.6 MB, free: 1.641 MB / 366.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001623/0.09353, allocations: 85.73 kB / 437.7 MB, free: 1.551 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.226e-05/0.09355, allocations: 4 kB / 437.7 MB, free: 1.547 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.09356, allocations: 7.938 kB / 437.7 MB, free: 1.539 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.327e-06/0.09357, allocations: 0 / 437.7 MB, free: 1.539 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.632e-05/0.09365, allocations: 23.92 kB / 437.7 MB, free: 1.516 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.161e-06/0.09367, allocations: 8.094 kB / 437.7 MB, free: 1.508 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.659e-05/0.09372, allocations: 15.84 kB / 437.7 MB, free: 1.492 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.828e-06/0.09374, allocations: 4 kB / 437.7 MB, free: 1.488 MB / 366.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 ($PRE.mean.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.63e-05/0.09382, allocations: 118.9 kB / 437.9 MB, free: 1.363 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.728e-06/0.09384, allocations: 0 / 437.9 MB, free: 1.363 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.265e-05/0.09386, allocations: 3.906 kB / 437.9 MB, free: 1.359 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.09387, allocations: 4 kB / 437.9 MB, free: 1.355 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.143e-05/0.09389, allocations: 3.953 kB / 437.9 MB, free: 1.352 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.0939, allocations: 4 kB / 437.9 MB, free: 1.348 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001032/0.094, allocations: 165.7 kB / 438 MB, free: 1.137 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.09401, allocations: 0 / 438 MB, free: 1.137 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.984e-05/0.09408, allocations: 7.984 kB / 438 MB, free: 1.129 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.09409, allocations: 0 / 438 MB, free: 1.129 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.026e-05/0.0941, allocations: 4 kB / 438 MB, free: 1.125 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.09411, allocations: 0 / 438 MB, free: 1.125 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.09411, allocations: 0 / 438 MB, free: 1.125 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000213/0.09433, allocations: 132.9 kB / 438.2 MB, free: 0.9766 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.452e-05/0.09438, allocations: 77.11 kB / 438.3 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.414e-05/0.0944, allocations: 0 / 438.3 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.212e-05/0.09444, allocations: 8.016 kB / 438.3 MB, free: 0.875 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.713e-05/0.09448, allocations: 4 kB / 438.3 MB, free: 0.8711 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.652e-06/0.09449, allocations: 0 / 438.3 MB, free: 0.8711 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.111e-05/0.09453, allocations: 99.27 kB / 438.4 MB, free: 0.7734 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09454, allocations: 0 / 438.4 MB, free: 0.7734 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0001848/0.09473, allocations: 7.953 kB / 438.4 MB, free: 0.7656 MB / 366.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 7.579e-05/0.09481, allocations: 103.2 kB / 438.5 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001357/0.09495, allocations: 39.91 kB / 438.5 MB, free: 0.6172 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.09496, allocations: 320 / 438.5 MB, free: 0.6172 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.998e-05/0.09503, allocations: 27.98 kB / 438.5 MB, free: 0.5898 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001294/0.09517, allocations: 4.219 kB / 438.5 MB, free: 0.5859 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002689/0.09544, allocations: 166.5 kB / 438.7 MB, free: 404 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002164/0.09567, allocations: 0.6887 MB / 439.4 MB, free: 15.68 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.668e-05/0.09571, allocations: 4 kB / 439.4 MB, free: 15.68 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.453e-05/0.09574, allocations: 15.42 kB / 439.4 MB, free: 15.66 MB / 382.1 MB Notification: Performance of SimCode: time 3.51e-07/0.09574, allocations: 0 / 439.4 MB, free: 15.66 MB / 382.1 MB Notification: Performance of Templates: time 0.002061/0.09781, allocations: 404.5 kB / 439.8 MB, free: 15.27 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Blocks.Mean.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: