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.001383/0.001383, allocations: 114 kB / 21.18 MB, free: 0.5898 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.001551/0.001551, allocations: 213.5 kB / 24.47 MB, free: 3.996 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.488/1.488, allocations: 230.4 MB / 258.1 MB, free: 8.152 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.002013/0.002013, allocations: 75.81 kB / 378.7 MB, free: 2.914 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.328/0.3301, allocations: 53.31 MB / 432 MB, free: 7.387 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema): time 0.003721/0.3338, allocations: 2.053 MB / 434.1 MB, free: 5.328 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001618/0.3354, allocations: 0.744 MB / 434.8 MB, free: 4.578 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001484/0.3355, allocations: 7.938 kB / 434.8 MB, free: 4.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.933e-05/0.3356, allocations: 23.73 kB / 434.9 MB, free: 4.547 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001908/0.3358, allocations: 47.52 kB / 434.9 MB, free: 4.5 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004933/0.3363, allocations: 147.7 kB / 435.1 MB, free: 4.355 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000458/0.3368, allocations: 355.1 kB / 435.4 MB, free: 4.008 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001571/0.3369, allocations: 48.73 kB / 435.5 MB, free: 3.957 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003227/0.3372, allocations: 151.5 kB / 435.6 MB, free: 3.809 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002252/0.3375, allocations: 171.4 kB / 435.8 MB, free: 3.641 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.944e-05/0.3375, allocations: 28 kB / 435.8 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001019/0.3376, allocations: 43.98 kB / 435.8 MB, free: 3.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.659e-05/0.3377, allocations: 63.8 kB / 435.9 MB, free: 3.508 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001601/0.3379, allocations: 139.3 kB / 436 MB, free: 3.371 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004508/0.3383, allocations: 304.7 kB / 436.3 MB, free: 3.078 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.3383, allocations: 0 / 436.3 MB, free: 3.078 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3383, allocations: 0 / 436.3 MB, free: 3.078 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.285e-05/0.3383, allocations: 0 / 436.3 MB, free: 3.078 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.001718/0.3401, allocations: 0.7428 MB / 437.1 MB, free: 2.27 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.556e-05/0.3401, allocations: 12.03 kB / 437.1 MB, free: 2.258 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003656/0.3405, allocations: 60.7 kB / 437.2 MB, free: 2.199 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004382/0.3409, allocations: 264.9 kB / 437.4 MB, free: 1.898 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.18e-05/0.3409, allocations: 24.36 kB / 437.4 MB, free: 1.875 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.589e-05/0.341, allocations: 24.38 kB / 437.5 MB, free: 1.852 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008698/0.3419, allocations: 367.1 kB / 437.8 MB, free: 1.48 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.332e-05/0.3419, allocations: 3.938 kB / 437.8 MB, free: 1.477 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.596e-05/0.3419, allocations: 4 kB / 437.8 MB, free: 1.473 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.756e-06/0.3419, allocations: 4 kB / 437.8 MB, free: 1.469 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008212/0.3428, allocations: 247.8 kB / 438.1 MB, free: 1.227 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001218/0.344, allocations: 0.7111 MB / 438.8 MB, free: 472 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009298/0.3449, allocations: 336.9 kB / 439.1 MB, free: 116 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005741/0.3455, allocations: 181.7 kB / 439.3 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.793e-05/0.3455, allocations: 8 kB / 439.3 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009232/0.3464, allocations: 390.8 kB / 439.7 MB, free: 15.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 2.895e-06/0.3464, allocations: 3.938 kB / 439.7 MB, free: 15.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=41): time 0.002085/0.3485, allocations: 0.7465 MB / 440.4 MB, free: 14.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.903e-05/0.3486, allocations: 79.23 kB / 440.5 MB, free: 14.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002241/0.3488, allocations: 199.8 kB / 440.7 MB, free: 14.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.81e-05/0.3489, allocations: 37.7 kB / 440.7 MB, free: 14.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001261/0.349, allocations: 137 kB / 440.9 MB, free: 14.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000117/0.3491, allocations: 115.1 kB / 441 MB, free: 14.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001588/0.3493, allocations: 94.23 kB / 441.1 MB, free: 14.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001836/0.3495, allocations: 338.8 kB / 441.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004581/0.3499, allocations: 157 kB / 441.6 MB, free: 13.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005064/0.3504, allocations: 241.2 kB / 441.8 MB, free: 13.33 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009118/0.3513, allocations: 440.1 kB / 442.2 MB, free: 12.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.3513, allocations: 3.938 kB / 442.2 MB, free: 12.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001203/0.3525, allocations: 0.5684 MB / 442.8 MB, free: 12.26 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.576e-05/0.3526, allocations: 93.09 kB / 442.9 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/0.3527, allocations: 0 / 442.9 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.474e-05/0.3527, allocations: 8 kB / 442.9 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003712/0.353, allocations: 80.03 kB / 443 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.141e-05/0.3531, allocations: 8 kB / 443 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003571/0.3534, allocations: 63.69 kB / 443 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.336e-05/0.3535, allocations: 27.98 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.0002262/0.3537, allocations: 165.6 kB / 443.2 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.752e-05/0.3538, allocations: 23.86 kB / 443.3 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.888e-05/0.3539, allocations: 38.98 kB / 443.3 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.374e-06/0.3539, allocations: 4 kB / 443.3 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.3539, allocations: 0 / 443.3 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.175e-06/0.3539, allocations: 3.984 kB / 443.3 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000414/0.3543, allocations: 353.1 kB / 443.6 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.3543, allocations: 0 / 443.6 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002986/0.3546, allocations: 51.89 kB / 443.7 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.917e-06/0.3546, allocations: 0 / 443.7 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.77e-05/0.3546, allocations: 11.98 kB / 443.7 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.719e-06/0.3547, allocations: 4 kB / 443.7 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.3547, allocations: 4 kB / 443.7 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002078/0.3567, allocations: 0.8526 MB / 444.6 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.968e-05/0.3568, allocations: 104.9 kB / 444.7 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.392e-05/0.3569, allocations: 19.94 kB / 444.7 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003625/0.3573, allocations: 63.97 kB / 444.8 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001459/0.3574, allocations: 47.94 kB / 444.8 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.491e-05/0.3575, allocations: 31.97 kB / 444.8 MB, free: 10.11 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001602/0.3576, allocations: 133.5 kB / 445 MB, free: 9.98 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3576, allocations: 0 / 445 MB, free: 9.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003753/0.358, allocations: 76 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.0002028/0.3582, allocations: 133.5 kB / 445.2 MB, free: 9.766 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001364/0.3596, allocations: 0.5876 MB / 445.8 MB, free: 9.141 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.3596, allocations: 0 / 445.8 MB, free: 9.141 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006302/0.3602, allocations: 231.5 kB / 446 MB, free: 8.914 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003558/0.3606, allocations: 39.91 kB / 446 MB, free: 8.875 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001406/0.362, allocations: 0.5882 MB / 446.6 MB, free: 8.254 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004346/0.3624, allocations: 0.7566 MB / 447.4 MB, free: 7.465 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001186/0.3625, allocations: 35.42 kB / 447.4 MB, free: 7.43 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3625, allocations: 0 / 447.4 MB, free: 7.43 MB / 350.1 MB Notification: Performance of Templates: time 0.007151/0.3697, allocations: 3.999 MB / 451.4 MB, free: 3.441 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 -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.562595957890153] Failed to read output from testmodel.py, exit status != 0: 0.3797071501612663 0.39450522200000004 0.052871907 Calling exit ...