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/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_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/Complex trunk/package.mo): time 0.001283/0.001284, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.367/1.367, allocations: 226.7 MB / 245.5 MB, free: 6.977 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001296/0.001297, allocations: 111.9 kB / 296.7 MB, free: 6.492 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009769/0.0009771, allocations: 51.92 kB / 356.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2814/0.2824, allocations: 50.46 MB / 407.1 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.002796/0.2853, allocations: 1.764 MB / 408.8 MB, free: 26.04 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000945/0.2862, allocations: 0.6298 MB / 409.4 MB, free: 25.41 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.952e-05/0.2863, allocations: 0 / 409.4 MB, free: 25.41 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001403/0.2864, allocations: 6.625 kB / 409.5 MB, free: 25.41 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.464e-05/0.2865, allocations: 23.78 kB / 409.5 MB, free: 25.38 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002516/0.2868, allocations: 59.94 kB / 409.5 MB, free: 25.32 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001437/0.2869, allocations: 135.6 kB / 409.7 MB, free: 25.19 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001359/0.287, allocations: 40.05 kB / 409.7 MB, free: 25.16 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001581/0.2872, allocations: 63.77 kB / 409.8 MB, free: 25.09 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.051e-05/0.2873, allocations: 63.73 kB / 409.8 MB, free: 25.03 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.369e-05/0.2873, allocations: 8 kB / 409.8 MB, free: 25.02 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.238e-05/0.2874, allocations: 16 kB / 409.9 MB, free: 25.01 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.289e-05/0.2875, allocations: 35.83 kB / 409.9 MB, free: 24.97 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.72e-05/0.2875, allocations: 59.72 kB / 409.9 MB, free: 24.91 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001903/0.2877, allocations: 117.2 kB / 410.1 MB, free: 24.8 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.183e-06/0.2877, allocations: 0 / 410.1 MB, free: 24.8 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.2877, allocations: 0 / 410.1 MB, free: 24.8 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.083e-06/0.2878, allocations: 0 / 410.1 MB, free: 24.8 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.0007387/0.2885, allocations: 498.4 kB / 410.5 MB, free: 24.25 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.137e-05/0.2886, allocations: 8.031 kB / 410.6 MB, free: 24.25 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002335/0.2888, allocations: 36.72 kB / 410.6 MB, free: 24.21 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001795/0.289, allocations: 204.1 kB / 410.8 MB, free: 23.97 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.434e-05/0.289, allocations: 8.375 kB / 410.8 MB, free: 23.96 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.627e-05/0.2891, allocations: 12.38 kB / 410.8 MB, free: 23.95 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004063/0.2895, allocations: 168.5 kB / 411 MB, free: 23.79 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.2895, allocations: 4 kB / 411 MB, free: 23.78 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.785e-05/0.2895, allocations: 3.984 kB / 411 MB, free: 23.78 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.132e-06/0.2895, allocations: 0 / 411 MB, free: 23.78 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003256/0.2899, allocations: 99.91 kB / 411.1 MB, free: 23.68 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005793/0.2905, allocations: 436.2 kB / 411.5 MB, free: 23.2 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005186/0.291, allocations: 190.4 kB / 411.7 MB, free: 23.01 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002562/0.2913, allocations: 92.78 kB / 411.8 MB, free: 22.91 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.481e-05/0.2913, allocations: 0 / 411.8 MB, free: 22.91 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004462/0.2917, allocations: 173.9 kB / 412 MB, free: 22.73 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 2.795e-06/0.2918, allocations: 0 / 412 MB, free: 22.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0009873/0.2927, allocations: 349.4 kB / 412.3 MB, free: 22.39 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.466e-05/0.2928, allocations: 59.41 kB / 412.4 MB, free: 22.32 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001038/0.2929, allocations: 140.5 kB / 412.5 MB, free: 22.17 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.857e-05/0.2929, allocations: 33.69 kB / 412.5 MB, free: 22.13 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.335e-05/0.293, allocations: 100.6 kB / 412.6 MB, free: 22.03 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.226e-05/0.293, allocations: 43.44 kB / 412.7 MB, free: 21.99 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.17e-05/0.2931, allocations: 49.64 kB / 412.7 MB, free: 21.93 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.062e-05/0.2932, allocations: 330.8 kB / 413 MB, free: 21.6 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001019/0.2933, allocations: 43.97 kB / 413.1 MB, free: 21.56 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001359/0.2935, allocations: 114.1 kB / 413.2 MB, free: 21.42 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000243/0.2937, allocations: 176.4 kB / 413.4 MB, free: 21.21 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.2937, allocations: 0 / 413.4 MB, free: 21.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003015/0.294, allocations: 209.1 kB / 413.6 MB, free: 21 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.294, allocations: 11.98 kB / 413.6 MB, free: 20.99 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.2941, allocations: 0 / 413.6 MB, free: 20.99 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.766e-05/0.2941, allocations: 7.984 kB / 413.6 MB, free: 20.98 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000164/0.2943, allocations: 35.92 kB / 413.6 MB, free: 20.95 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.025e-05/0.2943, allocations: 4 kB / 413.6 MB, free: 20.95 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.341e-05/0.2944, allocations: 20.11 kB / 413.6 MB, free: 20.93 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.768e-05/0.2944, allocations: 19.94 kB / 413.7 MB, free: 20.91 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 (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 9.625e-05/0.2945, allocations: 139.4 kB / 413.8 MB, free: 20.76 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.207e-05/0.2945, allocations: 7.906 kB / 413.8 MB, free: 20.75 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006352/0.2952, allocations: 270.3 kB / 414.1 MB, free: 20.48 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.546e-06/0.2952, allocations: 4 kB / 414.1 MB, free: 20.47 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.291e-06/0.2952, allocations: 3.984 kB / 414.1 MB, free: 20.47 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.2952, allocations: 0 / 414.1 MB, free: 20.47 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000752/0.2959, allocations: 0.5795 MB / 414.7 MB, free: 19.84 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.296, allocations: 0 / 414.7 MB, free: 19.84 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.079e-05/0.2961, allocations: 15.98 kB / 414.7 MB, free: 19.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.2961, allocations: 0 / 414.7 MB, free: 19.82 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.89e-05/0.2961, allocations: 7.984 kB / 414.7 MB, free: 19.81 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.2961, allocations: 7.938 kB / 414.7 MB, free: 19.8 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.2961, allocations: 0 / 414.7 MB, free: 19.8 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001662/0.2978, allocations: 1.429 MB / 416.1 MB, free: 18.24 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.289e-05/0.2978, allocations: 92.94 kB / 416.2 MB, free: 18.13 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.832e-05/0.2978, allocations: 8 kB / 416.2 MB, free: 18.12 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001717/0.298, allocations: 31.95 kB / 416.3 MB, free: 18.09 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.441e-05/0.2981, allocations: 7.984 kB / 416.3 MB, free: 18.08 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.396e-05/0.2981, allocations: 8 kB / 416.3 MB, free: 18.07 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.419e-05/0.2981, allocations: 105.8 kB / 416.4 MB, free: 17.97 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2981, allocations: 64 / 416.4 MB, free: 17.97 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003295/0.2985, allocations: 47.84 kB / 416.4 MB, free: 17.93 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 (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.0001157/0.2986, allocations: 111.1 kB / 416.5 MB, free: 17.81 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003699/0.299, allocations: 168.1 kB / 416.7 MB, free: 17.64 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.299, allocations: 4.125 kB / 416.7 MB, free: 17.64 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002262/0.2992, allocations: 95.86 kB / 416.8 MB, free: 17.55 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002416/0.2995, allocations: 14.06 kB / 416.8 MB, free: 17.54 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006858/0.3002, allocations: 0.4973 MB / 417.3 MB, free: 17 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001103/0.3003, allocations: 0.7043 MB / 418 MB, free: 16.27 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.424e-05/0.3003, allocations: 12.64 kB / 418 MB, free: 16.25 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.655e-05/0.3004, allocations: 19.42 kB / 418 MB, free: 16.23 MB / 298.7 MB Notification: Performance of SimCode: time 1.8e-07/0.3004, allocations: 0 / 418 MB, free: 16.23 MB / 298.7 MB Notification: Performance of Templates: time 0.002873/0.3033, allocations: 1.177 MB / 419.2 MB, free: 15.06 MB / 298.7 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)