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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001272/0.001272, allocations: 109.4 kB / 19.81 MB, free: 2.512 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001559/0.001559, allocations: 218.8 kB / 22.99 MB, free: 5.602 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.506/1.506, allocations: 230.2 MB / 256.2 MB, free: 8.551 MB / 206.1 MB " [Timeout remaining time 178] 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=150000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema") translateModel(Modelica.Blocks.Examples.DemonstrateSignalExtrema,tolerance=1e-06,outputFormat="empty",numberOfIntervals=150000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001874/0.001874, allocations: 63.89 kB / 376.5 MB, free: 3.613 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3433/0.3451, allocations: 53.33 MB / 429.8 MB, free: 7.539 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.003778/0.3489, allocations: 1.735 MB / 431.5 MB, free: 5.793 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00159/0.3505, allocations: 0.6779 MB / 432.2 MB, free: 5.109 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000104/0.3506, allocations: 3.938 kB / 432.2 MB, free: 5.105 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002016/0.3508, allocations: 15.8 kB / 432.2 MB, free: 5.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.763e-05/0.3509, allocations: 19.8 kB / 432.2 MB, free: 5.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003977/0.3513, allocations: 91.75 kB / 432.3 MB, free: 4.98 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002684/0.3515, allocations: 147.6 kB / 432.5 MB, free: 4.836 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00015/0.3517, allocations: 25.44 kB / 432.5 MB, free: 4.809 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002063/0.3519, allocations: 75.7 kB / 432.6 MB, free: 4.734 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001368/0.352, allocations: 63.73 kB / 432.6 MB, free: 4.672 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.032e-05/0.3521, allocations: 12 kB / 432.6 MB, free: 4.66 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.655e-05/0.3521, allocations: 20 kB / 432.7 MB, free: 4.641 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.275e-05/0.3522, allocations: 31.91 kB / 432.7 MB, free: 4.609 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.662e-05/0.3523, allocations: 59.72 kB / 432.8 MB, free: 4.551 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002583/0.3525, allocations: 140.7 kB / 432.9 MB, free: 4.422 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.3525, allocations: 0 / 432.9 MB, free: 4.422 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.3525, allocations: 0 / 432.9 MB, free: 4.422 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.843e-06/0.3525, allocations: 0 / 432.9 MB, free: 4.422 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.0008253/0.3534, allocations: 498.3 kB / 433.4 MB, free: 3.875 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.3534, allocations: 8.031 kB / 433.4 MB, free: 3.867 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002591/0.3537, allocations: 36.81 kB / 433.4 MB, free: 3.832 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000338/0.354, allocations: 212.7 kB / 433.6 MB, free: 3.586 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.834e-05/0.354, allocations: 12.38 kB / 433.6 MB, free: 3.574 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.64e-05/0.3541, allocations: 20.11 kB / 433.7 MB, free: 3.555 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004412/0.3545, allocations: 165.5 kB / 433.8 MB, free: 3.387 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.3545, allocations: 0 / 433.8 MB, free: 3.387 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.976e-05/0.3546, allocations: 4 kB / 433.8 MB, free: 3.383 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.3546, allocations: 0 / 433.8 MB, free: 3.383 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003275/0.3549, allocations: 103.9 kB / 433.9 MB, free: 3.281 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008112/0.3557, allocations: 436.3 kB / 434.4 MB, free: 2.805 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006231/0.3563, allocations: 186.4 kB / 434.5 MB, free: 2.613 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002778/0.3566, allocations: 88.78 kB / 434.6 MB, free: 2.523 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.82e-05/0.3566, allocations: 4 kB / 434.6 MB, free: 2.52 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004331/0.3571, allocations: 167.2 kB / 434.8 MB, free: 2.344 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.443e-06/0.3571, allocations: 0 / 434.8 MB, free: 2.344 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.001053/0.3581, allocations: 352.1 kB / 435.1 MB, free: 1.996 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.913e-05/0.3582, allocations: 59.41 kB / 435.2 MB, free: 1.926 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001515/0.3583, allocations: 153.1 kB / 435.3 MB, free: 1.77 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.818e-05/0.3584, allocations: 33.7 kB / 435.4 MB, free: 1.73 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.673e-05/0.3585, allocations: 104.5 kB / 435.5 MB, free: 1.625 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.214e-05/0.3585, allocations: 43.67 kB / 435.5 MB, free: 1.582 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.63e-05/0.3586, allocations: 53.62 kB / 435.6 MB, free: 1.523 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001554/0.3587, allocations: 326.8 kB / 435.9 MB, free: 1.195 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001147/0.3589, allocations: 43.97 kB / 435.9 MB, free: 1.152 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00019/0.359, allocations: 116.5 kB / 436 MB, free: 1.008 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003094/0.3594, allocations: 168.4 kB / 436.2 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.11e-06/0.3594, allocations: 8 kB / 436.2 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003852/0.3597, allocations: 205.2 kB / 436.4 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.456e-05/0.3598, allocations: 4 kB / 436.4 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.3598, allocations: 4 kB / 436.4 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.792e-05/0.3598, allocations: 7.938 kB / 436.4 MB, free: 0.582 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001885/0.36, allocations: 40.2 kB / 436.5 MB, free: 0.543 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.347e-06/0.36, allocations: 4 kB / 436.5 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.448e-05/0.3601, allocations: 19.88 kB / 436.5 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.229e-05/0.3601, allocations: 12 kB / 436.5 MB, free: 0.5078 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.0001751/0.3603, allocations: 131.5 kB / 436.6 MB, free: 380 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.23e-05/0.3603, allocations: 15.89 kB / 436.7 MB, free: 364 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007506/0.3611, allocations: 274.3 kB / 436.9 MB, free: 80 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.354e-06/0.3611, allocations: 7.938 kB / 436.9 MB, free: 72 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.3611, allocations: 0 / 436.9 MB, free: 72 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.3611, allocations: 0 / 436.9 MB, free: 72 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001044/0.3621, allocations: 0.5724 MB / 437.5 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.596e-06/0.3621, allocations: 3.938 kB / 437.5 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001036/0.3623, allocations: 19.98 kB / 437.5 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.3623, allocations: 0 / 437.5 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.398e-05/0.3623, allocations: 7.984 kB / 437.5 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.3623, allocations: 4 kB / 437.5 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.3623, allocations: 0 / 437.5 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009956/0.3633, allocations: 473.7 kB / 438 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.061e-05/0.3633, allocations: 100.9 kB / 438.1 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.144e-05/0.3634, allocations: 8 kB / 438.1 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000171/0.3636, allocations: 27.97 kB / 438.1 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.079e-05/0.3636, allocations: 15.98 kB / 438.1 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.802e-05/0.3636, allocations: 12.05 kB / 438.2 MB, free: 14.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.509e-05/0.3637, allocations: 106.3 kB / 438.3 MB, free: 14.65 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3637, allocations: 0 / 438.3 MB, free: 14.65 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002868/0.364, allocations: 31.98 kB / 438.3 MB, free: 14.62 MB / 350.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.0001775/0.3642, allocations: 99.25 kB / 438.4 MB, free: 14.51 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004668/0.3647, allocations: 167.7 kB / 438.6 MB, free: 14.35 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3647, allocations: 0 / 438.6 MB, free: 14.35 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002534/0.3649, allocations: 83.88 kB / 438.6 MB, free: 14.27 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002605/0.3652, allocations: 15.92 kB / 438.7 MB, free: 14.25 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009034/0.3661, allocations: 337 kB / 439 MB, free: 13.89 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004003/0.3665, allocations: 0.7122 MB / 439.7 MB, free: 13.16 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.689e-05/0.3665, allocations: 13.08 kB / 439.7 MB, free: 13.14 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.693e-05/0.3666, allocations: 11.44 kB / 439.7 MB, free: 13.13 MB / 350.1 MB Notification: Performance of SimCode: time 8.21e-07/0.3666, allocations: 0 / 439.7 MB, free: 13.13 MB / 350.1 MB Notification: Performance of Templates: time 0.0046/0.3712, allocations: 1.3 MB / 441 MB, free: 11.84 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.makefile [Timeout 660] (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) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.074477124027908]