Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.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.001425/0.001425, allocations: 108.4 kB / 21.17 MB, free: 0.7852 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.001526/0.001526, allocations: 217.3 kB / 24.47 MB, free: 4.359 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.563/1.563, allocations: 230.5 MB / 258.1 MB, free: 8.137 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.DemonstrateContinuousSignalExtrema,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema") translateModel(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema") [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.002214/0.002214, allocations: 79.81 kB / 378.7 MB, free: 2.902 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3141/0.3163, allocations: 53.31 MB / 432 MB, free: 7.395 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema): time 0.0035/0.3198, allocations: 2.05 MB / 434.1 MB, free: 5.336 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001475/0.3213, allocations: 0.748 MB / 434.8 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001062/0.3214, allocations: 7.875 kB / 434.8 MB, free: 4.574 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.2e-05/0.3215, allocations: 23.72 kB / 434.9 MB, free: 4.551 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001657/0.3216, allocations: 51.52 kB / 434.9 MB, free: 4.5 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004444/0.3221, allocations: 147.7 kB / 435.1 MB, free: 4.355 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004445/0.3225, allocations: 347.2 kB / 435.4 MB, free: 4.016 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000184/0.3227, allocations: 48.77 kB / 435.4 MB, free: 3.965 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003255/0.323, allocations: 159.4 kB / 435.6 MB, free: 3.809 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002512/0.3233, allocations: 159.4 kB / 435.8 MB, free: 3.652 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.348e-05/0.3233, allocations: 32 kB / 435.8 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001064/0.3235, allocations: 36 kB / 435.8 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.724e-05/0.3235, allocations: 75.73 kB / 435.9 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001724/0.3237, allocations: 139.3 kB / 436 MB, free: 3.375 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004402/0.3242, allocations: 304.3 kB / 436.3 MB, free: 3.082 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.3242, allocations: 4 kB / 436.3 MB, free: 3.078 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3242, allocations: 4 kB / 436.3 MB, free: 3.074 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.045e-05/0.3242, allocations: 0 / 436.3 MB, free: 3.074 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001716/0.3259, allocations: 0.7389 MB / 437.1 MB, free: 2.27 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.3259, allocations: 12.03 kB / 437.1 MB, free: 2.258 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003576/0.3263, allocations: 60.72 kB / 437.1 MB, free: 2.199 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003982/0.3267, allocations: 260.9 kB / 437.4 MB, free: 1.902 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.571e-05/0.3267, allocations: 20.38 kB / 437.4 MB, free: 1.883 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.716e-05/0.3268, allocations: 36.36 kB / 437.5 MB, free: 1.848 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009434/0.3277, allocations: 355.1 kB / 437.8 MB, free: 1.488 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.3277, allocations: 0 / 437.8 MB, free: 1.488 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.86e-05/0.3278, allocations: 15.92 kB / 437.8 MB, free: 1.473 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.824e-06/0.3278, allocations: 8 kB / 437.8 MB, free: 1.465 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008539/0.3286, allocations: 243.8 kB / 438.1 MB, free: 1.227 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001277/0.3299, allocations: 0.6994 MB / 438.8 MB, free: 484 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001011/0.3309, allocations: 339.7 kB / 439.1 MB, free: 128 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005977/0.3315, allocations: 189.6 kB / 439.3 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.524e-05/0.3316, allocations: 3.984 kB / 439.3 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009287/0.3325, allocations: 394.8 kB / 439.7 MB, free: 15.53 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 4.288e-06/0.3325, allocations: 8 kB / 439.7 MB, free: 15.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=41): time 0.002134/0.3346, allocations: 0.7387 MB / 440.4 MB, free: 14.78 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.174e-05/0.3347, allocations: 75.33 kB / 440.5 MB, free: 14.69 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001989/0.3349, allocations: 195.8 kB / 440.7 MB, free: 14.49 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.643e-05/0.335, allocations: 45.7 kB / 440.7 MB, free: 14.44 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001163/0.3351, allocations: 133 kB / 440.9 MB, free: 14.31 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001229/0.3352, allocations: 119.1 kB / 441 MB, free: 14.19 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001452/0.3354, allocations: 98.17 kB / 441.1 MB, free: 14.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001958/0.3356, allocations: 346.8 kB / 441.4 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004603/0.336, allocations: 157 kB / 441.6 MB, free: 13.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005108/0.3365, allocations: 237.2 kB / 441.8 MB, free: 13.33 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000918/0.3374, allocations: 440.1 kB / 442.2 MB, free: 12.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.3374, allocations: 8 kB / 442.2 MB, free: 12.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001303/0.3388, allocations: 0.5606 MB / 442.8 MB, free: 12.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.113e-05/0.3388, allocations: 93.31 kB / 442.9 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.133e-05/0.3388, allocations: 8 kB / 442.9 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.231e-05/0.3389, allocations: 4 kB / 442.9 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003752/0.3392, allocations: 75.83 kB / 443 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.251e-05/0.3393, allocations: 7.984 kB / 443 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000369/0.3396, allocations: 75.62 kB / 443.1 MB, free: 11.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.602e-05/0.3397, allocations: 16 kB / 443.1 MB, free: 11.97 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 46 (signalExtrema3.t_min,$PRE.signalExtrema3.t_min,signalExtrema3.t_max,$PRE.signalExtrema3.t_max,signalExtrema2.t_min,$PRE.signalExtrema2.t_min,signalExtrema2.t_max,$PRE.signalExtrema2.t_max,signalExtrema1.t_min,$PRE.signalExtrema1.t_min,signalExtrema1.t_max,$PRE.signalExtrema1.t_max,$whenCondition5,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,sawTooth.count,$PRE.sawTooth.count,sawTooth.T_start,$PRE.sawTooth.T_start,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,signalExtrema3.y_max,$PRE.signalExtrema3.y_max,signalExtrema3.y_min,$PRE.signalExtrema3.y_min,sawTooth1.count,$PRE.sawTooth1.count,sawTooth1.T_start,$PRE.sawTooth1.T_start,pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 3 * 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.0002251/0.3399, allocations: 169.6 kB / 443.2 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.889e-05/0.3399, allocations: 27.84 kB / 443.3 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.468e-05/0.34, allocations: 38.98 kB / 443.3 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/0.34, allocations: 4 kB / 443.3 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/0.34, allocations: 0 / 443.3 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.3401, allocations: 0 / 443.3 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000397/0.3405, allocations: 353.1 kB / 443.6 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.3405, allocations: 0 / 443.6 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002891/0.3407, allocations: 51.89 kB / 443.7 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.3407, allocations: 0 / 443.7 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.054e-05/0.3408, allocations: 19.97 kB / 443.7 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.3408, allocations: 0 / 443.7 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.3408, allocations: 0 / 443.7 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002155/0.3429, allocations: 0.8566 MB / 444.6 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.869e-05/0.343, allocations: 104.9 kB / 444.7 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.516e-05/0.3431, allocations: 16.03 kB / 444.7 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004031/0.3435, allocations: 55.92 kB / 444.7 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001505/0.3437, allocations: 47.94 kB / 444.8 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.259e-05/0.3437, allocations: 27.98 kB / 444.8 MB, free: 10.12 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001421/0.3439, allocations: 141.5 kB / 445 MB, free: 9.984 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3439, allocations: 0 / 445 MB, free: 9.984 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003522/0.3442, allocations: 79.98 kB / 445 MB, free: 9.906 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (signalExtrema3.x,signalExtrema1.x,signalExtrema2.x) * Number of discrete variables: 28 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,pulse.T_start,pulse.count,sawTooth1.T_start,sawTooth1.count,signalExtrema3.y_min,signalExtrema3.y_max,signalExtrema3.t_min,signalExtrema3.t_max,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,sawTooth.T_start,sawTooth.count,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: 18 (sawTooth.count,signalExtrema1.y_max,signalExtrema1.t_max,signalExtrema1.y_min,signalExtrema1.t_min,signalExtrema1.u,signalExtrema2.y_max,signalExtrema2.t_max,signalExtrema2.y_min,signalExtrema2.t_min,signalExtrema2.u,pulse.count,sawTooth1.count,signalExtrema3.y_max,signalExtrema3.t_max,signalExtrema3.y_min,signalExtrema3.t_min,signalExtrema3.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 18 * 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.0002282/0.3444, allocations: 133.3 kB / 445.2 MB, free: 9.766 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001382/0.3458, allocations: 0.5835 MB / 445.8 MB, free: 9.145 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3458, allocations: 0 / 445.8 MB, free: 9.145 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006599/0.3465, allocations: 239.9 kB / 446 MB, free: 8.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003765/0.3469, allocations: 36.06 kB / 446 MB, free: 8.875 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001334/0.3482, allocations: 0.559 MB / 446.6 MB, free: 8.289 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004216/0.3486, allocations: 0.7527 MB / 447.3 MB, free: 7.504 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001331/0.3488, allocations: 38.94 kB / 447.4 MB, free: 7.469 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.518e-05/0.3489, allocations: 39.36 kB / 447.4 MB, free: 7.43 MB / 350.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3489, allocations: 0 / 447.4 MB, free: 7.43 MB / 350.1 MB Notification: Performance of Templates: time 0.009494/0.3583, allocations: 4.423 MB / 451.8 MB, free: 3.02 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.sim & ./Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.893358862027526] Failed to read output from testmodel.py, exit status != 0: 0.3671610769815743 0.38236987799999994 0.054958288 Calling exit ...