Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Blocks.Examples.DemonstrateSignalExtrema,tolerance=1e-06,outputFormat="empty",numberOfIntervals=300000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema") translateModel(Modelica.Blocks.Examples.DemonstrateSignalExtrema,tolerance=1e-06,outputFormat="empty",numberOfIntervals=300000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001029/0.001029, allocations: 198.3 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.171/1.171, allocations: 227.2 MB / 245 MB, free: 7.488 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008953/0.0008955, allocations: 97.28 kB / 297.3 MB, free: 6.18 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001998/0.0001998, allocations: 8 kB / 357.9 MB, free: 9.527 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1824/0.1826, allocations: 51.49 MB / 409.4 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08329/0.266, allocations: 77.99 MB / 487.4 MB, free: 12.63 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001901/0.2662, allocations: 67.97 kB / 487.5 MB, free: 12.57 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005432/0.2717, allocations: 1.995 MB / 489.5 MB, free: 10.57 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.2717, allocations: 0 / 489.5 MB, free: 10.57 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.838e-06/0.2717, allocations: 0 / 489.5 MB, free: 10.57 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0004893/0.2722, allocations: 478.2 kB / 489.9 MB, free: 10.05 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.669e-05/0.2722, allocations: 8.031 kB / 489.9 MB, free: 10.04 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002162/0.2725, allocations: 39.78 kB / 490 MB, free: 10 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001714/0.2727, allocations: 209 kB / 490.2 MB, free: 9.758 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.835e-05/0.2727, allocations: 19.89 kB / 490.2 MB, free: 9.738 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.795e-05/0.2727, allocations: 12 kB / 490.2 MB, free: 9.727 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004016/0.2731, allocations: 181.5 kB / 490.4 MB, free: 9.543 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.248e-06/0.2732, allocations: 4 kB / 490.4 MB, free: 9.539 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.772e-05/0.2732, allocations: 3.984 kB / 490.4 MB, free: 9.535 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.2732, allocations: 4 kB / 490.4 MB, free: 9.531 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003224/0.2735, allocations: 123.9 kB / 490.5 MB, free: 9.41 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005791/0.2741, allocations: 428.4 kB / 490.9 MB, free: 8.941 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005103/0.2746, allocations: 234.4 kB / 491.2 MB, free: 8.703 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.34e-05/0.2746, allocations: 3.938 kB / 491.2 MB, free: 8.699 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003992/0.275, allocations: 197.8 kB / 491.4 MB, free: 8.496 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 1.753e-06/0.2751, allocations: 4 kB / 491.4 MB, free: 8.492 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.0009281/0.276, allocations: 405.2 kB / 491.8 MB, free: 8.09 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.962e-05/0.276, allocations: 63.41 kB / 491.8 MB, free: 8.016 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.776e-05/0.2761, allocations: 121.3 kB / 492 MB, free: 7.887 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.071e-05/0.2762, allocations: 37.64 kB / 492 MB, free: 7.844 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.991e-05/0.2762, allocations: 104.5 kB / 492.1 MB, free: 7.738 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.892e-05/0.2763, allocations: 43.44 kB / 492.1 MB, free: 7.695 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.196e-06/0.2763, allocations: 4 kB / 492.1 MB, free: 7.691 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.481e-05/0.2764, allocations: 322.8 kB / 492.5 MB, free: 7.367 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001332/0.2765, allocations: 55.97 kB / 492.5 MB, free: 7.312 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001362/0.2767, allocations: 112.5 kB / 492.6 MB, free: 7.172 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001253/0.2768, allocations: 67.92 kB / 492.7 MB, free: 7.105 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.2768, allocations: 0 / 492.7 MB, free: 7.105 MB / 362.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003248/0.2771, allocations: 206.9 kB / 492.9 MB, free: 6.898 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/0.2772, allocations: 4 kB / 492.9 MB, free: 6.895 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.2772, allocations: 7.953 kB / 492.9 MB, free: 6.887 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.827e-05/0.2772, allocations: 12.27 kB / 492.9 MB, free: 6.875 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001632/0.2774, allocations: 39.92 kB / 492.9 MB, free: 6.836 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.072e-05/0.2774, allocations: 4 kB / 493 MB, free: 6.832 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.331e-05/0.2775, allocations: 23.83 kB / 493 MB, free: 6.809 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.536e-05/0.2775, allocations: 8 kB / 493 MB, free: 6.801 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.signalExtrema2.t_max,signalExtrema2.t_max,$PRE.signalExtrema2.t_min,signalExtrema2.t_min,$PRE.signalExtrema1.t_max,signalExtrema1.t_max,$PRE.signalExtrema1.t_min,signalExtrema1.t_min,$whenCondition2,$whenCondition1,$PRE.signalExtrema1.y_min,signalExtrema1.y_min,$PRE.signalExtrema1.y_max,signalExtrema1.y_max,$PRE.signalExtrema2.y_min,signalExtrema2.y_min,$PRE.signalExtrema2.y_max,signalExtrema2.y_max) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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 9.708e-05/0.2776, allocations: 131.5 kB / 493.1 MB, free: 6.66 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.383e-05/0.2776, allocations: 15.81 kB / 493.1 MB, free: 6.645 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006491/0.2783, allocations: 317.2 kB / 493.4 MB, free: 6.328 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.167e-06/0.2783, allocations: 7.953 kB / 493.4 MB, free: 6.32 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.2783, allocations: 4 kB / 493.4 MB, free: 6.316 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.181e-06/0.2783, allocations: 7.969 kB / 493.5 MB, free: 6.309 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000836/0.2792, allocations: 0.6114 MB / 494.1 MB, free: 5.641 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.2792, allocations: 0 / 494.1 MB, free: 5.641 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001004/0.2793, allocations: 19.92 kB / 494.1 MB, free: 5.621 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.2793, allocations: 3.953 kB / 494.1 MB, free: 5.617 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.008e-05/0.2793, allocations: 7.984 kB / 494.1 MB, free: 5.609 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.2793, allocations: 0 / 494.1 MB, free: 5.609 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.2793, allocations: 0 / 494.1 MB, free: 5.609 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009128/0.2803, allocations: 0.5187 MB / 494.6 MB, free: 5.074 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.778e-05/0.2803, allocations: 92.89 kB / 494.7 MB, free: 4.965 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.632e-05/0.2803, allocations: 11.95 kB / 494.7 MB, free: 4.953 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001979/0.2805, allocations: 43.95 kB / 494.8 MB, free: 4.91 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.027e-05/0.2806, allocations: 12.05 kB / 494.8 MB, free: 4.898 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.754e-05/0.2806, allocations: 19.92 kB / 494.8 MB, free: 4.879 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.182e-05/0.2807, allocations: 102 kB / 494.9 MB, free: 4.781 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2807, allocations: 0 / 494.9 MB, free: 4.781 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002608/0.2809, allocations: 32 kB / 494.9 MB, free: 4.75 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (sine.phi) * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,signalExtrema1.y_min,signalExtrema1.y_max,signalExtrema1.t_min,signalExtrema1.t_max,signalExtrema2.y_min,signalExtrema2.y_max,signalExtrema2.t_min,signalExtrema2.t_max) * Number of discrete states: 8 (signalExtrema2.y_min,signalExtrema2.y_max,signalExtrema2.t_max,signalExtrema2.t_min,signalExtrema1.y_min,signalExtrema1.y_max,signalExtrema1.t_max,signalExtrema1.t_min) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.0001314/0.2811, allocations: 122.7 kB / 495 MB, free: 4.621 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003965/0.2815, allocations: 188.1 kB / 495.2 MB, free: 4.438 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.2815, allocations: 4.188 kB / 495.2 MB, free: 4.434 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002331/0.2817, allocations: 103.9 kB / 495.3 MB, free: 4.332 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001396/0.2819, allocations: 19.08 kB / 495.4 MB, free: 4.316 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006944/0.2826, allocations: 377.9 kB / 495.7 MB, free: 3.926 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001919/0.2828, allocations: 0.7082 MB / 496.4 MB, free: 3.191 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.688e-05/0.2829, allocations: 12.64 kB / 496.4 MB, free: 3.176 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.435e-05/0.2829, allocations: 15.44 kB / 496.5 MB, free: 3.16 MB / 362.7 MB Notification: Performance of SimCode: time 1.412e-06/0.2829, allocations: 0 / 496.5 MB, free: 3.16 MB / 362.7 MB Notification: Performance of Templates: time 0.002804/0.2857, allocations: 1.065 MB / 497.5 MB, free: 2.102 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.sim & ./Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe 2>&1)