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/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+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 ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+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/Complex 3.2.1+maint.om/package.mo): time 0.005468/0.005468, allocations: 165.6 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.317/1.317, allocations: 170.8 MB / 186.6 MB, free: 1.031 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001736/0.001735, allocations: 117.9 kB / 226.2 MB, free: 10.1 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.3625/0.3625, allocations: 38.06 MB / 303.7 MB, free: 42.5 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004056/0.0004056, allocations: 8 kB / 362.9 MB, free: 5.602 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.113, allocations: 48.7 MB / 411.6 MB, free: 4.824 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3621/0.4752, allocations: 73.96 MB / 485.5 MB, free: 13.77 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001749/0.4754, allocations: 63.48 kB / 485.6 MB, free: 13.74 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002463/0.4779, allocations: 0.9407 MB / 486.5 MB, free: 12.92 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4779, allocations: 5.156 kB / 486.5 MB, free: 12.91 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.596e-06/0.4779, allocations: 4 kB / 486.5 MB, free: 12.91 MB / 330.7 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.0003668/0.4783, allocations: 357.5 kB / 486.9 MB, free: 12.52 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/0.4783, allocations: 8.031 kB / 486.9 MB, free: 12.52 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.658e-05/0.4784, allocations: 4 kB / 486.9 MB, free: 12.51 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001635/0.4786, allocations: 185 kB / 487.1 MB, free: 12.3 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.439e-05/0.4786, allocations: 0 / 487.1 MB, free: 12.3 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.36e-05/0.4786, allocations: 4 kB / 487.1 MB, free: 12.3 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001404/0.4788, allocations: 49.61 kB / 487.1 MB, free: 12.25 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.236e-05/0.4788, allocations: 4 kB / 487.1 MB, free: 12.24 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.391e-05/0.4788, allocations: 3.875 kB / 487.1 MB, free: 12.24 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.032e-06/0.4788, allocations: 0 / 487.1 MB, free: 12.24 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.029e-05/0.4789, allocations: 23.92 kB / 487.2 MB, free: 12.22 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003863/0.4793, allocations: 285.1 kB / 487.4 MB, free: 11.91 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.611e-05/0.4794, allocations: 30.12 kB / 487.5 MB, free: 11.87 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.778e-05/0.4794, allocations: 4 kB / 487.5 MB, free: 11.87 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002001/0.4796, allocations: 71.28 kB / 487.5 MB, free: 11.79 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.192e-06/0.4796, allocations: 4 kB / 487.5 MB, free: 11.79 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002519/0.4799, allocations: 84.95 kB / 487.6 MB, free: 11.71 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.847e-05/0.4799, allocations: 51.41 kB / 487.7 MB, free: 11.64 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.405e-05/0.48, allocations: 105 kB / 487.8 MB, free: 11.54 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.246e-05/0.48, allocations: 29.64 kB / 487.8 MB, free: 11.5 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.417e-05/0.4801, allocations: 84.12 kB / 487.9 MB, free: 11.42 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.002e-05/0.4801, allocations: 28.48 kB / 487.9 MB, free: 11.39 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.298e-06/0.4801, allocations: 0 / 487.9 MB, free: 11.39 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6e-05/0.4802, allocations: 318.7 kB / 488.2 MB, free: 11.08 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.556e-05/0.4802, allocations: 19.67 kB / 488.2 MB, free: 11.06 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.543e-05/0.4803, allocations: 48.03 kB / 488.3 MB, free: 11 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.039e-05/0.4803, allocations: 23.8 kB / 488.3 MB, free: 10.98 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.4804, allocations: 0 / 488.3 MB, free: 10.98 MB / 330.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001354/0.4805, allocations: 93.17 kB / 488.4 MB, free: 10.9 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/0.4805, allocations: 4 kB / 488.4 MB, free: 10.89 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.4805, allocations: 4 kB / 488.4 MB, free: 10.89 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.62e-05/0.4806, allocations: 2.453 kB / 488.4 MB, free: 10.89 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.486e-05/0.4806, allocations: 8 kB / 488.4 MB, free: 10.88 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.4807, allocations: 4 kB / 488.4 MB, free: 10.88 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.249e-05/0.4807, allocations: 7.984 kB / 488.4 MB, free: 10.87 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.878e-06/0.4807, allocations: 7.938 kB / 488.4 MB, free: 10.86 MB / 330.7 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 6.353e-05/0.4808, allocations: 123.2 kB / 488.6 MB, free: 10.74 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.102e-05/0.4808, allocations: 7.844 kB / 488.6 MB, free: 10.73 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.561e-05/0.4808, allocations: 11.72 kB / 488.6 MB, free: 10.72 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.4809, allocations: 0 / 488.6 MB, free: 10.72 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.4809, allocations: 0 / 488.6 MB, free: 10.72 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.4809, allocations: 1.375 kB / 488.6 MB, free: 10.72 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.763e-05/0.481, allocations: 173.3 kB / 488.8 MB, free: 10.51 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.481, allocations: 0 / 488.8 MB, free: 10.51 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.073e-05/0.481, allocations: 4 kB / 488.8 MB, free: 10.51 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.097e-06/0.481, allocations: 7.984 kB / 488.8 MB, free: 10.5 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.035e-05/0.4811, allocations: 4 kB / 488.8 MB, free: 10.5 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.041e-06/0.4811, allocations: 0 / 488.8 MB, free: 10.5 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.4811, allocations: 0.625 kB / 488.8 MB, free: 10.5 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002078/0.4813, allocations: 121.2 kB / 488.9 MB, free: 10.38 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.702e-05/0.4813, allocations: 86 kB / 489 MB, free: 10.27 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.637e-05/0.4814, allocations: 4.062 kB / 489 MB, free: 10.27 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.876e-05/0.4814, allocations: 4 kB / 489 MB, free: 10.27 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.824e-05/0.4815, allocations: 7.922 kB / 489 MB, free: 10.26 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.592e-06/0.4815, allocations: 0 / 489 MB, free: 10.26 MB / 330.7 MB Notification: Performance of sorting global known variables: time 3.602e-05/0.4815, allocations: 91.14 kB / 489.1 MB, free: 10.17 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4815, allocations: 0 / 489.1 MB, free: 10.17 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001822/0.4817, allocations: 11.81 kB / 489.1 MB, free: 10.16 MB / 330.7 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 0.0001161/0.4818, allocations: 99.19 kB / 489.2 MB, free: 10.06 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001475/0.482, allocations: 47.28 kB / 489.2 MB, free: 10.02 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.482, allocations: 4 kB / 489.2 MB, free: 10.02 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.084e-05/0.482, allocations: 18.67 kB / 489.3 MB, free: 10 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.92e-05/0.4822, allocations: 0 / 489.3 MB, free: 10 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000312/0.4825, allocations: 190.1 kB / 489.4 MB, free: 9.797 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000121/0.4826, allocations: 0.6848 MB / 490.1 MB, free: 9.086 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 2.732e-05/0.4826, allocations: 4 kB / 490.1 MB, free: 9.082 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.938e-05/0.4827, allocations: 11.66 kB / 490.1 MB, free: 9.07 MB / 330.7 MB Notification: Performance of SimCode: time 2.3e-07/0.4827, allocations: 0 / 490.1 MB, free: 9.07 MB / 330.7 MB Notification: Performance of Templates: time 0.002139/0.4848, allocations: 426 kB / 490.6 MB, free: 8.684 MB / 330.7 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)