Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001486/0.001486, allocations: 111 kB / 21.18 MB, free: 0.6758 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002105/0.002105, allocations: 206.6 kB / 24.47 MB, free: 3.977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 2.089/2.089, allocations: 230.6 MB / 258.3 MB, free: 7.789 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.DemonstrateSignalExtrema,tolerance=1e-06,outputFormat="mat",numberOfIntervals=150000,variableFilter="time|signalExtrema1.y_min|signalExtrema1.y_max|signalExtrema1.t_min|signalExtrema1.t_max|signalExtrema2.y_min|signalExtrema2.y_max|signalExtrema2.t_min|signalExtrema2.t_max",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema") translateModel(Modelica.Blocks.Examples.DemonstrateSignalExtrema,tolerance=1e-06,outputFormat="mat",numberOfIntervals=150000,variableFilter="time|signalExtrema1.y_min|signalExtrema1.y_max|signalExtrema1.t_min|signalExtrema1.t_max|signalExtrema2.y_min|signalExtrema2.y_max|signalExtrema2.t_min|signalExtrema2.t_max",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002181/0.002181, allocations: 47.92 kB / 379 MB, free: 2.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3664/0.3686, allocations: 53.36 MB / 432.3 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.00439/0.373, allocations: 1.692 MB / 434 MB, free: 5.023 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001803/0.3748, allocations: 0.6388 MB / 434.6 MB, free: 4.379 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001067/0.3749, allocations: 0 / 434.6 MB, free: 4.379 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001649/0.3751, allocations: 15.81 kB / 434.7 MB, free: 4.363 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.874e-05/0.3752, allocations: 19.78 kB / 434.7 MB, free: 4.344 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004659/0.3756, allocations: 83.78 kB / 434.8 MB, free: 4.262 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003089/0.3759, allocations: 155.5 kB / 434.9 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001757/0.3761, allocations: 25.42 kB / 434.9 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002189/0.3763, allocations: 63.83 kB / 435 MB, free: 4.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001587/0.3765, allocations: 67.73 kB / 435.1 MB, free: 3.953 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.88e-05/0.3765, allocations: 19.94 kB / 435.1 MB, free: 3.934 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.871e-05/0.3766, allocations: 20 kB / 435.1 MB, free: 3.914 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.077e-05/0.3767, allocations: 39.89 kB / 435.1 MB, free: 3.875 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.141e-05/0.3768, allocations: 51.77 kB / 435.2 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003141/0.3771, allocations: 138.3 kB / 435.3 MB, free: 3.695 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.3771, allocations: 0 / 435.3 MB, free: 3.695 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.3771, allocations: 0 / 435.3 MB, free: 3.695 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.464e-06/0.3771, allocations: 0 / 435.3 MB, free: 3.695 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.001044/0.3782, allocations: 417.2 kB / 435.7 MB, free: 3.246 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.484e-05/0.3782, allocations: 8.031 kB / 435.7 MB, free: 3.238 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003871/0.3786, allocations: 44.81 kB / 435.8 MB, free: 3.195 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000384/0.379, allocations: 150.9 kB / 435.9 MB, free: 3.023 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.828e-05/0.379, allocations: 12.38 kB / 436 MB, free: 3.012 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.944e-05/0.3791, allocations: 20.11 kB / 436 MB, free: 2.992 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006751/0.3798, allocations: 165.5 kB / 436.1 MB, free: 2.824 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.3798, allocations: 4 kB / 436.1 MB, free: 2.82 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.581e-05/0.3798, allocations: 0 / 436.1 MB, free: 2.82 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.377e-05/0.3798, allocations: 4 kB / 436.1 MB, free: 2.816 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005501/0.3804, allocations: 99.89 kB / 436.2 MB, free: 2.719 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009159/0.3813, allocations: 344.1 kB / 436.6 MB, free: 2.352 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008644/0.3821, allocations: 178.4 kB / 436.7 MB, free: 2.168 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004465/0.3826, allocations: 92.78 kB / 436.8 MB, free: 2.074 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.555e-05/0.3826, allocations: 4 kB / 436.8 MB, free: 2.07 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006367/0.3833, allocations: 163.3 kB / 437 MB, free: 1.898 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.964e-06/0.3833, allocations: 0 / 437 MB, free: 1.898 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.00161/0.3849, allocations: 360.2 kB / 437.4 MB, free: 1.543 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.394e-05/0.3849, allocations: 63.41 kB / 437.4 MB, free: 1.469 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001925/0.3851, allocations: 148.7 kB / 437.6 MB, free: 1.316 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.841e-05/0.3852, allocations: 33.7 kB / 437.6 MB, free: 1.277 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001071/0.3853, allocations: 108.5 kB / 437.7 MB, free: 1.168 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.211e-05/0.3853, allocations: 43.69 kB / 437.7 MB, free: 1.125 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000104/0.3854, allocations: 41.7 kB / 437.8 MB, free: 1.078 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001939/0.3856, allocations: 330.8 kB / 438.1 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001814/0.3858, allocations: 43.97 kB / 438.1 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002623/0.3861, allocations: 116.5 kB / 438.3 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004602/0.3865, allocations: 168.4 kB / 438.4 MB, free: 372 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.312e-06/0.3865, allocations: 4 kB / 438.4 MB, free: 368 kB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006077/0.3872, allocations: 205.3 kB / 438.6 MB, free: 156 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.385e-05/0.3872, allocations: 8 kB / 438.6 MB, free: 148 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.3872, allocations: 0 / 438.6 MB, free: 148 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.699e-05/0.3872, allocations: 4 kB / 438.6 MB, free: 144 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002683/0.3875, allocations: 39.91 kB / 438.7 MB, free: 104 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.466e-05/0.3875, allocations: 8.156 kB / 438.7 MB, free: 96 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001617/0.3877, allocations: 23.89 kB / 438.7 MB, free: 72 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.444e-05/0.3877, allocations: 8 kB / 438.7 MB, free: 64 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.000202/0.3879, allocations: 139.5 kB / 438.9 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.464e-05/0.3879, allocations: 11.91 kB / 438.9 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00114/0.3891, allocations: 282.2 kB / 439.1 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.3891, allocations: 0 / 439.1 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.947e-06/0.3891, allocations: 3.938 kB / 439.1 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.3891, allocations: 4 kB / 439.2 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001426/0.3905, allocations: 0.5019 MB / 439.7 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.3905, allocations: 0 / 439.7 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001637/0.3907, allocations: 19.92 kB / 439.7 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.3907, allocations: 0 / 439.7 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.451e-05/0.3907, allocations: 7.938 kB / 439.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.866e-06/0.3907, allocations: 8 kB / 439.7 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.3907, allocations: 0 / 439.7 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001621/0.3924, allocations: 471.2 kB / 440.1 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.724e-05/0.3924, allocations: 11.94 kB / 440.2 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.44e-05/0.3924, allocations: 12 kB / 440.2 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000321/0.3928, allocations: 39.94 kB / 440.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.09e-05/0.3928, allocations: 11.98 kB / 440.2 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.874e-05/0.3929, allocations: 7.984 kB / 440.2 MB, free: 14.48 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001123/0.393, allocations: 107.2 kB / 440.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.393, allocations: 0 / 440.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005398/0.3935, allocations: 31.94 kB / 440.4 MB, free: 14.35 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.0001768/0.3937, allocations: 108.8 kB / 440.5 MB, free: 14.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006989/0.3944, allocations: 170.5 kB / 440.6 MB, free: 14.07 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.3944, allocations: 0 / 440.6 MB, free: 14.07 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003925/0.3948, allocations: 88.44 kB / 440.7 MB, free: 13.98 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004132/0.3952, allocations: 18.48 kB / 440.7 MB, free: 13.97 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001129/0.3963, allocations: 328.7 kB / 441.1 MB, free: 13.62 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001248/0.3965, allocations: 97.88 kB / 441.2 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.378e-05/0.3965, allocations: 13.08 kB / 441.2 MB, free: 13.49 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.658e-05/0.3966, allocations: 19.38 kB / 441.2 MB, free: 13.47 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3966, allocations: 0 / 441.2 MB, free: 13.47 MB / 350.1 MB Notification: Performance of Templates: time 0.006209/0.4028, allocations: 1.355 MB / 442.5 MB, free: 12.14 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 7.018393096994259] Failed to read output from testmodel.py, exit status != 0: ['time', 'signalExtrema1.y_min', 'signalExtrema1.y_max', 'signalExtrema1.t_min', 'signalExtrema1.t_max', 'signalExtrema2.y_min', 'signalExtrema2.y_max', 'signalExtrema2.t_min', 'signalExtrema2.t_max'] 0.425089417010895 0.451307349 0.066261867 Calling exit ...