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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001077/0.001077, allocations: 200.1 kB / 8.536 MB, free: 1.836 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.246/1.246, allocations: 225.5 MB / 234.4 MB, free: 3.324 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008802/0.0008803, allocations: 90.31 kB / 286.3 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 7.003e-06/7.033e-06, allocations: 0 / 343.1 MB, free: 8.703 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1152, allocations: 51.48 MB / 394.6 MB, free: 5.184 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.321/0.4363, allocations: 77.19 MB / 471.8 MB, free: 14.5 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002075/0.4365, allocations: 66.31 kB / 471.9 MB, free: 14.48 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.00544/0.442, allocations: 1.681 MB / 473.5 MB, free: 13.57 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.534e-05/0.442, allocations: 4 kB / 473.5 MB, free: 13.57 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.0005384/0.4426, allocations: 461.7 kB / 474 MB, free: 13.09 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.873e-05/0.4426, allocations: 11.41 kB / 474 MB, free: 13.09 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002431/0.4429, allocations: 43.23 kB / 474.1 MB, free: 13.05 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002112/0.4431, allocations: 199.3 kB / 474.2 MB, free: 12.83 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.119e-05/0.4431, allocations: 4 kB / 474.3 MB, free: 12.83 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.458e-05/0.4432, allocations: 11.62 kB / 474.3 MB, free: 12.82 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001264/0.4433, allocations: 41.31 kB / 474.3 MB, free: 12.8 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001746/0.4435, allocations: 112.6 kB / 474.4 MB, free: 12.73 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.739e-06/0.4435, allocations: 4 kB / 474.4 MB, free: 12.72 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.931e-05/0.4436, allocations: 3.281 kB / 474.4 MB, free: 12.72 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.675e-06/0.4436, allocations: 7.906 kB / 474.4 MB, free: 12.71 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004963/0.4441, allocations: 356.7 kB / 474.8 MB, free: 12.43 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001739/0.4443, allocations: 109.1 kB / 474.9 MB, free: 12.35 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.537e-05/0.4443, allocations: 46.98 kB / 474.9 MB, free: 12.31 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.022e-05/0.4444, allocations: 4 kB / 474.9 MB, free: 12.31 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001409/0.4445, allocations: 112.2 kB / 475 MB, free: 12.23 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.653e-06/0.4445, allocations: 0 / 475 MB, free: 12.23 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.000272/0.4448, allocations: 126.7 kB / 475.2 MB, free: 12.14 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.543e-05/0.4448, allocations: 63.02 kB / 475.2 MB, free: 12.07 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.569e-05/0.4449, allocations: 129.7 kB / 475.4 MB, free: 11.95 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.99e-05/0.445, allocations: 33.53 kB / 475.4 MB, free: 11.91 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.319e-05/0.445, allocations: 95.56 kB / 475.5 MB, free: 11.82 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.042e-05/0.4451, allocations: 41.53 kB / 475.5 MB, free: 11.79 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.795e-06/0.4451, allocations: 0 / 475.5 MB, free: 11.79 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.172e-05/0.4452, allocations: 329.2 kB / 475.8 MB, free: 11.47 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.662e-05/0.4452, allocations: 30 kB / 475.9 MB, free: 11.45 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.448e-05/0.4453, allocations: 97.39 kB / 476 MB, free: 11.34 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.2e-05/0.4454, allocations: 58.34 kB / 476 MB, free: 11.31 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.4454, allocations: 0 / 476 MB, free: 11.31 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002217/0.4457, allocations: 154.2 kB / 476.2 MB, free: 11.19 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.851e-05/0.4457, allocations: 9.875 kB / 476.2 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.4457, allocations: 0 / 476.2 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.802e-05/0.4457, allocations: 4 kB / 476.2 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001895/0.4459, allocations: 42.91 kB / 476.2 MB, free: 11.14 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.183e-06/0.4459, allocations: 4 kB / 476.2 MB, free: 11.14 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.399e-05/0.446, allocations: 19.03 kB / 476.3 MB, free: 11.12 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.029e-05/0.4461, allocations: 14.12 kB / 476.3 MB, free: 11.12 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 0.0001043/0.4462, allocations: 121.2 kB / 476.4 MB, free: 11 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.551e-05/0.4462, allocations: 19.81 kB / 476.4 MB, free: 10.98 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002573/0.4465, allocations: 141.1 kB / 476.5 MB, free: 10.88 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.983e-06/0.4465, allocations: 0 / 476.5 MB, free: 10.88 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.4465, allocations: 0 / 476.5 MB, free: 10.88 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.4465, allocations: 5.125 kB / 476.5 MB, free: 10.88 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003635/0.4469, allocations: 422.2 kB / 477 MB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.4469, allocations: 0 / 477 MB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001184/0.447, allocations: 30.94 kB / 477 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.447, allocations: 3.906 kB / 477 MB, free: 10.49 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.875e-05/0.447, allocations: 3.234 kB / 477 MB, free: 10.49 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.447, allocations: 4 kB / 477 MB, free: 10.49 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.447, allocations: 1.125 kB / 477 MB, free: 10.49 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003404/0.4474, allocations: 291.4 kB / 477.3 MB, free: 10.26 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.911e-05/0.4474, allocations: 92.33 kB / 477.4 MB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.106e-05/0.4475, allocations: 4 kB / 477.4 MB, free: 10.15 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002132/0.4477, allocations: 55.03 kB / 477.4 MB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.582e-05/0.4478, allocations: 7.375 kB / 477.4 MB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.67e-05/0.4478, allocations: 7.281 kB / 477.4 MB, free: 10.11 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.981e-05/0.4478, allocations: 98.08 kB / 477.5 MB, free: 10.02 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002865/0.4481, allocations: 38.41 kB / 477.6 MB, free: 9.988 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.0001543/0.4483, allocations: 115.3 kB / 477.7 MB, free: 9.875 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001924/0.4485, allocations: 108.9 kB / 477.8 MB, free: 9.797 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.4485, allocations: 0 / 477.8 MB, free: 9.797 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 8.689e-05/0.4486, allocations: 52.81 kB / 477.9 MB, free: 9.762 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001651/0.4487, allocations: 9.984 kB / 477.9 MB, free: 9.762 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005572/0.4493, allocations: 216.3 kB / 478.1 MB, free: 9.574 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002232/0.4495, allocations: 0.7329 MB / 478.8 MB, free: 8.836 MB / 346.7 MB Notification: Performance of SimCode: time 2.51e-07/0.4496, allocations: 0 / 478.8 MB, free: 8.836 MB / 346.7 MB Notification: Performance of Templates: time 0.003416/0.453, allocations: 1.241 MB / 480 MB, free: 8.137 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)