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/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 trunk/package.mo", uses=false) 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) 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_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/ModelicaServices trunk/package.mo): time 0.001456/0.001456, allocations: 116.4 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001646/0.001646, allocations: 211.9 kB / 19.41 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.49/1.49, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.00131, allocations: 59.91 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2827/0.284, allocations: 50.53 MB / 409.9 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.003111/0.2872, allocations: 1.738 MB / 411.7 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001309/0.2885, allocations: 0.6583 MB / 412.3 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001185/0.2887, allocations: 4 kB / 412.3 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001372/0.2889, allocations: 19.8 kB / 412.3 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.322e-05/0.2889, allocations: 15.8 kB / 412.4 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003814/0.2893, allocations: 91.75 kB / 412.4 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002278/0.2896, allocations: 147.6 kB / 412.6 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001585/0.2897, allocations: 37.42 kB / 412.6 MB, free: 14.87 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002014/0.2899, allocations: 67.77 kB / 412.7 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001131/0.2901, allocations: 67.67 kB / 412.8 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.923e-05/0.2901, allocations: 12 kB / 412.8 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.55e-05/0.2902, allocations: 20 kB / 412.8 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.476e-05/0.2902, allocations: 31.91 kB / 412.8 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.651e-05/0.2903, allocations: 63.72 kB / 412.9 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002276/0.2905, allocations: 139.2 kB / 413 MB, free: 14.48 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.2906, allocations: 0 / 413 MB, free: 14.48 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.2906, allocations: 0 / 413 MB, free: 14.48 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.975e-06/0.2906, allocations: 0 / 413 MB, free: 14.48 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.0007571/0.2913, allocations: 499.8 kB / 413.5 MB, free: 13.93 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/0.2914, allocations: 11.97 kB / 413.5 MB, free: 13.91 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002563/0.2917, allocations: 36.72 kB / 413.6 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003033/0.292, allocations: 208.3 kB / 413.8 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.653e-05/0.292, allocations: 12.38 kB / 413.8 MB, free: 13.63 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.716e-05/0.2921, allocations: 12.12 kB / 413.8 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004516/0.2925, allocations: 169.4 kB / 413.9 MB, free: 13.45 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.897e-06/0.2925, allocations: 0 / 413.9 MB, free: 13.45 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.871e-05/0.2926, allocations: 0 / 413.9 MB, free: 13.45 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.098e-05/0.2926, allocations: 3.984 kB / 413.9 MB, free: 13.44 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000336/0.2929, allocations: 107.8 kB / 414.1 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000682/0.2936, allocations: 420.5 kB / 414.5 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000589/0.2942, allocations: 194.4 kB / 414.7 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002805/0.2945, allocations: 96.72 kB / 414.7 MB, free: 12.58 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.807e-05/0.2945, allocations: 7.938 kB / 414.8 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004167/0.295, allocations: 167.3 kB / 414.9 MB, free: 12.39 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.623e-06/0.295, allocations: 0 / 414.9 MB, free: 12.39 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.001002/0.296, allocations: 349.3 kB / 415.3 MB, free: 12.05 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.996e-05/0.296, allocations: 59.39 kB / 415.3 MB, free: 11.98 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001267/0.2962, allocations: 149.7 kB / 415.5 MB, free: 11.82 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.536e-05/0.2962, allocations: 37.69 kB / 415.5 MB, free: 11.78 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.023e-05/0.2963, allocations: 96.48 kB / 415.6 MB, free: 11.68 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.786e-05/0.2963, allocations: 51.38 kB / 415.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.713e-05/0.2964, allocations: 45.7 kB / 415.7 MB, free: 11.58 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.2965, allocations: 326.8 kB / 416 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001174/0.2967, allocations: 43.97 kB / 416.1 MB, free: 11.21 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001534/0.2968, allocations: 116.5 kB / 416.2 MB, free: 11.06 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002769/0.2971, allocations: 176.4 kB / 416.3 MB, free: 10.86 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.159e-06/0.2971, allocations: 8 kB / 416.3 MB, free: 10.85 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003742/0.2975, allocations: 201.3 kB / 416.5 MB, free: 10.65 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.97e-05/0.2975, allocations: 4 kB / 416.5 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.778e-06/0.2975, allocations: 4 kB / 416.6 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.96e-05/0.2976, allocations: 7.938 kB / 416.6 MB, free: 10.63 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001971/0.2978, allocations: 36.2 kB / 416.6 MB, free: 10.6 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/0.2978, allocations: 4 kB / 416.6 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001026/0.2979, allocations: 19.89 kB / 416.6 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.715e-05/0.2979, allocations: 8 kB / 416.6 MB, free: 10.57 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.0001397/0.2981, allocations: 139.4 kB / 416.8 MB, free: 10.42 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.059e-05/0.2981, allocations: 15.81 kB / 416.8 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000708/0.2988, allocations: 274.2 kB / 417 MB, free: 10.13 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.047e-06/0.2988, allocations: 11.92 kB / 417.1 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.2989, allocations: 0 / 417.1 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.2989, allocations: 0 / 417.1 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009536/0.2998, allocations: 0.5718 MB / 417.6 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.2998, allocations: 3.938 kB / 417.6 MB, free: 9.488 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001134/0.3, allocations: 15.98 kB / 417.6 MB, free: 9.473 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.3, allocations: 3.938 kB / 417.7 MB, free: 9.469 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.226e-05/0.3, allocations: 7.984 kB / 417.7 MB, free: 9.461 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.3, allocations: 4 kB / 417.7 MB, free: 9.457 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.3, allocations: 0 / 417.7 MB, free: 9.457 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001083/0.3011, allocations: 463.1 kB / 418.1 MB, free: 8.988 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.213e-05/0.3012, allocations: 96.88 kB / 418.2 MB, free: 8.875 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.524e-05/0.3012, allocations: 15.92 kB / 418.2 MB, free: 8.859 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001933/0.3014, allocations: 27.97 kB / 418.3 MB, free: 8.832 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.198e-05/0.3015, allocations: 7.984 kB / 418.3 MB, free: 8.824 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.798e-05/0.3015, allocations: 20.05 kB / 418.3 MB, free: 8.805 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.06e-05/0.3016, allocations: 106.8 kB / 418.4 MB, free: 8.703 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3016, allocations: 0 / 418.4 MB, free: 8.703 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003176/0.302, allocations: 31.98 kB / 418.4 MB, free: 8.672 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.0001875/0.3021, allocations: 103.2 kB / 418.5 MB, free: 8.562 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005601/0.3027, allocations: 175.8 kB / 418.7 MB, free: 8.391 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.3027, allocations: 0 / 418.7 MB, free: 8.391 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002655/0.303, allocations: 91.88 kB / 418.8 MB, free: 8.301 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002585/0.3033, allocations: 18.8 kB / 418.8 MB, free: 8.285 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008268/0.3041, allocations: 367.2 kB / 419.2 MB, free: 7.895 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002811/0.3044, allocations: 0.7084 MB / 419.9 MB, free: 7.16 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.39e-05/0.3045, allocations: 19.42 kB / 419.9 MB, free: 7.141 MB / 334.1 MB Notification: Performance of SimCode: time 4.2e-07/0.3045, allocations: 0 / 419.9 MB, free: 7.141 MB / 334.1 MB Notification: Performance of Templates: time 0.003436/0.3079, allocations: 1.643 MB / 421.5 MB, free: 5.496 MB / 334.1 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)