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.001132/0.001133, allocations: 192.6 kB / 17.38 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.343/1.343, allocations: 226.5 MB / 244.7 MB, free: 8.211 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000784/0.0007838, allocations: 103.4 kB / 296.8 MB, free: 6.906 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002599/0.0002599, allocations: 4 kB / 356.7 MB, free: 10.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2723/0.2726, allocations: 51.3 MB / 408 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.001537/0.2742, allocations: 1.399 MB / 409.4 MB, free: 26.3 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007762/0.275, allocations: 0.5795 MB / 410 MB, free: 25.72 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.288e-05/0.2751, allocations: 4 kB / 410 MB, free: 25.72 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001194/0.2752, allocations: 16.48 kB / 410 MB, free: 25.7 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 3.722e-05/0.2752, allocations: 13.95 kB / 410.1 MB, free: 25.69 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002224/0.2755, allocations: 47.94 kB / 410.1 MB, free: 25.64 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001461/0.2756, allocations: 139.6 kB / 410.2 MB, free: 25.51 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001121/0.2757, allocations: 30.86 kB / 410.3 MB, free: 25.48 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001219/0.2759, allocations: 55.77 kB / 410.3 MB, free: 25.43 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.876e-05/0.2759, allocations: 53.12 kB / 410.4 MB, free: 25.38 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.025e-05/0.276, allocations: 8 kB / 410.4 MB, free: 25.37 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.223e-05/0.276, allocations: 20 kB / 410.4 MB, free: 25.35 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.573e-05/0.2761, allocations: 28.42 kB / 410.4 MB, free: 25.32 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.04e-05/0.2761, allocations: 89.39 kB / 410.5 MB, free: 25.23 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001229/0.2763, allocations: 89.34 kB / 410.6 MB, free: 25.14 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.2763, allocations: 4.594 kB / 410.6 MB, free: 25.14 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.2763, allocations: 0 / 410.6 MB, free: 25.14 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.989e-06/0.2763, allocations: 3.812 kB / 410.6 MB, free: 25.14 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.0005524/0.2769, allocations: 458.5 kB / 411.1 MB, free: 24.63 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.2769, allocations: 8.031 kB / 411.1 MB, free: 24.62 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002145/0.2771, allocations: 40.72 kB / 411.1 MB, free: 24.58 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001646/0.2773, allocations: 208 kB / 411.3 MB, free: 24.34 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.894e-05/0.2773, allocations: 12.31 kB / 411.3 MB, free: 24.33 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.447e-05/0.2774, allocations: 8.375 kB / 411.3 MB, free: 24.32 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004037/0.2778, allocations: 193.8 kB / 411.5 MB, free: 24.13 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.2778, allocations: 4 kB / 411.5 MB, free: 24.12 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.005e-05/0.2778, allocations: 0 / 411.5 MB, free: 24.12 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.66e-06/0.2778, allocations: 4 kB / 411.5 MB, free: 24.12 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000321/0.2782, allocations: 123.9 kB / 411.6 MB, free: 24 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005883/0.2788, allocations: 432.4 kB / 412.1 MB, free: 23.53 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005311/0.2793, allocations: 230.4 kB / 412.3 MB, free: 23.29 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002548/0.2796, allocations: 112.8 kB / 412.4 MB, free: 23.18 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.007e-05/0.2796, allocations: 0 / 412.4 MB, free: 23.18 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004043/0.28, allocations: 193.2 kB / 412.6 MB, free: 22.98 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 2.004e-06/0.28, allocations: 0 / 412.6 MB, free: 22.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0008637/0.2809, allocations: 405.4 kB / 413 MB, free: 22.58 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.048e-05/0.281, allocations: 63.39 kB / 413.1 MB, free: 22.5 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.47e-05/0.281, allocations: 138.2 kB / 413.2 MB, free: 22.36 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.802e-05/0.2811, allocations: 29.7 kB / 413.2 MB, free: 22.32 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.359e-05/0.2811, allocations: 108.5 kB / 413.3 MB, free: 22.21 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.28e-05/0.2812, allocations: 31.55 kB / 413.4 MB, free: 22.18 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.448e-06/0.2812, allocations: 4 kB / 413.4 MB, free: 22.18 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.835e-05/0.2812, allocations: 330.8 kB / 413.7 MB, free: 21.84 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001001/0.2813, allocations: 47.97 kB / 413.7 MB, free: 21.8 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001257/0.2815, allocations: 128.4 kB / 413.9 MB, free: 21.64 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002293/0.2817, allocations: 184.4 kB / 414 MB, free: 21.43 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.2817, allocations: 0 / 414 MB, free: 21.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002966/0.282, allocations: 212.3 kB / 414.2 MB, free: 21.22 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.2821, allocations: 6.812 kB / 414.2 MB, free: 21.21 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.2821, allocations: 4 kB / 414.3 MB, free: 21.21 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.386e-05/0.2821, allocations: 4 kB / 414.3 MB, free: 21.21 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001497/0.2822, allocations: 43.91 kB / 414.3 MB, free: 21.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.827e-06/0.2823, allocations: 7.938 kB / 414.3 MB, free: 21.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.986e-05/0.2823, allocations: 19.84 kB / 414.3 MB, free: 21.14 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.47e-05/0.2824, allocations: 19.94 kB / 414.3 MB, free: 21.12 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 8.355e-05/0.2825, allocations: 135.5 kB / 414.5 MB, free: 20.97 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.034e-05/0.2825, allocations: 19.75 kB / 414.5 MB, free: 20.95 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006217/0.2831, allocations: 315.3 kB / 414.8 MB, free: 20.64 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.2831, allocations: 4 kB / 414.8 MB, free: 20.63 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.2831, allocations: 0 / 414.8 MB, free: 20.63 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.2831, allocations: 0 / 414.8 MB, free: 20.63 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007704/0.2839, allocations: 0.6161 MB / 415.4 MB, free: 19.96 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.2839, allocations: 4 kB / 415.4 MB, free: 19.96 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.175e-05/0.284, allocations: 19.98 kB / 415.4 MB, free: 19.94 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.284, allocations: 0 / 415.4 MB, free: 19.94 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.978e-05/0.2841, allocations: 8 kB / 415.5 MB, free: 19.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.2841, allocations: 3.938 kB / 415.5 MB, free: 19.93 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.2841, allocations: 0 / 415.5 MB, free: 19.93 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008683/0.2849, allocations: 0.5252 MB / 416 MB, free: 19.39 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.352e-05/0.285, allocations: 88.98 kB / 416.1 MB, free: 19.28 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.471e-05/0.285, allocations: 8 kB / 416.1 MB, free: 19.27 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001738/0.2852, allocations: 47.95 kB / 416.1 MB, free: 19.23 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.691e-05/0.2853, allocations: 7.984 kB / 416.1 MB, free: 19.22 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.403e-05/0.2853, allocations: 8 kB / 416.1 MB, free: 19.21 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.3e-05/0.2853, allocations: 110.3 kB / 416.2 MB, free: 19.11 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2853, allocations: 0 / 416.2 MB, free: 19.11 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000246/0.2856, allocations: 28 kB / 416.3 MB, free: 19.08 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 0.0001137/0.2857, allocations: 106.8 kB / 416.4 MB, free: 18.97 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003947/0.2861, allocations: 187.7 kB / 416.6 MB, free: 18.79 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.2861, allocations: 0 / 416.6 MB, free: 18.79 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002286/0.2863, allocations: 120.4 kB / 416.7 MB, free: 18.67 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002313/0.2866, allocations: 8 kB / 416.7 MB, free: 18.66 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007408/0.2873, allocations: 419.5 kB / 417.1 MB, free: 18.21 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001318/0.2875, allocations: 0.7043 MB / 417.8 MB, free: 17.48 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.31e-05/0.2875, allocations: 19.44 kB / 417.8 MB, free: 17.46 MB / 298.7 MB Notification: Performance of SimCode: time 9.21e-07/0.2875, allocations: 0 / 417.8 MB, free: 17.46 MB / 298.7 MB Notification: Performance of Templates: time 0.002609/0.2902, allocations: 1.567 MB / 419.4 MB, free: 15.9 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)