Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001656/0.001656, allocations: 119.3 kB / 21.18 MB, free: 0.6289 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.002255/0.002255, allocations: 207 kB / 24.46 MB, free: 3.902 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.503/1.503, allocations: 230.5 MB / 258.1 MB, free: 8.141 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema") translateModel(Modelica.Blocks.Examples.DemonstrateSignalExtrema,tolerance=1e-06,outputFormat="empty",numberOfIntervals=150000,variableFilter="",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001933/0.001933, allocations: 71.83 kB / 378.7 MB, free: 2.898 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3339/0.3358, allocations: 53.33 MB / 432 MB, free: 7.363 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.003442/0.3393, allocations: 1.738 MB / 433.8 MB, free: 5.621 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00133/0.3406, allocations: 0.6778 MB / 434.5 MB, free: 4.938 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.035e-05/0.3407, allocations: 3.938 kB / 434.5 MB, free: 4.934 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00015/0.3408, allocations: 11.86 kB / 434.5 MB, free: 4.922 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.743e-05/0.3409, allocations: 27.72 kB / 434.5 MB, free: 4.895 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003442/0.3412, allocations: 83.83 kB / 434.6 MB, free: 4.812 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002287/0.3415, allocations: 155.5 kB / 434.7 MB, free: 4.66 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001363/0.3416, allocations: 21.44 kB / 434.8 MB, free: 4.637 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001723/0.3418, allocations: 67.83 kB / 434.8 MB, free: 4.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001277/0.3419, allocations: 67.67 kB / 434.9 MB, free: 4.504 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.174e-05/0.3419, allocations: 16 kB / 434.9 MB, free: 4.488 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.881e-05/0.342, allocations: 16 kB / 434.9 MB, free: 4.473 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.766e-05/0.3421, allocations: 39.83 kB / 435 MB, free: 4.434 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.459e-05/0.3421, allocations: 59.72 kB / 435 MB, free: 4.375 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002363/0.3424, allocations: 137 kB / 435.2 MB, free: 4.246 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.3424, allocations: 4 kB / 435.2 MB, free: 4.242 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3424, allocations: 4 kB / 435.2 MB, free: 4.238 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.556e-06/0.3424, allocations: 0 / 435.2 MB, free: 4.238 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.0008344/0.3432, allocations: 494.3 kB / 435.6 MB, free: 3.695 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.3433, allocations: 8.031 kB / 435.7 MB, free: 3.688 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002758/0.3435, allocations: 32.83 kB / 435.7 MB, free: 3.656 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003345/0.3439, allocations: 212.7 kB / 435.9 MB, free: 3.41 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.773e-05/0.3439, allocations: 12.38 kB / 435.9 MB, free: 3.398 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.227e-05/0.344, allocations: 20.12 kB / 435.9 MB, free: 3.379 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004708/0.3444, allocations: 157.5 kB / 436.1 MB, free: 3.219 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.3444, allocations: 0 / 436.1 MB, free: 3.219 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.281e-05/0.3445, allocations: 7.984 kB / 436.1 MB, free: 3.211 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.3445, allocations: 0 / 436.1 MB, free: 3.211 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003575/0.3448, allocations: 103.9 kB / 436.2 MB, free: 3.109 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007456/0.3456, allocations: 432.3 kB / 436.6 MB, free: 2.637 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006083/0.3462, allocations: 186.4 kB / 436.8 MB, free: 2.445 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003289/0.3465, allocations: 92.78 kB / 436.9 MB, free: 2.352 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.533e-05/0.3465, allocations: 3.938 kB / 436.9 MB, free: 2.348 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005037/0.347, allocations: 167.2 kB / 437 MB, free: 2.172 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 2.084e-06/0.347, allocations: 0 / 437 MB, free: 2.172 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.001089/0.3481, allocations: 349.3 kB / 437.4 MB, free: 1.824 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.826e-05/0.3482, allocations: 59.41 kB / 437.4 MB, free: 1.754 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001715/0.3484, allocations: 156.3 kB / 437.6 MB, free: 1.594 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.408e-05/0.3484, allocations: 29.7 kB / 437.6 MB, free: 1.559 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.035e-05/0.3485, allocations: 104.5 kB / 437.7 MB, free: 1.453 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.376e-05/0.3486, allocations: 47.61 kB / 437.8 MB, free: 1.406 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.721e-05/0.3486, allocations: 45.7 kB / 437.8 MB, free: 1.355 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002039/0.3488, allocations: 326.8 kB / 438.1 MB, free: 1.027 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001318/0.349, allocations: 51.91 kB / 438.2 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002006/0.3492, allocations: 112.5 kB / 438.3 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003217/0.3495, allocations: 168.4 kB / 438.5 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.542e-06/0.3495, allocations: 4 kB / 438.5 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004108/0.3499, allocations: 201.3 kB / 438.7 MB, free: 444 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.3499, allocations: 8 kB / 438.7 MB, free: 436 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.3499, allocations: 3.938 kB / 438.7 MB, free: 432 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.185e-05/0.35, allocations: 12.22 kB / 438.7 MB, free: 420 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000176/0.3501, allocations: 35.98 kB / 438.7 MB, free: 384 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.105e-05/0.3502, allocations: 7.922 kB / 438.7 MB, free: 376 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.509e-05/0.3502, allocations: 15.89 kB / 438.7 MB, free: 360 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.858e-05/0.3503, allocations: 12 kB / 438.8 MB, free: 348 kB / 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.0001336/0.3504, allocations: 135.5 kB / 438.9 MB, free: 204 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.877e-05/0.3504, allocations: 11.91 kB / 438.9 MB, free: 192 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007754/0.3512, allocations: 277.7 kB / 439.2 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.945e-06/0.3512, allocations: 7.938 kB / 439.2 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.223e-06/0.3512, allocations: 4 kB / 439.2 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.3512, allocations: 0 / 439.2 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001039/0.3523, allocations: 0.5724 MB / 439.8 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.596e-06/0.3523, allocations: 3.938 kB / 439.8 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001011/0.3524, allocations: 15.98 kB / 439.8 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.3524, allocations: 0 / 439.8 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.041e-05/0.3524, allocations: 12 kB / 439.8 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.3524, allocations: 0 / 439.8 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.3524, allocations: 0 / 439.8 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001054/0.3534, allocations: 472.2 kB / 440.3 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.81e-05/0.3535, allocations: 96.92 kB / 440.3 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.344e-05/0.3536, allocations: 8 kB / 440.4 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001898/0.3537, allocations: 28.02 kB / 440.4 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.041e-05/0.3538, allocations: 19.98 kB / 440.4 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.607e-05/0.3538, allocations: 4 kB / 440.4 MB, free: 14.59 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.305e-05/0.3539, allocations: 107.2 kB / 440.5 MB, free: 14.49 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3539, allocations: 0 / 440.5 MB, free: 14.49 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002804/0.3542, allocations: 28 kB / 440.5 MB, free: 14.46 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.0001534/0.3543, allocations: 107.9 kB / 440.6 MB, free: 14.35 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004922/0.3548, allocations: 167.7 kB / 440.8 MB, free: 14.18 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3548, allocations: 0 / 440.8 MB, free: 14.18 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002948/0.3551, allocations: 92.7 kB / 440.9 MB, free: 14.09 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002569/0.3554, allocations: 12.5 kB / 440.9 MB, free: 14.08 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008791/0.3563, allocations: 354.2 kB / 441.3 MB, free: 13.7 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003849/0.3566, allocations: 0.7123 MB / 442 MB, free: 12.96 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.233e-05/0.3567, allocations: 19.44 kB / 442 MB, free: 12.95 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3567, allocations: 0 / 442 MB, free: 12.95 MB / 350.1 MB Notification: Performance of Templates: time 0.003802/0.3605, allocations: 1.657 MB / 443.6 MB, free: 11.29 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema.sim & ./Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.348503336310387] Failed to read output from testmodel.py, exit status != 0: 0.36971870996057987 0.38368598600000003 0.038249700000000005 Calling exit ...