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/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.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/ModelicaServices trunk/package.mo): time 0.00123/0.00123, allocations: 96.23 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001536/0.001536, allocations: 205.4 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.593/1.593, allocations: 227.2 MB / 245.9 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003207/0.0003208, allocations: 7.984 kB / 306.6 MB, free: 1.43 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1763/0.1766, allocations: 51.49 MB / 358.1 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.002784/0.1795, allocations: 1.388 MB / 359.4 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001529/0.1811, allocations: 0.6004 MB / 360 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.26e-05/0.1812, allocations: 0 / 360 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.841e-05/0.1812, allocations: 7.922 kB / 360 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001424/0.1814, allocations: 27.89 kB / 360.1 MB, free: 11.9 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003519/0.1817, allocations: 51.88 kB / 360.1 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000232/0.182, allocations: 91.81 kB / 360.2 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001601/0.1822, allocations: 36.83 kB / 360.3 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001945/0.1824, allocations: 55.83 kB / 360.3 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001356/0.1825, allocations: 59.75 kB / 360.4 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.827e-05/0.1826, allocations: 4 kB / 360.4 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.97e-05/0.1827, allocations: 15.94 kB / 360.4 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.477e-05/0.1827, allocations: 27.89 kB / 360.4 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.435e-05/0.1828, allocations: 49.64 kB / 360.5 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002086/0.183, allocations: 88.05 kB / 360.5 MB, free: 11.42 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1831, allocations: 0 / 360.5 MB, free: 11.42 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.285e-06/0.1831, allocations: 0 / 360.5 MB, free: 11.42 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.681e-06/0.1831, allocations: 4 kB / 360.5 MB, free: 11.42 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0009296/0.184, allocations: 460.9 kB / 361 MB, free: 10.91 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.032e-05/0.1841, allocations: 8.031 kB / 361 MB, free: 10.9 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004016/0.1845, allocations: 35.88 kB / 361 MB, free: 10.87 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003466/0.1849, allocations: 210.8 kB / 361.2 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.905e-05/0.1849, allocations: 15.89 kB / 361.3 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.626e-05/0.185, allocations: 12 kB / 361.3 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008119/0.1858, allocations: 181.5 kB / 361.5 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.1859, allocations: 0 / 361.5 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.131e-05/0.1859, allocations: 8 kB / 361.5 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.155e-06/0.1859, allocations: 0 / 361.5 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006002/0.1865, allocations: 123.9 kB / 361.6 MB, free: 10.28 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009872/0.1875, allocations: 428.3 kB / 362 MB, free: 9.812 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009619/0.1885, allocations: 234.4 kB / 362.2 MB, free: 9.574 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.438e-05/0.1886, allocations: 3.984 kB / 362.2 MB, free: 9.57 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007086/0.1893, allocations: 197.6 kB / 362.4 MB, free: 9.367 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 2.565e-06/0.1893, allocations: 0 / 362.4 MB, free: 9.367 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.001868/0.1912, allocations: 405.4 kB / 362.8 MB, free: 8.965 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.016e-05/0.1913, allocations: 55.41 kB / 362.9 MB, free: 8.898 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001783/0.1915, allocations: 146.1 kB / 363 MB, free: 8.742 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.66e-05/0.1915, allocations: 33.7 kB / 363.1 MB, free: 8.703 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001001/0.1916, allocations: 100.4 kB / 363.1 MB, free: 8.602 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.115e-05/0.1917, allocations: 39.45 kB / 363.2 MB, free: 8.562 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.785e-05/0.1917, allocations: 11.94 kB / 363.2 MB, free: 8.551 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.1919, allocations: 322.8 kB / 363.5 MB, free: 8.227 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002073/0.1921, allocations: 51.98 kB / 363.6 MB, free: 8.176 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002721/0.1924, allocations: 117.6 kB / 363.7 MB, free: 8.031 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002441/0.1927, allocations: 63.98 kB / 363.7 MB, free: 7.969 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/0.1927, allocations: 0 / 363.7 MB, free: 7.969 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000687/0.1934, allocations: 213.2 kB / 364 MB, free: 7.754 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.786e-05/0.1935, allocations: 4 kB / 364 MB, free: 7.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.292e-05/0.1935, allocations: 4.281 kB / 364 MB, free: 7.746 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.369e-05/0.1935, allocations: 8 kB / 364 MB, free: 7.738 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003139/0.1939, allocations: 43.91 kB / 364 MB, free: 7.695 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.687e-05/0.1939, allocations: 4 kB / 364 MB, free: 7.691 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001804/0.1941, allocations: 27.73 kB / 364 MB, free: 7.664 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.944e-05/0.1941, allocations: 11.98 kB / 364.1 MB, free: 7.652 MB / 302.1 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.0001549/0.1943, allocations: 138.1 kB / 364.2 MB, free: 7.508 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.174e-05/0.1943, allocations: 11.91 kB / 364.2 MB, free: 7.496 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001223/0.1956, allocations: 318.3 kB / 364.5 MB, free: 7.18 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.263e-06/0.1956, allocations: 4 kB / 364.5 MB, free: 7.176 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.1956, allocations: 0 / 364.5 MB, free: 7.176 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.561e-06/0.1956, allocations: 0 / 364.5 MB, free: 7.176 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001705/0.1973, allocations: 0.6176 MB / 365.1 MB, free: 6.504 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.1974, allocations: 3.938 kB / 365.1 MB, free: 6.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001548/0.1975, allocations: 15.98 kB / 365.2 MB, free: 6.484 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.1976, allocations: 0 / 365.2 MB, free: 6.484 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.128e-05/0.1976, allocations: 8 kB / 365.2 MB, free: 6.477 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.905e-06/0.1976, allocations: 0 / 365.2 MB, free: 6.477 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.1976, allocations: 7.953 kB / 365.2 MB, free: 6.469 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001826/0.1995, allocations: 0.5225 MB / 365.7 MB, free: 5.93 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.976e-05/0.1995, allocations: 88.95 kB / 365.8 MB, free: 5.824 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.227e-05/0.1996, allocations: 12 kB / 365.8 MB, free: 5.812 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003715/0.2, allocations: 44.02 kB / 365.8 MB, free: 5.77 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.024e-05/0.2001, allocations: 11.98 kB / 365.8 MB, free: 5.758 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.931e-05/0.2001, allocations: 7.953 kB / 365.8 MB, free: 5.75 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001104/0.2003, allocations: 107.2 kB / 366 MB, free: 5.645 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.2003, allocations: 0 / 366 MB, free: 5.645 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005122/0.2008, allocations: 28 kB / 366 MB, free: 5.617 MB / 302.1 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.0002035/0.201, allocations: 111.2 kB / 366.1 MB, free: 5.5 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008242/0.2019, allocations: 184.3 kB / 366.3 MB, free: 5.32 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.2019, allocations: 3.938 kB / 366.3 MB, free: 5.316 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005041/0.2024, allocations: 110.7 kB / 366.4 MB, free: 5.211 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002698/0.2027, allocations: 8 kB / 366.4 MB, free: 5.203 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001283/0.204, allocations: 385.8 kB / 366.8 MB, free: 4.801 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003743/0.2044, allocations: 0.7121 MB / 367.5 MB, free: 4.062 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.403e-05/0.2045, allocations: 12.64 kB / 367.5 MB, free: 4.047 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.393e-05/0.2045, allocations: 11.44 kB / 367.5 MB, free: 4.035 MB / 302.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2046, allocations: 4 kB / 367.5 MB, free: 4.031 MB / 302.1 MB Notification: Performance of Templates: time 0.00549/0.2101, allocations: 1.057 MB / 368.6 MB, free: 2.977 MB / 302.1 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)