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.001439/0.001439, allocations: 196.2 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.377/1.377, allocations: 225.4 MB / 240.1 MB, free: 15.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009406/0.0009406, allocations: 94.42 kB / 292.1 MB, free: 5.977 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.318e-05/3.333e-05, allocations: 0 / 350.5 MB, free: 2.543 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1121, allocations: 51.49 MB / 402 MB, free: 15.01 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3685/0.4807, allocations: 77.93 MB / 479.9 MB, free: 11.5 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001729/0.4809, allocations: 63.8 kB / 480 MB, free: 11.48 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00538/0.4863, allocations: 1.991 MB / 482 MB, free: 9.773 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.517e-06/0.4863, allocations: 0 / 482 MB, free: 9.773 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.276e-05/0.4863, allocations: 0 / 482 MB, free: 9.773 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.0004309/0.4868, allocations: 467.2 kB / 482.5 MB, free: 9.281 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.376e-05/0.4868, allocations: 8.031 kB / 482.5 MB, free: 9.273 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002133/0.487, allocations: 37.14 kB / 482.5 MB, free: 9.238 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001771/0.4872, allocations: 213.1 kB / 482.7 MB, free: 9.004 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.034e-05/0.4873, allocations: 12.28 kB / 482.7 MB, free: 8.996 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.115e-05/0.4873, allocations: 11.94 kB / 482.7 MB, free: 8.988 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002095/0.4875, allocations: 112.5 kB / 482.8 MB, free: 8.895 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.336e-06/0.4875, allocations: 0 / 482.8 MB, free: 8.895 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.055e-05/0.4876, allocations: 12.39 kB / 482.9 MB, free: 8.887 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.4876, allocations: 1.125 kB / 482.9 MB, free: 8.887 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001275/0.4877, allocations: 50.7 kB / 482.9 MB, free: 8.852 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005866/0.4883, allocations: 431 kB / 483.3 MB, free: 8.43 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001893/0.4885, allocations: 109.3 kB / 483.4 MB, free: 8.348 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.428e-05/0.4886, allocations: 55.92 kB / 483.5 MB, free: 8.309 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.376e-05/0.4886, allocations: 0 / 483.5 MB, free: 8.309 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002143/0.4888, allocations: 130.6 kB / 483.6 MB, free: 8.195 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.573e-06/0.4888, allocations: 4 kB / 483.6 MB, free: 8.191 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003205/0.4892, allocations: 179.7 kB / 483.8 MB, free: 8.043 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.272e-05/0.4892, allocations: 55.41 kB / 483.9 MB, free: 7.977 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.62e-05/0.4893, allocations: 124.8 kB / 484 MB, free: 7.855 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.193e-05/0.4893, allocations: 41.31 kB / 484 MB, free: 7.816 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.784e-05/0.4894, allocations: 99.86 kB / 484.1 MB, free: 7.723 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.016e-05/0.4894, allocations: 38.92 kB / 484.1 MB, free: 7.691 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.684e-06/0.4894, allocations: 3.938 kB / 484.2 MB, free: 7.691 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.645e-05/0.4895, allocations: 330.5 kB / 484.5 MB, free: 7.367 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.85e-05/0.4896, allocations: 39.55 kB / 484.5 MB, free: 7.34 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.403e-05/0.4897, allocations: 96.38 kB / 484.6 MB, free: 7.23 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.925e-05/0.4897, allocations: 54.45 kB / 484.7 MB, free: 7.191 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-06/0.4897, allocations: 4 kB / 484.7 MB, free: 7.188 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002473/0.49, allocations: 183.7 kB / 484.8 MB, free: 7.035 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/0.49, allocations: 7.953 kB / 484.9 MB, free: 7.027 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.256e-06/0.49, allocations: 4 kB / 484.9 MB, free: 7.023 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.996e-05/0.4901, allocations: 4 kB / 484.9 MB, free: 7.02 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001704/0.4902, allocations: 41.53 kB / 484.9 MB, free: 6.98 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.568e-06/0.4903, allocations: 4 kB / 484.9 MB, free: 6.977 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.63e-05/0.4904, allocations: 20.67 kB / 484.9 MB, free: 6.961 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.549e-05/0.4904, allocations: 12.19 kB / 484.9 MB, free: 6.949 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 6.934e-05/0.4905, allocations: 132.9 kB / 485.1 MB, free: 6.82 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.923e-05/0.4905, allocations: 7.906 kB / 485.1 MB, free: 6.812 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002886/0.4908, allocations: 194.1 kB / 485.3 MB, free: 6.66 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.4908, allocations: 0 / 485.3 MB, free: 6.66 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.4908, allocations: 1.188 kB / 485.3 MB, free: 6.66 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.161e-06/0.4908, allocations: 7.984 kB / 485.3 MB, free: 6.652 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004348/0.4912, allocations: 487.7 kB / 485.7 MB, free: 6.184 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.4913, allocations: 4 kB / 485.8 MB, free: 6.18 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001045/0.4914, allocations: 25.62 kB / 485.8 MB, free: 6.16 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.4914, allocations: 0 / 485.8 MB, free: 6.16 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.808e-05/0.4914, allocations: 12.67 kB / 485.8 MB, free: 6.148 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.4914, allocations: 0 / 485.8 MB, free: 6.148 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.4914, allocations: 0 / 485.8 MB, free: 6.148 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003779/0.4918, allocations: 341.2 kB / 486.1 MB, free: 5.867 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.834e-05/0.4918, allocations: 89.11 kB / 486.2 MB, free: 5.762 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.771e-05/0.4919, allocations: 15.88 kB / 486.2 MB, free: 5.75 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001919/0.4921, allocations: 35.97 kB / 486.3 MB, free: 5.715 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.415e-05/0.4921, allocations: 11.67 kB / 486.3 MB, free: 5.707 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.512e-05/0.4922, allocations: 17.86 kB / 486.3 MB, free: 5.691 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.249e-05/0.4922, allocations: 104.6 kB / 486.4 MB, free: 5.598 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4922, allocations: 0 / 486.4 MB, free: 5.598 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000251/0.4925, allocations: 31.88 kB / 486.4 MB, free: 5.57 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.000149/0.4926, allocations: 113.3 kB / 486.5 MB, free: 5.457 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001979/0.4928, allocations: 124 kB / 486.7 MB, free: 5.367 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.4928, allocations: 0.5625 kB / 486.7 MB, free: 5.367 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 8.775e-05/0.4929, allocations: 63.19 kB / 486.7 MB, free: 5.32 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000145/0.4931, allocations: 5.672 kB / 486.7 MB, free: 5.32 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004757/0.4936, allocations: 232.3 kB / 486.9 MB, free: 5.105 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001421/0.4937, allocations: 0.716 MB / 487.7 MB, free: 4.363 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.499e-05/0.4938, allocations: 16.52 kB / 487.7 MB, free: 4.352 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.107e-05/0.4938, allocations: 22.92 kB / 487.7 MB, free: 4.332 MB / 346.7 MB Notification: Performance of SimCode: time 5.31e-07/0.4938, allocations: 0 / 487.7 MB, free: 4.332 MB / 346.7 MB Notification: Performance of Templates: time 0.002986/0.4968, allocations: 1.062 MB / 488.8 MB, free: 3.316 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)