Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.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.DemonstrateContinuousSignalExtrema,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema") translateModel(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009941/0.0009941, allocations: 198.4 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.303/1.303, allocations: 225.6 MB / 234.8 MB, free: 3.258 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009362/0.0009366, allocations: 93.55 kB / 286.7 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.206e-05/2.208e-05, allocations: 4 kB / 343.7 MB, free: 8.277 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1174, allocations: 51.48 MB / 395.2 MB, free: 4.758 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3944/0.5119, allocations: 77.85 MB / 473 MB, free: 13.76 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001646/0.5121, allocations: 67.47 kB / 473.1 MB, free: 13.73 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01118/0.5233, allocations: 3.873 MB / 476.9 MB, free: 11.43 MB / 346.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.5233, allocations: 0 / 476.9 MB, free: 11.43 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.826e-06/0.5233, allocations: 4 kB / 476.9 MB, free: 11.43 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001089/0.5244, allocations: 0.7086 MB / 477.7 MB, free: 10.74 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.5244, allocations: 8.031 kB / 477.7 MB, free: 10.73 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002978/0.5247, allocations: 61.33 kB / 477.7 MB, free: 10.68 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001144/0.5249, allocations: 200.8 kB / 477.9 MB, free: 10.45 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.241e-05/0.5249, allocations: 15.59 kB / 477.9 MB, free: 10.44 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.437e-05/0.525, allocations: 23.05 kB / 478 MB, free: 10.42 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002472/0.5252, allocations: 126.1 kB / 478.1 MB, free: 10.35 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000381/0.5256, allocations: 261.9 kB / 478.3 MB, free: 10.21 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.5256, allocations: 0 / 478.3 MB, free: 10.21 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.22e-05/0.5257, allocations: 5.016 kB / 478.3 MB, free: 10.21 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.5257, allocations: 4 kB / 478.3 MB, free: 10.2 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001093/0.5268, allocations: 0.7254 MB / 479.1 MB, free: 9.684 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002807/0.5271, allocations: 259.7 kB / 479.3 MB, free: 9.516 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001525/0.5272, allocations: 126 kB / 479.4 MB, free: 9.438 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.228e-05/0.5273, allocations: 7.859 kB / 479.5 MB, free: 9.43 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004146/0.5277, allocations: 315.1 kB / 479.8 MB, free: 9.25 MB / 346.7 MB Notification: Performance of pre-optimization done (n=41): time 1.764e-06/0.5277, allocations: 0 / 479.8 MB, free: 9.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=41): time 0.0005547/0.5283, allocations: 417.2 kB / 480.2 MB, free: 8.965 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.917e-05/0.5283, allocations: 77.88 kB / 480.2 MB, free: 8.883 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001027/0.5284, allocations: 163.2 kB / 480.4 MB, free: 8.746 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.106e-05/0.5284, allocations: 31.25 kB / 480.4 MB, free: 8.711 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.613e-05/0.5285, allocations: 128.6 kB / 480.6 MB, free: 8.609 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.24e-05/0.5286, allocations: 103.5 kB / 480.7 MB, free: 8.531 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.888e-05/0.5286, allocations: 0 / 480.7 MB, free: 8.531 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.293e-05/0.5287, allocations: 344.6 kB / 481 MB, free: 8.199 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001534/0.5288, allocations: 98.88 kB / 481.1 MB, free: 8.141 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001723/0.529, allocations: 177.9 kB / 481.3 MB, free: 7.988 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001561/0.5292, allocations: 110.9 kB / 481.4 MB, free: 7.914 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.5292, allocations: 4 kB / 481.4 MB, free: 7.91 MB / 346.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0004711/0.5296, allocations: 362.7 kB / 481.7 MB, free: 7.637 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.516e-05/0.5297, allocations: 100.2 kB / 481.8 MB, free: 7.527 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-06/0.5297, allocations: 4 kB / 481.8 MB, free: 7.523 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.5297, allocations: 4 kB / 481.8 MB, free: 7.52 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003626/0.5301, allocations: 91.22 kB / 481.9 MB, free: 7.434 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.772e-06/0.5301, allocations: 4 kB / 481.9 MB, free: 7.43 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003143/0.5304, allocations: 71.64 kB / 482 MB, free: 7.359 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.026e-05/0.5305, allocations: 15.44 kB / 482 MB, free: 7.348 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 46 ($PRE.signalExtrema3.t_min,signalExtrema3.t_min,$PRE.signalExtrema3.t_max,signalExtrema3.t_max,$PRE.signalExtrema2.t_min,signalExtrema2.t_min,$PRE.signalExtrema2.t_max,signalExtrema2.t_max,$PRE.signalExtrema1.t_min,signalExtrema1.t_min,$PRE.signalExtrema1.t_max,signalExtrema1.t_max,$whenCondition5,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$PRE.sawTooth.T_start,sawTooth.T_start,$PRE.sawTooth.count,sawTooth.count,$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,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,$PRE.sawTooth1.T_start,sawTooth1.T_start,$PRE.sawTooth1.count,sawTooth1.count,$PRE.signalExtrema3.y_min,signalExtrema3.y_min,$PRE.signalExtrema3.y_max,signalExtrema3.y_max) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 3 * 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.804e-05/0.5306, allocations: 137.8 kB / 482.2 MB, free: 7.211 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.825e-05/0.5306, allocations: 23.72 kB / 482.2 MB, free: 7.188 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.047e-05/0.5307, allocations: 37.91 kB / 482.2 MB, free: 7.164 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.5307, allocations: 7.984 kB / 482.2 MB, free: 7.156 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.5307, allocations: 0 / 482.2 MB, free: 7.156 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.728e-06/0.5307, allocations: 0 / 482.2 MB, free: 7.156 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002102/0.5309, allocations: 306.9 kB / 482.5 MB, free: 6.863 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.5309, allocations: 0 / 482.5 MB, free: 6.863 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000264/0.5312, allocations: 47.95 kB / 482.6 MB, free: 6.816 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.5312, allocations: 7.938 kB / 482.6 MB, free: 6.809 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.271e-05/0.5313, allocations: 11.36 kB / 482.6 MB, free: 6.801 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.466e-06/0.5313, allocations: 7.984 kB / 482.6 MB, free: 6.793 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.5313, allocations: 3.953 kB / 482.6 MB, free: 6.789 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007113/0.532, allocations: 0.6166 MB / 483.2 MB, free: 6.336 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.207e-05/0.532, allocations: 105.6 kB / 483.3 MB, free: 6.215 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.366e-05/0.5321, allocations: 11.44 kB / 483.3 MB, free: 6.207 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003504/0.5325, allocations: 74.72 kB / 483.4 MB, free: 6.137 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001051/0.5326, allocations: 58.48 kB / 483.5 MB, free: 6.09 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.754e-05/0.5326, allocations: 23.3 kB / 483.5 MB, free: 6.07 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.547e-05/0.5327, allocations: 121.9 kB / 483.6 MB, free: 5.965 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5327, allocations: 0 / 483.6 MB, free: 5.965 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002924/0.533, allocations: 79.23 kB / 483.7 MB, free: 5.891 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (signalExtrema3.x,signalExtrema1.x,signalExtrema2.x) * Number of discrete variables: 28 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,pulse.T_start,pulse.count,sawTooth1.T_start,sawTooth1.count,signalExtrema3.y_min,signalExtrema3.y_max,signalExtrema3.t_min,signalExtrema3.t_max,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,sawTooth.T_start,sawTooth.count,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: 18 (sawTooth.count,signalExtrema1.y_max,signalExtrema1.t_max,signalExtrema1.y_min,signalExtrema1.t_min,signalExtrema1.u,signalExtrema2.y_max,signalExtrema2.t_max,signalExtrema2.y_min,signalExtrema2.t_min,signalExtrema2.u,pulse.count,sawTooth1.count,signalExtrema3.y_max,signalExtrema3.t_max,signalExtrema3.y_min,signalExtrema3.t_min,signalExtrema3.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 18 * 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.000141/0.5331, allocations: 128.9 kB / 483.8 MB, free: 5.766 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004508/0.5336, allocations: 481.2 kB / 484.3 MB, free: 5.355 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.5336, allocations: 0 / 484.3 MB, free: 5.355 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002283/0.5338, allocations: 190.5 kB / 484.5 MB, free: 5.238 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002362/0.5341, allocations: 30.08 kB / 484.5 MB, free: 5.215 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006372/0.5347, allocations: 382 kB / 484.9 MB, free: 4.879 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000142/0.5349, allocations: 0.7569 MB / 485.6 MB, free: 4.094 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000132/0.535, allocations: 34.14 kB / 485.7 MB, free: 4.059 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.568e-05/0.5351, allocations: 27.42 kB / 485.7 MB, free: 4.031 MB / 346.7 MB Notification: Performance of SimCode: time 2.41e-07/0.5351, allocations: 0 / 485.7 MB, free: 4.031 MB / 346.7 MB Notification: Performance of Templates: time 0.005266/0.5404, allocations: 3.336 MB / 489 MB, free: 0.7734 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.sim & ./Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe 2>&1)