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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001228/0.001228, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001487/0.001487, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.427/1.427, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 59.53 kB / 306.9 MB, free: 0.6016 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1611/0.1624, allocations: 50.53 MB / 357.5 MB, free: 14.08 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema): time 0.004838/0.1673, allocations: 2.024 MB / 359.5 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00176/0.169, allocations: 0.7557 MB / 360.2 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001435/0.1692, allocations: 3.938 kB / 360.2 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 8.488e-05/0.1693, allocations: 27.66 kB / 360.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002183/0.1696, allocations: 43.53 kB / 360.3 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005833/0.1701, allocations: 151.7 kB / 360.5 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005247/0.1707, allocations: 347.2 kB / 360.8 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002102/0.1709, allocations: 60.77 kB / 360.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003455/0.1713, allocations: 155.5 kB / 361 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002575/0.1715, allocations: 155.4 kB / 361.2 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.872e-05/0.1716, allocations: 32 kB / 361.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001155/0.1718, allocations: 39.98 kB / 361.2 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.893e-05/0.1719, allocations: 79.67 kB / 361.3 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001906/0.1721, allocations: 135.3 kB / 361.4 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004324/0.1725, allocations: 295.3 kB / 361.7 MB, free: 9.781 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.1725, allocations: 0 / 361.7 MB, free: 9.781 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.033e-06/0.1725, allocations: 0 / 361.7 MB, free: 9.781 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.725e-06/0.1726, allocations: 0 / 361.7 MB, free: 9.781 MB / 302.1 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.002062/0.1746, allocations: 0.7351 MB / 362.5 MB, free: 8.98 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.893e-05/0.1747, allocations: 8.031 kB / 362.5 MB, free: 8.973 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005041/0.1752, allocations: 60.61 kB / 362.5 MB, free: 8.914 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005404/0.1758, allocations: 264.7 kB / 362.8 MB, free: 8.617 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.633e-05/0.1758, allocations: 24.36 kB / 362.8 MB, free: 8.594 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.192e-05/0.1759, allocations: 36.28 kB / 362.8 MB, free: 8.559 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001112/0.1771, allocations: 351.1 kB / 363.2 MB, free: 8.203 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.67e-05/0.1771, allocations: 3.984 kB / 363.2 MB, free: 8.199 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.775e-05/0.1771, allocations: 7.984 kB / 363.2 MB, free: 8.191 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.444e-05/0.1772, allocations: 8 kB / 363.2 MB, free: 8.184 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001053/0.1782, allocations: 251.7 kB / 363.5 MB, free: 7.938 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001531/0.1798, allocations: 0.7187 MB / 364.2 MB, free: 7.164 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00123/0.181, allocations: 364.9 kB / 364.5 MB, free: 6.789 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007625/0.1818, allocations: 197.9 kB / 364.7 MB, free: 6.59 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.134e-05/0.1818, allocations: 4 kB / 364.7 MB, free: 6.586 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001386/0.1832, allocations: 398.5 kB / 365.1 MB, free: 6.184 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 2.475e-06/0.1833, allocations: 0 / 365.1 MB, free: 6.184 MB / 302.1 MB Notification: Performance of matching and sorting (n=41): time 0.002903/0.1862, allocations: 0.7502 MB / 365.9 MB, free: 5.426 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.894e-05/0.1863, allocations: 71.38 kB / 365.9 MB, free: 5.344 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000258/0.1865, allocations: 203.7 kB / 366.1 MB, free: 5.137 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.554e-05/0.1866, allocations: 41.69 kB / 366.2 MB, free: 5.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001407/0.1868, allocations: 136.8 kB / 366.3 MB, free: 4.949 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001338/0.1869, allocations: 110.6 kB / 366.4 MB, free: 4.84 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002108/0.1871, allocations: 94.23 kB / 366.5 MB, free: 4.742 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001718/0.1873, allocations: 338.8 kB / 366.8 MB, free: 4.402 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006309/0.188, allocations: 157 kB / 367 MB, free: 4.246 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006825/0.1887, allocations: 237.2 kB / 367.2 MB, free: 3.988 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001258/0.1899, allocations: 441.5 kB / 367.7 MB, free: 3.516 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.1899, allocations: 0 / 367.7 MB, free: 3.516 MB / 302.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001194/0.1912, allocations: 0.5723 MB / 368.2 MB, free: 2.918 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.24e-05/0.1912, allocations: 89.09 kB / 368.3 MB, free: 2.812 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.1913, allocations: 0 / 368.3 MB, free: 2.812 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.958e-05/0.1913, allocations: 4 kB / 368.3 MB, free: 2.809 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003508/0.1916, allocations: 83.81 kB / 368.4 MB, free: 2.727 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.095e-05/0.1917, allocations: 4 kB / 368.4 MB, free: 2.723 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003313/0.192, allocations: 67.77 kB / 368.5 MB, free: 2.656 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.387e-05/0.192, allocations: 16 kB / 368.5 MB, free: 2.641 MB / 302.1 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 (signalExtrema3.t_min,$PRE.signalExtrema3.t_min,signalExtrema3.t_max,$PRE.signalExtrema3.t_max,signalExtrema2.t_min,$PRE.signalExtrema2.t_min,signalExtrema2.t_max,$PRE.signalExtrema2.t_max,signalExtrema1.t_min,$PRE.signalExtrema1.t_min,signalExtrema1.t_max,$PRE.signalExtrema1.t_max,$whenCondition5,signalExtrema2.y_max,$PRE.signalExtrema2.y_max,signalExtrema2.y_min,$PRE.signalExtrema2.y_min,signalExtrema1.y_max,$PRE.signalExtrema1.y_max,signalExtrema1.y_min,$PRE.signalExtrema1.y_min,sawTooth.count,$PRE.sawTooth.count,sawTooth.T_start,$PRE.sawTooth.T_start,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,signalExtrema3.y_max,$PRE.signalExtrema3.y_max,signalExtrema3.y_min,$PRE.signalExtrema3.y_min,sawTooth1.count,$PRE.sawTooth1.count,sawTooth1.T_start,$PRE.sawTooth1.T_start,pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001932/0.1922, allocations: 177.6 kB / 368.7 MB, free: 2.457 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.339e-05/0.1923, allocations: 27.62 kB / 368.7 MB, free: 2.43 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.529e-05/0.1924, allocations: 38.98 kB / 368.7 MB, free: 2.395 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.1924, allocations: 4 kB / 368.7 MB, free: 2.391 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.838e-06/0.1924, allocations: 4 kB / 368.7 MB, free: 2.387 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.1924, allocations: 3.984 kB / 368.7 MB, free: 2.383 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003602/0.1928, allocations: 345.2 kB / 369.1 MB, free: 1.996 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.1928, allocations: 0 / 369.1 MB, free: 1.996 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002706/0.1931, allocations: 51.89 kB / 369.1 MB, free: 1.945 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.427e-06/0.1931, allocations: 0 / 369.1 MB, free: 1.945 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.469e-05/0.1931, allocations: 11.98 kB / 369.1 MB, free: 1.934 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.02e-06/0.1932, allocations: 8 kB / 369.1 MB, free: 1.926 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.1932, allocations: 0 / 369.1 MB, free: 1.926 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001893/0.1951, allocations: 0.8486 MB / 370 MB, free: 1.059 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.367e-05/0.1951, allocations: 108.7 kB / 370.1 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.669e-05/0.1952, allocations: 16 kB / 370.1 MB, free: 0.918 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003429/0.1956, allocations: 59.92 kB / 370.2 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000127/0.1957, allocations: 51.94 kB / 370.2 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.491e-05/0.1957, allocations: 31.91 kB / 370.3 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.606e-05/0.1958, allocations: 132.2 kB / 370.4 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1958, allocations: 0 / 370.4 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000323/0.1962, allocations: 80 kB / 370.5 MB, free: 0.5703 MB / 302.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001604/0.1963, allocations: 131.8 kB / 370.6 MB, free: 444 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.1794/0.3758, allocations: 0.6212 MB / 371.2 MB, free: 20.57 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/0.3758, allocations: 7.375 kB / 371.2 MB, free: 20.57 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007844/0.3766, allocations: 263.5 kB / 371.5 MB, free: 20.57 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000398/0.377, allocations: 38.98 kB / 371.5 MB, free: 20.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001318/0.3784, allocations: 0.5527 MB / 372.1 MB, free: 20.34 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002413/0.3786, allocations: 0.758 MB / 372.8 MB, free: 19.64 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001523/0.3788, allocations: 35.75 kB / 372.9 MB, free: 19.63 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001018/0.3789, allocations: 32.95 kB / 372.9 MB, free: 19.62 MB / 302.1 MB Notification: Performance of SimCode: time 1.002e-06/0.3789, allocations: 0 / 372.9 MB, free: 19.62 MB / 302.1 MB Notification: Performance of Templates: time 0.01021/0.3891, allocations: 4.243 MB / 377.1 MB, free: 19.44 MB / 302.1 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)