Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema") translateModel(Modelica.Blocks.Examples.DemonstrateSignalExtrema,tolerance=1e-06,outputFormat="empty",numberOfIntervals=300000,variableFilter="",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00152/0.00152, allocations: 114.2 kB / 18.45 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0016/0.0016, allocations: 208 kB / 19.41 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.405/1.405, allocations: 227.7 MB / 247.9 MB, free: 10.16 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001916/0.001916, allocations: 59.91 kB / 359.7 MB, free: 12.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2385/0.2404, allocations: 50.54 MB / 410.2 MB, free: 1.434 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.00302/0.2434, allocations: 1.729 MB / 411.9 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001163/0.2446, allocations: 0.6739 MB / 412.6 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.999e-05/0.2447, allocations: 4 kB / 412.6 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001084/0.2448, allocations: 11.81 kB / 412.6 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.262e-05/0.2448, allocations: 19.8 kB / 412.6 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002895/0.2451, allocations: 87.77 kB / 412.7 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002024/0.2453, allocations: 151.5 kB / 412.9 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001275/0.2454, allocations: 21.44 kB / 412.9 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001956/0.2456, allocations: 63.83 kB / 413 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001235/0.2457, allocations: 71.67 kB / 413 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.865e-05/0.2458, allocations: 12 kB / 413 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.318e-05/0.2458, allocations: 20 kB / 413.1 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.246e-05/0.2459, allocations: 43.89 kB / 413.1 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.236e-05/0.246, allocations: 55.72 kB / 413.2 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002154/0.2462, allocations: 139.4 kB / 413.3 MB, free: 14.33 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.2462, allocations: 0 / 413.3 MB, free: 14.33 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.2462, allocations: 0 / 413.3 MB, free: 14.33 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.2462, allocations: 4 kB / 413.3 MB, free: 14.33 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.0007598/0.2469, allocations: 494.3 kB / 413.8 MB, free: 13.79 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.727e-05/0.247, allocations: 11.97 kB / 413.8 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002589/0.2473, allocations: 36.83 kB / 413.8 MB, free: 13.74 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002756/0.2475, allocations: 209.9 kB / 414 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.729e-05/0.2476, allocations: 12.38 kB / 414 MB, free: 13.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.672e-05/0.2476, allocations: 16.12 kB / 414.1 MB, free: 13.47 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004452/0.248, allocations: 161.5 kB / 414.2 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.248, allocations: 7.984 kB / 414.2 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.211e-05/0.2481, allocations: 7.984 kB / 414.2 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.2481, allocations: 4 kB / 414.2 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003512/0.2484, allocations: 95.91 kB / 414.3 MB, free: 13.19 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006809/0.2491, allocations: 432.3 kB / 414.7 MB, free: 12.72 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005936/0.2497, allocations: 182.4 kB / 414.9 MB, free: 12.53 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002847/0.25, allocations: 88.78 kB / 415 MB, free: 12.44 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.248e-05/0.25, allocations: 0 / 415 MB, free: 12.44 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000416/0.2504, allocations: 179.2 kB / 415.2 MB, free: 12.25 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.433e-06/0.2504, allocations: 0 / 415.2 MB, free: 12.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.001027/0.2514, allocations: 349.2 kB / 415.5 MB, free: 11.91 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.186e-05/0.2515, allocations: 59.39 kB / 415.6 MB, free: 11.84 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001315/0.2516, allocations: 156.9 kB / 415.7 MB, free: 11.68 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.538e-05/0.2517, allocations: 29.7 kB / 415.8 MB, free: 11.64 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.081e-05/0.2517, allocations: 104.5 kB / 415.9 MB, free: 11.54 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.429e-05/0.2518, allocations: 43.69 kB / 415.9 MB, free: 11.49 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.595e-05/0.2518, allocations: 49.7 kB / 416 MB, free: 11.44 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.252, allocations: 322.8 kB / 416.3 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001204/0.2521, allocations: 43.97 kB / 416.3 MB, free: 11.07 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001704/0.2523, allocations: 120.5 kB / 416.4 MB, free: 10.92 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002894/0.2526, allocations: 168.4 kB / 416.6 MB, free: 10.73 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.2526, allocations: 0 / 416.6 MB, free: 10.73 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000377/0.2529, allocations: 209.4 kB / 416.8 MB, free: 10.52 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/0.253, allocations: 8 kB / 416.8 MB, free: 10.51 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.253, allocations: 0 / 416.8 MB, free: 10.51 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.253, allocations: 7.938 kB / 416.8 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001753/0.2532, allocations: 39.91 kB / 416.9 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.418e-06/0.2532, allocations: 4 kB / 416.9 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001106/0.2533, allocations: 15.89 kB / 416.9 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.98e-05/0.2533, allocations: 12 kB / 416.9 MB, free: 10.43 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.0001237/0.2534, allocations: 143.6 kB / 417 MB, free: 10.28 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.803e-05/0.2534, allocations: 11.91 kB / 417 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007352/0.2542, allocations: 278.2 kB / 417.3 MB, free: 9.988 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.2542, allocations: 11.88 kB / 417.3 MB, free: 9.977 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.2542, allocations: 0 / 417.3 MB, free: 9.977 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.2542, allocations: 4 kB / 417.3 MB, free: 9.973 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009933/0.2552, allocations: 0.5717 MB / 417.9 MB, free: 9.348 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.2552, allocations: 3.938 kB / 417.9 MB, free: 9.344 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001051/0.2553, allocations: 19.92 kB / 417.9 MB, free: 9.324 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.2553, allocations: 0 / 417.9 MB, free: 9.324 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.992e-05/0.2553, allocations: 8 kB / 417.9 MB, free: 9.316 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.407e-06/0.2553, allocations: 3.984 kB / 417.9 MB, free: 9.312 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.2553, allocations: 0 / 417.9 MB, free: 9.312 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00106/0.2564, allocations: 467.2 kB / 418.4 MB, free: 8.84 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.417e-05/0.2564, allocations: 97.05 kB / 418.5 MB, free: 8.727 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.85e-05/0.2565, allocations: 8 kB / 418.5 MB, free: 8.719 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000197/0.2567, allocations: 27.95 kB / 418.5 MB, free: 8.691 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.602e-05/0.2567, allocations: 11.98 kB / 418.5 MB, free: 8.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.518e-05/0.2567, allocations: 8 kB / 418.5 MB, free: 8.672 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.19e-05/0.2568, allocations: 107.2 kB / 418.6 MB, free: 8.566 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2568, allocations: 3.938 kB / 418.7 MB, free: 8.562 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002888/0.2571, allocations: 28 kB / 418.7 MB, free: 8.535 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.0001279/0.2572, allocations: 115.5 kB / 418.8 MB, free: 8.418 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004487/0.2577, allocations: 159.7 kB / 418.9 MB, free: 8.262 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.2577, allocations: 0.5625 kB / 418.9 MB, free: 8.262 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002617/0.2579, allocations: 91.86 kB / 419 MB, free: 8.172 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002362/0.2582, allocations: 11.94 kB / 419 MB, free: 8.16 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007506/0.2589, allocations: 332.4 kB / 419.4 MB, free: 7.809 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003251/0.2593, allocations: 0.7084 MB / 420.1 MB, free: 7.074 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.619e-05/0.2593, allocations: 9.094 kB / 420.1 MB, free: 7.066 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.959e-05/0.2593, allocations: 19.42 kB / 420.1 MB, free: 7.047 MB / 334.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2593, allocations: 4 kB / 420.1 MB, free: 7.043 MB / 334.1 MB Notification: Performance of Templates: time 0.004084/0.2634, allocations: 1.249 MB / 421.4 MB, free: 5.793 MB / 334.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema.sim & ./Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe 2>&1)