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.0009459/0.000946, allocations: 195.7 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.26/1.26, allocations: 226.5 MB / 245.4 MB, free: 8.227 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008157/0.0008157, allocations: 102.3 kB / 297.4 MB, free: 6.867 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002041/0.0002044, allocations: 8 kB / 357.4 MB, free: 10.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1858/0.186, allocations: 51.29 MB / 408.7 MB, free: 27.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08687/0.2729, allocations: 77.93 MB / 486.6 MB, free: 13.65 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002064/0.2731, allocations: 66.5 kB / 486.6 MB, free: 13.59 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005611/0.2788, allocations: 1.995 MB / 488.6 MB, free: 11.6 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.2788, allocations: 4 kB / 488.6 MB, free: 11.6 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.586e-06/0.2788, allocations: 4 kB / 488.6 MB, free: 11.59 MB / 362.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.0005163/0.2793, allocations: 470.4 kB / 489.1 MB, free: 11.07 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.583e-05/0.2794, allocations: 8.031 kB / 489.1 MB, free: 11.06 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002093/0.2796, allocations: 44.72 kB / 489.2 MB, free: 11.02 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001952/0.2798, allocations: 206.6 kB / 489.4 MB, free: 10.78 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.701e-05/0.2798, allocations: 8.375 kB / 489.4 MB, free: 10.77 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.184e-05/0.2799, allocations: 16.31 kB / 489.4 MB, free: 10.76 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004246/0.2803, allocations: 182.1 kB / 489.6 MB, free: 10.57 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.2803, allocations: 192 / 489.6 MB, free: 10.57 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.557e-05/0.2804, allocations: 11.86 kB / 489.6 MB, free: 10.56 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.2804, allocations: 4 kB / 489.6 MB, free: 10.56 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000352/0.2807, allocations: 127.8 kB / 489.7 MB, free: 10.43 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005993/0.2813, allocations: 432.4 kB / 490.1 MB, free: 9.961 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005441/0.2819, allocations: 234.4 kB / 490.4 MB, free: 9.723 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002751/0.2822, allocations: 112.8 kB / 490.5 MB, free: 9.609 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.443e-05/0.2822, allocations: 0 / 490.5 MB, free: 9.609 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004205/0.2826, allocations: 195.3 kB / 490.7 MB, free: 9.406 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 1.674e-06/0.2826, allocations: 0 / 490.7 MB, free: 9.406 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.0009693/0.2836, allocations: 409.4 kB / 491.1 MB, free: 9 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.796e-05/0.2837, allocations: 55.41 kB / 491.1 MB, free: 8.934 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001164/0.2838, allocations: 138.1 kB / 491.2 MB, free: 8.785 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.46e-05/0.2838, allocations: 33.69 kB / 491.3 MB, free: 8.746 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.975e-05/0.2839, allocations: 100.5 kB / 491.4 MB, free: 8.645 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.888e-05/0.2839, allocations: 39.55 kB / 491.4 MB, free: 8.605 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.428e-06/0.284, allocations: 4 kB / 491.4 MB, free: 8.602 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.2841, allocations: 330.8 kB / 491.7 MB, free: 8.27 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001119/0.2842, allocations: 47.97 kB / 491.8 MB, free: 8.223 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001779/0.2844, allocations: 120.5 kB / 491.9 MB, free: 8.074 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002777/0.2847, allocations: 182 kB / 492.1 MB, free: 7.867 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.2847, allocations: 3.984 kB / 492.1 MB, free: 7.863 MB / 362.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003535/0.285, allocations: 213.2 kB / 492.3 MB, free: 7.648 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/0.2851, allocations: 4 kB / 492.3 MB, free: 7.645 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.2851, allocations: 4 kB / 492.3 MB, free: 7.641 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.523e-05/0.2851, allocations: 8.281 kB / 492.3 MB, free: 7.633 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001563/0.2853, allocations: 39.91 kB / 492.4 MB, free: 7.594 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.904e-06/0.2853, allocations: 4 kB / 492.4 MB, free: 7.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.022e-05/0.2854, allocations: 23.83 kB / 492.4 MB, free: 7.566 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.616e-05/0.2854, allocations: 12 kB / 492.4 MB, free: 7.555 MB / 362.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 0.0001056/0.2855, allocations: 139.4 kB / 492.5 MB, free: 7.406 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.972e-05/0.2855, allocations: 7.906 kB / 492.5 MB, free: 7.398 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006963/0.2862, allocations: 321.5 kB / 492.8 MB, free: 7.074 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.2862, allocations: 4 kB / 492.9 MB, free: 7.07 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.2863, allocations: 4 kB / 492.9 MB, free: 7.066 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/0.2863, allocations: 3.984 kB / 492.9 MB, free: 7.062 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009169/0.2872, allocations: 0.6114 MB / 493.5 MB, free: 6.395 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.2872, allocations: 4 kB / 493.5 MB, free: 6.391 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.742e-05/0.2873, allocations: 19.92 kB / 493.5 MB, free: 6.371 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.2873, allocations: 0 / 493.5 MB, free: 6.371 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.762e-05/0.2873, allocations: 7.984 kB / 493.5 MB, free: 6.363 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.542e-06/0.2874, allocations: 0 / 493.5 MB, free: 6.363 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.2874, allocations: 3.938 kB / 493.5 MB, free: 6.359 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009945/0.2884, allocations: 0.5368 MB / 494 MB, free: 5.809 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.809e-05/0.2884, allocations: 85.05 kB / 494.1 MB, free: 5.707 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.673e-05/0.2885, allocations: 8 kB / 494.1 MB, free: 5.699 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002016/0.2887, allocations: 40.02 kB / 494.2 MB, free: 5.66 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.746e-05/0.2887, allocations: 15.92 kB / 494.2 MB, free: 5.645 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.752e-05/0.2887, allocations: 11.98 kB / 494.2 MB, free: 5.633 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.755e-05/0.2888, allocations: 106.2 kB / 494.3 MB, free: 5.531 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2888, allocations: 0 / 494.3 MB, free: 5.531 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002636/0.2891, allocations: 28 kB / 494.3 MB, free: 5.504 MB / 362.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.0001302/0.2892, allocations: 118.5 kB / 494.4 MB, free: 5.383 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004233/0.2896, allocations: 188.3 kB / 494.6 MB, free: 5.199 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.2896, allocations: 4.062 kB / 494.6 MB, free: 5.195 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002491/0.2899, allocations: 107.9 kB / 494.7 MB, free: 5.09 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002213/0.2901, allocations: 23.94 kB / 494.8 MB, free: 5.066 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006981/0.2908, allocations: 414.6 kB / 495.2 MB, free: 4.633 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000226/0.2911, allocations: 0.7043 MB / 495.9 MB, free: 3.902 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.178e-05/0.2911, allocations: 19.42 kB / 495.9 MB, free: 3.883 MB / 362.7 MB Notification: Performance of SimCode: time 1.433e-06/0.2911, allocations: 0 / 495.9 MB, free: 3.883 MB / 362.7 MB Notification: Performance of Templates: time 0.002618/0.2938, allocations: 1.591 MB / 497.5 MB, free: 2.297 MB / 362.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)