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.0009894/0.0009895, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.29/1.29, allocations: 225.6 MB / 234.8 MB, free: 3.246 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009065/0.0009066, allocations: 101.1 kB / 286.7 MB, free: 5.281 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.479e-05/1.482e-05, allocations: 4 kB / 343.7 MB, free: 8.266 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1135, allocations: 51.48 MB / 395.2 MB, free: 4.746 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3698/0.4833, allocations: 77.26 MB / 472.4 MB, free: 14.21 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000197/0.4836, allocations: 62.83 kB / 472.5 MB, free: 14.18 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005767/0.4893, allocations: 1.987 MB / 474.5 MB, free: 12.97 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.4894, allocations: 0 / 474.5 MB, free: 12.97 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.328e-05/0.4894, allocations: 0 / 474.5 MB, free: 12.97 MB / 346.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.0005101/0.4899, allocations: 463.1 kB / 474.9 MB, free: 12.5 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.844e-05/0.49, allocations: 13.81 kB / 474.9 MB, free: 12.48 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002353/0.4902, allocations: 35.92 kB / 475 MB, free: 12.46 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001805/0.4904, allocations: 205 kB / 475.2 MB, free: 12.24 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.179e-05/0.4905, allocations: 5.172 kB / 475.2 MB, free: 12.23 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.119e-05/0.4905, allocations: 8 kB / 475.2 MB, free: 12.23 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001476/0.4907, allocations: 43.33 kB / 475.2 MB, free: 12.2 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002399/0.4909, allocations: 113.2 kB / 475.3 MB, free: 12.13 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.4909, allocations: 0 / 475.3 MB, free: 12.13 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.164e-05/0.491, allocations: 1.641 kB / 475.3 MB, free: 12.13 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.297e-05/0.491, allocations: 4 kB / 475.3 MB, free: 12.13 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006849/0.4917, allocations: 402.5 kB / 475.7 MB, free: 11.81 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001915/0.4919, allocations: 103.2 kB / 475.8 MB, free: 11.73 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.195e-05/0.492, allocations: 46.11 kB / 475.9 MB, free: 11.7 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.473e-05/0.492, allocations: 5.359 kB / 475.9 MB, free: 11.7 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002537/0.4922, allocations: 130.7 kB / 476 MB, free: 11.61 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.523e-06/0.4923, allocations: 0 / 476 MB, free: 11.61 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003573/0.4926, allocations: 169.4 kB / 476.2 MB, free: 11.48 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.393e-05/0.4927, allocations: 61.2 kB / 476.2 MB, free: 11.41 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001019/0.4928, allocations: 122.6 kB / 476.4 MB, free: 11.3 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.089e-05/0.4928, allocations: 33.14 kB / 476.4 MB, free: 11.27 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.637e-05/0.4929, allocations: 98.59 kB / 476.5 MB, free: 11.18 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.857e-05/0.4929, allocations: 37.86 kB / 476.5 MB, free: 11.15 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.684e-06/0.4929, allocations: 8 kB / 476.5 MB, free: 11.14 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.685e-05/0.493, allocations: 322 kB / 476.8 MB, free: 10.83 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.199e-05/0.4931, allocations: 35.17 kB / 476.9 MB, free: 10.81 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.938e-05/0.4932, allocations: 105.5 kB / 477 MB, free: 10.7 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.061e-05/0.4933, allocations: 41.7 kB / 477 MB, free: 10.68 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.4933, allocations: 4 kB / 477 MB, free: 10.67 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002458/0.4936, allocations: 164.1 kB / 477.2 MB, free: 10.54 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.543e-05/0.4936, allocations: 9.719 kB / 477.2 MB, free: 10.54 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/0.4936, allocations: 1.75 kB / 477.2 MB, free: 10.54 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.301e-05/0.4936, allocations: 7.953 kB / 477.2 MB, free: 10.53 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001802/0.4938, allocations: 38.17 kB / 477.2 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.4939, allocations: 4 kB / 477.2 MB, free: 10.49 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.897e-05/0.4939, allocations: 17.77 kB / 477.3 MB, free: 10.48 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.151e-05/0.494, allocations: 17.16 kB / 477.3 MB, free: 10.46 MB / 346.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 () * 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 9.181e-05/0.4941, allocations: 120.2 kB / 477.4 MB, free: 10.34 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.458e-05/0.4941, allocations: 15.41 kB / 477.4 MB, free: 10.33 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003345/0.4945, allocations: 175.2 kB / 477.6 MB, free: 10.21 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.4945, allocations: 4 kB / 477.6 MB, free: 10.21 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.655e-06/0.4945, allocations: 3.953 kB / 477.6 MB, free: 10.2 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.109e-06/0.4945, allocations: 1.359 kB / 477.6 MB, free: 10.2 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004363/0.4949, allocations: 463.4 kB / 478 MB, free: 9.816 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-06/0.4949, allocations: 0 / 478 MB, free: 9.816 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001006/0.4951, allocations: 15.7 kB / 478.1 MB, free: 9.805 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.4951, allocations: 0 / 478.1 MB, free: 9.805 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.116e-05/0.4951, allocations: 11.3 kB / 478.1 MB, free: 9.801 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.4951, allocations: 3.953 kB / 478.1 MB, free: 9.797 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.4951, allocations: 0 / 478.1 MB, free: 9.797 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003408/0.4954, allocations: 339.4 kB / 478.4 MB, free: 9.535 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.148e-05/0.4955, allocations: 85.05 kB / 478.5 MB, free: 9.434 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.995e-05/0.4955, allocations: 9.031 kB / 478.5 MB, free: 9.43 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001912/0.4957, allocations: 36.72 kB / 478.5 MB, free: 9.402 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.185e-05/0.4958, allocations: 17.75 kB / 478.6 MB, free: 9.395 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.666e-05/0.4958, allocations: 11 kB / 478.6 MB, free: 9.387 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.505e-05/0.4959, allocations: 97.19 kB / 478.7 MB, free: 9.301 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4959, allocations: 0 / 478.7 MB, free: 9.301 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002792/0.4962, allocations: 33.16 kB / 478.7 MB, free: 9.27 MB / 346.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) * 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.0001777/0.4964, allocations: 108.2 kB / 478.8 MB, free: 9.164 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002072/0.4966, allocations: 107.2 kB / 478.9 MB, free: 9.09 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.4966, allocations: 0.5625 kB / 478.9 MB, free: 9.09 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 8.72e-05/0.4967, allocations: 56.58 kB / 479 MB, free: 9.051 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001743/0.4969, allocations: 8.703 kB / 479 MB, free: 9.047 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005916/0.4975, allocations: 223.4 kB / 479.2 MB, free: 8.848 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002455/0.4977, allocations: 0.7121 MB / 479.9 MB, free: 8.125 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 6.361e-05/0.4978, allocations: 16.47 kB / 479.9 MB, free: 8.113 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.931e-05/0.4978, allocations: 16.23 kB / 479.9 MB, free: 8.102 MB / 346.7 MB Notification: Performance of SimCode: time 2.51e-07/0.4979, allocations: 1.781 kB / 479.9 MB, free: 8.102 MB / 346.7 MB Notification: Performance of Templates: time 0.00342/0.5013, allocations: 1.012 MB / 480.9 MB, free: 7.527 MB / 346.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)