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.0009608/0.0009607, allocations: 200.7 kB / 18.1 MB, free: 3.715 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.452/1.452, allocations: 226.5 MB / 245.4 MB, free: 6.516 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008326/0.0008326, allocations: 112.7 kB / 297.5 MB, free: 6.672 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000289/0.0002891, allocations: 4 kB / 358.1 MB, free: 10.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2567/0.257, allocations: 51.3 MB / 409.4 MB, free: 27.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1037/0.3607, allocations: 77.92 MB / 487.3 MB, free: 13.57 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002296/0.361, allocations: 65.42 kB / 487.4 MB, free: 13.51 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005877/0.3669, allocations: 1.991 MB / 489.3 MB, free: 11.53 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.475e-06/0.3669, allocations: 0 / 489.3 MB, free: 11.53 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.328e-05/0.3669, allocations: 8 kB / 489.4 MB, free: 11.52 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.0005342/0.3675, allocations: 478.4 kB / 489.8 MB, free: 10.99 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.3675, allocations: 8.031 kB / 489.8 MB, free: 10.98 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002145/0.3678, allocations: 40.72 kB / 489.9 MB, free: 10.95 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001954/0.368, allocations: 202.4 kB / 490.1 MB, free: 10.71 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.142e-05/0.368, allocations: 8.375 kB / 490.1 MB, free: 10.7 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.3e-05/0.368, allocations: 16.3 kB / 490.1 MB, free: 10.69 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000422/0.3685, allocations: 186.1 kB / 490.3 MB, free: 10.5 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.3685, allocations: 4.188 kB / 490.3 MB, free: 10.5 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.773e-05/0.3685, allocations: 7.875 kB / 490.3 MB, free: 10.49 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.3685, allocations: 0 / 490.3 MB, free: 10.49 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003377/0.3689, allocations: 131.8 kB / 490.4 MB, free: 10.36 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006442/0.3695, allocations: 436.4 kB / 490.8 MB, free: 9.883 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005532/0.3701, allocations: 235 kB / 491.1 MB, free: 9.645 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002814/0.3704, allocations: 112.8 kB / 491.2 MB, free: 9.531 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.608e-05/0.3704, allocations: 4 kB / 491.2 MB, free: 9.527 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004715/0.3709, allocations: 187.3 kB / 491.4 MB, free: 9.332 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 1.502e-06/0.3709, allocations: 0 / 491.4 MB, free: 9.332 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.001013/0.3719, allocations: 413.4 kB / 491.8 MB, free: 8.922 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.818e-05/0.372, allocations: 55.41 kB / 491.8 MB, free: 8.855 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001292/0.3721, allocations: 142 kB / 492 MB, free: 8.703 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.114e-05/0.3722, allocations: 33.7 kB / 492 MB, free: 8.664 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.22e-05/0.3722, allocations: 104.5 kB / 492.1 MB, free: 8.559 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.406e-05/0.3723, allocations: 39.55 kB / 492.1 MB, free: 8.52 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.617e-06/0.3723, allocations: 4 kB / 492.1 MB, free: 8.516 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.3725, allocations: 330.8 kB / 492.5 MB, free: 8.184 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001144/0.3726, allocations: 47.97 kB / 492.5 MB, free: 8.137 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001641/0.3728, allocations: 116.5 kB / 492.6 MB, free: 7.992 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002864/0.373, allocations: 190.9 kB / 492.8 MB, free: 7.777 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.604e-06/0.3731, allocations: 0 / 492.8 MB, free: 7.777 MB / 362.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003606/0.3734, allocations: 209.4 kB / 493 MB, free: 7.566 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.96e-05/0.3735, allocations: 14.8 kB / 493 MB, free: 7.555 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.3735, allocations: 4 kB / 493 MB, free: 7.551 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.706e-05/0.3735, allocations: 0 / 493 MB, free: 7.551 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001725/0.3737, allocations: 35.92 kB / 493.1 MB, free: 7.516 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.103e-06/0.3737, allocations: 4 kB / 493.1 MB, free: 7.512 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.49e-05/0.3738, allocations: 31.95 kB / 493.1 MB, free: 7.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.4e-05/0.3738, allocations: 4 kB / 493.1 MB, free: 7.477 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 0.000118/0.3739, allocations: 143.4 kB / 493.2 MB, free: 7.324 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.891e-05/0.374, allocations: 7.906 kB / 493.3 MB, free: 7.316 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007349/0.3747, allocations: 317.4 kB / 493.6 MB, free: 6.996 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.3747, allocations: 0 / 493.6 MB, free: 6.996 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.409e-06/0.3747, allocations: 0 / 493.6 MB, free: 6.996 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.131e-06/0.3747, allocations: 3.984 kB / 493.6 MB, free: 6.992 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000898/0.3756, allocations: 0.6153 MB / 494.2 MB, free: 6.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/0.3757, allocations: 0 / 494.2 MB, free: 6.32 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001021/0.3758, allocations: 27.92 kB / 494.2 MB, free: 6.293 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.355e-06/0.3758, allocations: 0 / 494.2 MB, free: 6.293 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.993e-05/0.3758, allocations: 7.984 kB / 494.2 MB, free: 6.285 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.3758, allocations: 0 / 494.2 MB, free: 6.285 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/0.3758, allocations: 3.938 kB / 494.2 MB, free: 6.281 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009848/0.3768, allocations: 0.5341 MB / 494.8 MB, free: 5.73 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.132e-05/0.3769, allocations: 85.05 kB / 494.8 MB, free: 5.629 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.911e-05/0.3769, allocations: 11.98 kB / 494.9 MB, free: 5.617 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001868/0.3771, allocations: 40.03 kB / 494.9 MB, free: 5.578 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.016e-05/0.3772, allocations: 11.92 kB / 494.9 MB, free: 5.566 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.85e-05/0.3772, allocations: 11.98 kB / 494.9 MB, free: 5.555 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.217e-05/0.3773, allocations: 106.5 kB / 495 MB, free: 5.453 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3773, allocations: 0 / 495 MB, free: 5.453 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002869/0.3776, allocations: 32 kB / 495 MB, free: 5.422 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.0001678/0.3778, allocations: 118.1 kB / 495.2 MB, free: 5.301 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004333/0.3782, allocations: 183.8 kB / 495.3 MB, free: 5.121 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3782, allocations: 0 / 495.3 MB, free: 5.121 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002648/0.3785, allocations: 115.5 kB / 495.5 MB, free: 5.012 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002495/0.3787, allocations: 15.94 kB / 495.5 MB, free: 4.996 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000778/0.3795, allocations: 389.9 kB / 495.9 MB, free: 4.59 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002802/0.3798, allocations: 0.7043 MB / 496.6 MB, free: 3.859 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.693e-05/0.3799, allocations: 12.64 kB / 496.6 MB, free: 3.844 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.672e-05/0.3799, allocations: 19.42 kB / 496.6 MB, free: 3.824 MB / 362.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3799, allocations: 3.938 kB / 496.6 MB, free: 3.82 MB / 362.7 MB Notification: Performance of Templates: time 0.003269/0.3832, allocations: 1.063 MB / 497.7 MB, free: 2.762 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)