Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.DemonstrateSignalExtrema.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.DemonstrateSignalExtrema,tolerance=1e-06,outputFormat="empty",numberOfIntervals=300000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Blocks.Examples.DemonstrateSignalExtrema") translateModel(Modelica.Blocks.Examples.DemonstrateSignalExtrema,tolerance=1e-06,outputFormat="empty",numberOfIntervals=300000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Blocks.Examples.DemonstrateSignalExtrema") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001046/0.001046, allocations: 200.4 kB / 17.06 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.358/1.358, allocations: 226.6 MB / 244.3 MB, free: 6.57 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007328/0.0007331, allocations: 95.33 kB / 296.4 MB, free: 6.777 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002366/0.0002364, allocations: 4 kB / 356.2 MB, free: 10.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2542/0.2545, allocations: 51.3 MB / 407.5 MB, free: 27.77 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.001331/0.2559, allocations: 1.403 MB / 408.9 MB, free: 26.36 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006931/0.2566, allocations: 0.5844 MB / 409.5 MB, free: 25.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.686e-05/0.2566, allocations: 0 / 409.5 MB, free: 25.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.623e-05/0.2567, allocations: 11.86 kB / 409.5 MB, free: 25.76 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 3.17e-05/0.2568, allocations: 12.75 kB / 409.5 MB, free: 25.75 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002112/0.257, allocations: 60.64 kB / 409.6 MB, free: 25.69 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001142/0.2571, allocations: 127.7 kB / 409.7 MB, free: 25.57 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001047/0.2572, allocations: 30.47 kB / 409.7 MB, free: 25.54 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001281/0.2574, allocations: 55.77 kB / 409.8 MB, free: 25.48 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.74e-05/0.2575, allocations: 56.55 kB / 409.8 MB, free: 25.43 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.013e-05/0.2575, allocations: 10.22 kB / 409.8 MB, free: 25.42 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.213e-05/0.2575, allocations: 8 kB / 409.8 MB, free: 25.41 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.146e-05/0.2576, allocations: 27.91 kB / 409.9 MB, free: 25.39 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.014e-05/0.2576, allocations: 49.64 kB / 409.9 MB, free: 25.33 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000111/0.2577, allocations: 88.8 kB / 410 MB, free: 25.25 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.2577, allocations: 3.938 kB / 410 MB, free: 25.24 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.2578, allocations: 1.75 kB / 410 MB, free: 25.24 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.418e-06/0.2578, allocations: 0 / 410 MB, free: 25.24 MB / 298.7 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.0005403/0.2583, allocations: 463.1 kB / 410.5 MB, free: 24.73 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.732e-05/0.2584, allocations: 12.03 kB / 410.5 MB, free: 24.72 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002087/0.2586, allocations: 37.25 kB / 410.5 MB, free: 24.68 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001482/0.2587, allocations: 205.6 kB / 410.7 MB, free: 24.45 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.125e-05/0.2588, allocations: 19.02 kB / 410.7 MB, free: 24.43 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.305e-05/0.2588, allocations: 12 kB / 410.7 MB, free: 24.42 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004297/0.2592, allocations: 180.1 kB / 410.9 MB, free: 24.24 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.2593, allocations: 0 / 410.9 MB, free: 24.24 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.924e-05/0.2593, allocations: 15.92 kB / 410.9 MB, free: 24.22 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.591e-06/0.2593, allocations: 0 / 410.9 MB, free: 24.22 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003443/0.2597, allocations: 123.9 kB / 411.1 MB, free: 24.1 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00056/0.2602, allocations: 424.4 kB / 411.5 MB, free: 23.64 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00053/0.2608, allocations: 230.4 kB / 411.7 MB, free: 23.4 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002681/0.261, allocations: 112.8 kB / 411.8 MB, free: 23.29 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.567e-05/0.2611, allocations: 7.922 kB / 411.8 MB, free: 23.28 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003861/0.2615, allocations: 191.3 kB / 412 MB, free: 23.08 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.974e-06/0.2615, allocations: 0 / 412 MB, free: 23.08 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0009151/0.2624, allocations: 406.8 kB / 412.4 MB, free: 22.68 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.226e-05/0.2624, allocations: 59.41 kB / 412.5 MB, free: 22.61 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.228e-05/0.2625, allocations: 142 kB / 412.6 MB, free: 22.46 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.784e-05/0.2625, allocations: 41.69 kB / 412.6 MB, free: 22.41 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.656e-05/0.2626, allocations: 96.48 kB / 412.7 MB, free: 22.31 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.154e-05/0.2626, allocations: 39.45 kB / 412.8 MB, free: 22.27 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.067e-06/0.2626, allocations: 8 kB / 412.8 MB, free: 22.27 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.821e-05/0.2627, allocations: 318.8 kB / 413.1 MB, free: 21.95 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001046/0.2628, allocations: 51.97 kB / 413.1 MB, free: 21.89 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001203/0.2629, allocations: 120.5 kB / 413.3 MB, free: 21.75 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000121/0.2631, allocations: 71.86 kB / 413.3 MB, free: 21.68 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.185e-06/0.2631, allocations: 0 / 413.3 MB, free: 21.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000312/0.2634, allocations: 209.3 kB / 413.5 MB, free: 21.46 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.2634, allocations: 6.969 kB / 413.5 MB, free: 21.46 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.2634, allocations: 4 kB / 413.5 MB, free: 21.46 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.422e-05/0.2634, allocations: 4 kB / 413.5 MB, free: 21.45 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001556/0.2636, allocations: 35.92 kB / 413.6 MB, free: 21.42 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.478e-06/0.2636, allocations: 12.27 kB / 413.6 MB, free: 21.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.571e-05/0.2637, allocations: 31.7 kB / 413.6 MB, free: 21.38 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.333e-05/0.2637, allocations: 8 kB / 413.6 MB, free: 21.37 MB / 298.7 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 7.654e-05/0.2638, allocations: 147.4 kB / 413.8 MB, free: 21.21 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.884e-05/0.2638, allocations: 11.91 kB / 413.8 MB, free: 21.2 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006483/0.2645, allocations: 311.1 kB / 414.1 MB, free: 20.89 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.117e-06/0.2645, allocations: 4 kB / 414.1 MB, free: 20.89 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.2645, allocations: 3.938 kB / 414.1 MB, free: 20.88 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.2645, allocations: 0 / 414.1 MB, free: 20.88 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007981/0.2653, allocations: 0.6224 MB / 414.7 MB, free: 20.21 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.2653, allocations: 0 / 414.7 MB, free: 20.21 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.653e-05/0.2654, allocations: 19.92 kB / 414.7 MB, free: 20.19 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.2655, allocations: 0 / 414.7 MB, free: 20.19 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.673e-05/0.2655, allocations: 11.92 kB / 414.8 MB, free: 20.18 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.2655, allocations: 0 / 414.8 MB, free: 20.18 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.2655, allocations: 3.953 kB / 414.8 MB, free: 20.17 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009109/0.2664, allocations: 0.5109 MB / 415.3 MB, free: 19.64 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.399e-05/0.2664, allocations: 96.88 kB / 415.4 MB, free: 19.53 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.422e-05/0.2665, allocations: 8 kB / 415.4 MB, free: 19.52 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001895/0.2667, allocations: 44.03 kB / 415.4 MB, free: 19.48 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.121e-05/0.2667, allocations: 11.94 kB / 415.4 MB, free: 19.47 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.423e-05/0.2667, allocations: 11.98 kB / 415.4 MB, free: 19.46 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.854e-05/0.2668, allocations: 106.4 kB / 415.5 MB, free: 19.36 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2668, allocations: 0 / 415.5 MB, free: 19.36 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002349/0.267, allocations: 31.98 kB / 415.6 MB, free: 19.32 MB / 298.7 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 9.661e-05/0.2671, allocations: 110 kB / 415.7 MB, free: 19.21 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004157/0.2676, allocations: 187.7 kB / 415.9 MB, free: 19.03 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.2676, allocations: 0 / 415.9 MB, free: 19.03 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000244/0.2678, allocations: 112.4 kB / 416 MB, free: 18.92 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002223/0.268, allocations: 14.39 kB / 416 MB, free: 18.91 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006622/0.2687, allocations: 407.6 kB / 416.4 MB, free: 18.47 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001131/0.2688, allocations: 0.7121 MB / 417.1 MB, free: 17.73 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.94e-05/0.2689, allocations: 15.44 kB / 417.1 MB, free: 17.72 MB / 298.7 MB Notification: Performance of SimCode: time 3.31e-07/0.2689, allocations: 0 / 417.1 MB, free: 17.72 MB / 298.7 MB Notification: Performance of Templates: time 0.00231/0.2712, allocations: 1.575 MB / 418.7 MB, free: 16.14 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Blocks.Examples.DemonstrateSignalExtrema.makefile (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.DemonstrateSignalExtrema.sim & ./Modelica_trunk_cpp_Modelica.Blocks.Examples.DemonstrateSignalExtrema --alarm=480 > Modelica_trunk_cpp_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe 2>&1)