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.001071/0.001071, allocations: 202.6 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.177/1.177, allocations: 227.2 MB / 245 MB, free: 7.652 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008902/0.0008901, allocations: 101.3 kB / 297.3 MB, free: 6.195 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000223/0.0002231, allocations: 4 kB / 357.9 MB, free: 9.562 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1905/0.1908, allocations: 51.48 MB / 409.4 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08216/0.273, allocations: 78.59 MB / 488 MB, free: 12.04 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001813/0.2732, allocations: 67.97 kB / 488.1 MB, free: 11.98 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01148/0.2847, allocations: 3.906 MB / 492 MB, free: 8.066 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.2847, allocations: 0 / 492 MB, free: 8.066 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.053e-05/0.2848, allocations: 4 kB / 492 MB, free: 8.062 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001292/0.2861, allocations: 0.7293 MB / 492.7 MB, free: 7.262 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.538e-05/0.2861, allocations: 8.031 kB / 492.7 MB, free: 7.254 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003156/0.2864, allocations: 63.67 kB / 492.8 MB, free: 7.191 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001368/0.2866, allocations: 194.6 kB / 493 MB, free: 6.961 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.25e-05/0.2866, allocations: 27.98 kB / 493 MB, free: 6.934 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.221e-05/0.2867, allocations: 31.91 kB / 493 MB, free: 6.902 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008426/0.2875, allocations: 390.8 kB / 493.4 MB, free: 6.508 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.839e-06/0.2876, allocations: 0 / 493.4 MB, free: 6.508 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.421e-05/0.2876, allocations: 4 kB / 493.4 MB, free: 6.504 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/0.2876, allocations: 4 kB / 493.4 MB, free: 6.5 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007862/0.2884, allocations: 295.8 kB / 493.7 MB, free: 6.211 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001336/0.2898, allocations: 0.7695 MB / 494.5 MB, free: 5.387 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008404/0.2906, allocations: 408.5 kB / 494.9 MB, free: 4.973 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.631e-05/0.2907, allocations: 7.984 kB / 494.9 MB, free: 4.965 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008469/0.2915, allocations: 423.3 kB / 495.3 MB, free: 4.535 MB / 362.7 MB Notification: Performance of pre-optimization done (n=41): time 2.124e-06/0.2915, allocations: 0 / 495.3 MB, free: 4.535 MB / 362.7 MB Notification: Performance of matching and sorting (n=41): time 0.001875/0.2934, allocations: 0.8362 MB / 496.1 MB, free: 3.691 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.898e-05/0.2935, allocations: 67.39 kB / 496.2 MB, free: 3.613 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001316/0.2936, allocations: 174.2 kB / 496.4 MB, free: 3.434 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.108e-05/0.2937, allocations: 45.7 kB / 496.4 MB, free: 3.383 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.619e-05/0.2937, allocations: 124.9 kB / 496.5 MB, free: 3.254 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.589e-05/0.2938, allocations: 110.6 kB / 496.6 MB, free: 3.145 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.238e-05/0.2939, allocations: 12 kB / 496.7 MB, free: 3.133 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001101/0.294, allocations: 338.8 kB / 497 MB, free: 2.793 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004266/0.2944, allocations: 173 kB / 497.2 MB, free: 2.625 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004775/0.2949, allocations: 253.4 kB / 497.4 MB, free: 2.352 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004729/0.2954, allocations: 258 kB / 497.6 MB, free: 2.082 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.352e-06/0.2954, allocations: 0 / 497.6 MB, free: 2.082 MB / 362.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001129/0.2965, allocations: 0.5948 MB / 498.2 MB, free: 1.465 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.469e-05/0.2966, allocations: 93.09 kB / 498.3 MB, free: 1.355 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.2966, allocations: 0 / 498.3 MB, free: 1.355 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.935e-05/0.2966, allocations: 8 kB / 498.3 MB, free: 1.348 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003466/0.297, allocations: 87.81 kB / 498.4 MB, free: 1.262 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.065e-05/0.297, allocations: 7.938 kB / 498.4 MB, free: 1.254 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003501/0.2974, allocations: 83.58 kB / 498.5 MB, free: 1.172 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.638e-05/0.2974, allocations: 16 kB / 498.5 MB, free: 1.156 MB / 362.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 () * Number of clocked 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 0.0001484/0.2976, allocations: 165.7 kB / 498.7 MB, free: 0.9844 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.006e-05/0.2976, allocations: 23.72 kB / 498.7 MB, free: 0.9609 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.862e-05/0.2977, allocations: 38.98 kB / 498.8 MB, free: 0.9258 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.2977, allocations: 4 kB / 498.8 MB, free: 0.9219 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.2977, allocations: 3.938 kB / 498.8 MB, free: 0.918 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.2977, allocations: 0 / 498.8 MB, free: 0.918 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002855/0.298, allocations: 349.2 kB / 499.1 MB, free: 0.5273 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.298, allocations: 4 kB / 499.1 MB, free: 0.5234 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002796/0.2983, allocations: 51.95 kB / 499.2 MB, free: 484 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.2983, allocations: 0 / 499.2 MB, free: 484 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.089e-05/0.2984, allocations: 19.97 kB / 499.2 MB, free: 464 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.2984, allocations: 0 / 499.2 MB, free: 464 kB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.2984, allocations: 0 / 499.2 MB, free: 464 kB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001852/0.3002, allocations: 0.9384 MB / 0.4884 GB, free: 15.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.542e-05/0.3003, allocations: 104.7 kB / 0.4885 GB, free: 15.38 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.644e-05/0.3004, allocations: 20.03 kB / 0.4885 GB, free: 15.36 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003701/0.3008, allocations: 75.92 kB / 0.4886 GB, free: 15.28 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001214/0.3009, allocations: 47.92 kB / 0.4886 GB, free: 15.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.788e-05/0.3009, allocations: 27.97 kB / 0.4887 GB, free: 15.21 MB / 378.7 MB Notification: Performance of sorting global known variables: time 8.525e-05/0.301, allocations: 131.2 kB / 0.4888 GB, free: 15.08 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.301, allocations: 3.938 kB / 0.4888 GB, free: 15.07 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003193/0.3014, allocations: 87.92 kB / 0.4889 GB, free: 14.99 MB / 378.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) * Number of clocked states: 0 () * 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.0001582/0.3015, allocations: 125.7 kB / 0.489 GB, free: 14.86 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00115/0.3027, allocations: 0.6456 MB / 0.4896 GB, free: 14.18 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.3027, allocations: 0 / 0.4896 GB, free: 14.18 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006096/0.3033, allocations: 296 kB / 0.4899 GB, free: 13.89 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002354/0.3036, allocations: 30.22 kB / 0.4899 GB, free: 13.86 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001088/0.3047, allocations: 0.6231 MB / 0.4905 GB, free: 13.21 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000271/0.3049, allocations: 0.7568 MB / 0.4913 GB, free: 12.42 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001529/0.3051, allocations: 34.28 kB / 0.4913 GB, free: 12.38 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.644e-05/0.3052, allocations: 27.42 kB / 0.4913 GB, free: 12.35 MB / 378.7 MB Notification: Performance of SimCode: time 2.51e-07/0.3052, allocations: 3.938 kB / 0.4913 GB, free: 12.35 MB / 378.7 MB Notification: Performance of Templates: time 0.006426/0.3116, allocations: 3.486 MB / 0.4947 GB, free: 8.875 MB / 378.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)