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.00161/0.00161, allocations: 113.7 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002265/0.002264, allocations: 212.9 kB / 19.4 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.324/2.324, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002423/0.002423, allocations: 63.89 kB / 359.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4579/0.4603, allocations: 50.54 MB / 409.9 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.005621/0.466, allocations: 1.719 MB / 411.6 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002236/0.4683, allocations: 0.67 MB / 412.3 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001764/0.4685, allocations: 0 / 412.3 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001955/0.4688, allocations: 11.81 kB / 412.3 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001386/0.469, allocations: 27.72 kB / 412.4 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006461/0.4697, allocations: 91.77 kB / 412.4 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004176/0.4701, allocations: 147.6 kB / 412.6 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002342/0.4704, allocations: 29.42 kB / 412.6 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003041/0.4707, allocations: 63.78 kB / 412.7 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003319/0.471, allocations: 67.67 kB / 412.7 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.778e-05/0.4711, allocations: 20 kB / 412.8 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001276/0.4713, allocations: 23.98 kB / 412.8 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.804e-05/0.4714, allocations: 27.91 kB / 412.8 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001509/0.4715, allocations: 71.7 kB / 412.9 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004087/0.472, allocations: 139.2 kB / 413 MB, free: 14.46 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.324e-06/0.472, allocations: 0 / 413 MB, free: 14.46 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.472, allocations: 0 / 413 MB, free: 14.46 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.096e-05/0.472, allocations: 0 / 413 MB, free: 14.46 MB / 334.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.001239/0.4733, allocations: 491.8 kB / 413.5 MB, free: 13.92 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.799e-05/0.4734, allocations: 16.03 kB / 413.5 MB, free: 13.9 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000424/0.4738, allocations: 28.73 kB / 413.5 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005163/0.4743, allocations: 216.7 kB / 413.8 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.103e-05/0.4744, allocations: 4.375 kB / 413.8 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.75e-05/0.4745, allocations: 16.12 kB / 413.8 MB, free: 13.61 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008722/0.4754, allocations: 169.4 kB / 413.9 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.859e-05/0.4754, allocations: 0 / 413.9 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.411e-05/0.4755, allocations: 7.922 kB / 413.9 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.387e-05/0.4755, allocations: 4 kB / 414 MB, free: 13.42 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007329/0.4762, allocations: 95.91 kB / 414 MB, free: 13.33 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001331/0.4776, allocations: 424.5 kB / 414.5 MB, free: 12.86 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001054/0.4787, allocations: 194.4 kB / 414.6 MB, free: 12.66 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005392/0.4792, allocations: 92.72 kB / 414.7 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.51e-05/0.4793, allocations: 4 kB / 414.7 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007981/0.4801, allocations: 167.3 kB / 414.9 MB, free: 12.39 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 3.827e-06/0.4801, allocations: 0 / 414.9 MB, free: 12.39 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.002018/0.4821, allocations: 349.3 kB / 415.2 MB, free: 12.04 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.564e-05/0.4823, allocations: 59.41 kB / 415.3 MB, free: 11.97 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002406/0.4825, allocations: 153.3 kB / 415.5 MB, free: 11.82 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.759e-05/0.4826, allocations: 33.7 kB / 415.5 MB, free: 11.78 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001255/0.4828, allocations: 108.5 kB / 415.6 MB, free: 11.67 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.403e-05/0.4829, allocations: 47.38 kB / 415.6 MB, free: 11.62 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001336/0.483, allocations: 41.7 kB / 415.7 MB, free: 11.57 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000198/0.4832, allocations: 326.8 kB / 416 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002267/0.4835, allocations: 47.97 kB / 416 MB, free: 11.2 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003039/0.4838, allocations: 120.4 kB / 416.2 MB, free: 11.05 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005734/0.4844, allocations: 172.4 kB / 416.3 MB, free: 10.85 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.532e-06/0.4844, allocations: 0 / 416.3 MB, free: 10.85 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0008116/0.4853, allocations: 213.2 kB / 416.5 MB, free: 10.64 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.246e-05/0.4853, allocations: 8 kB / 416.5 MB, free: 10.63 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/0.4853, allocations: 0 / 416.5 MB, free: 10.63 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.668e-05/0.4854, allocations: 7.938 kB / 416.6 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003504/0.4857, allocations: 39.91 kB / 416.6 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.764e-05/0.4858, allocations: 4 kB / 416.6 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002012/0.486, allocations: 16.19 kB / 416.6 MB, free: 10.56 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.791e-05/0.486, allocations: 8 kB / 416.6 MB, free: 10.55 MB / 334.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 (signalExtrema2.t_max,$PRE.signalExtrema2.t_max,signalExtrema2.t_min,$PRE.signalExtrema2.t_min,signalExtrema1.t_max,$PRE.signalExtrema1.t_max,signalExtrema1.t_min,$PRE.signalExtrema1.t_min,$whenCondition2,$whenCondition1,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) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002492/0.4863, allocations: 147.4 kB / 416.8 MB, free: 10.4 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.723e-05/0.4864, allocations: 11.81 kB / 416.8 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00147/0.4879, allocations: 281.7 kB / 417.1 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.007e-05/0.4879, allocations: 3.938 kB / 417.1 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.4879, allocations: 0 / 417.1 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.008e-05/0.4879, allocations: 3.984 kB / 417.1 MB, free: 10.1 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001895/0.4898, allocations: 0.5724 MB / 417.6 MB, free: 9.473 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.865e-06/0.4899, allocations: 3.938 kB / 417.6 MB, free: 9.469 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002209/0.4901, allocations: 19.92 kB / 417.7 MB, free: 9.449 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.855e-06/0.4901, allocations: 0 / 417.7 MB, free: 9.449 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.619e-05/0.4902, allocations: 4 kB / 417.7 MB, free: 9.445 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-06/0.4902, allocations: 0 / 417.7 MB, free: 9.445 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.4902, allocations: 0 / 417.7 MB, free: 9.445 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002137/0.4924, allocations: 475.2 kB / 418.1 MB, free: 8.965 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001032/0.4925, allocations: 88.86 kB / 418.2 MB, free: 8.859 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.307e-05/0.4926, allocations: 12 kB / 418.2 MB, free: 8.848 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003701/0.493, allocations: 31.95 kB / 418.3 MB, free: 8.816 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.157e-05/0.4931, allocations: 7.984 kB / 418.3 MB, free: 8.809 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.138e-05/0.4931, allocations: 4 kB / 418.3 MB, free: 8.805 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000145/0.4933, allocations: 107.2 kB / 418.4 MB, free: 8.699 MB / 334.1 MB Notification: Performance of sort global known variables: time 6.01e-07/0.4933, allocations: 64 / 418.4 MB, free: 8.699 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005825/0.4939, allocations: 36 kB / 418.4 MB, free: 8.664 MB / 334.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 (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.000228/0.4941, allocations: 118.5 kB / 418.5 MB, free: 8.543 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008114/0.495, allocations: 160.2 kB / 418.7 MB, free: 8.387 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.943e-06/0.495, allocations: 4.125 kB / 418.7 MB, free: 8.383 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004884/0.4955, allocations: 99.09 kB / 418.8 MB, free: 8.289 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004446/0.496, allocations: 11.94 kB / 418.8 MB, free: 8.277 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001486/0.4975, allocations: 370.6 kB / 419.2 MB, free: 7.883 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006031/0.4981, allocations: 0.7084 MB / 419.9 MB, free: 7.148 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.809e-05/0.4982, allocations: 15.44 kB / 419.9 MB, free: 7.133 MB / 334.1 MB Notification: Performance of SimCode: time 6.92e-07/0.4982, allocations: 4 kB / 419.9 MB, free: 7.129 MB / 334.1 MB Notification: Performance of Templates: time 0.006641/0.5049, allocations: 1.66 MB / 421.5 MB, free: 5.469 MB / 334.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)