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.001368/0.001368, allocations: 110.3 kB / 20.22 MB, free: 1.812 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.001595/0.001595, allocations: 218.8 kB / 23.48 MB, free: 5.254 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.46/1.46, allocations: 230.5 MB / 257 MB, free: 8.266 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: "" <> buildModelFMU(Modelica.Blocks.Examples.DemonstrateSignalExtrema,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_DemonstrateSignalExtrema",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.DemonstrateSignalExtrema,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_DemonstrateSignalExtrema",fmuType="me",version="2.0",platforms={"static"}) [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.002172/0.002172, allocations: 71.89 kB / 377.1 MB, free: 3.617 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2908/0.293, allocations: 53.31 MB / 430.4 MB, free: 7.258 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.00322/0.2962, allocations: 1.757 MB / 432.1 MB, free: 5.496 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00134/0.2975, allocations: 0.6701 MB / 432.8 MB, free: 4.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001202/0.2976, allocations: 4 kB / 432.8 MB, free: 4.816 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001407/0.2978, allocations: 11.81 kB / 432.8 MB, free: 4.805 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.692e-05/0.2979, allocations: 23.78 kB / 432.8 MB, free: 4.781 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003874/0.2982, allocations: 87.77 kB / 432.9 MB, free: 4.695 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000255/0.2985, allocations: 143.6 kB / 433.1 MB, free: 4.555 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001306/0.2986, allocations: 25.42 kB / 433.1 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002081/0.2988, allocations: 75.7 kB / 433.2 MB, free: 4.453 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001313/0.299, allocations: 63.73 kB / 433.2 MB, free: 4.391 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.05e-05/0.299, allocations: 16 kB / 433.2 MB, free: 4.375 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.182e-05/0.2991, allocations: 23.94 kB / 433.3 MB, free: 4.352 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.823e-05/0.2991, allocations: 31.91 kB / 433.3 MB, free: 4.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.124e-05/0.2992, allocations: 63.7 kB / 433.4 MB, free: 4.258 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002465/0.2994, allocations: 138.9 kB / 433.5 MB, free: 4.129 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/0.2995, allocations: 4 kB / 433.5 MB, free: 4.125 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2995, allocations: 0 / 433.5 MB, free: 4.125 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.483e-05/0.2995, allocations: 0 / 433.5 MB, free: 4.125 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.0008064/0.3003, allocations: 491.2 kB / 434 MB, free: 3.586 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.3003, allocations: 16.03 kB / 434 MB, free: 3.57 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.541e-05/0.3004, allocations: 42.73 kB / 434 MB, free: 3.52 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002276/0.3006, allocations: 32.77 kB / 434.1 MB, free: 3.488 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003175/0.3009, allocations: 216.7 kB / 434.3 MB, free: 3.238 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.756e-05/0.3009, allocations: 8.375 kB / 434.3 MB, free: 3.23 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.351e-05/0.301, allocations: 15.94 kB / 434.3 MB, free: 3.215 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004427/0.3014, allocations: 164.8 kB / 434.5 MB, free: 3.051 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/0.3014, allocations: 0 / 434.5 MB, free: 3.051 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.508e-05/0.3015, allocations: 7.984 kB / 434.5 MB, free: 3.043 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.3015, allocations: 4 kB / 434.5 MB, free: 3.039 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000324/0.3018, allocations: 103.8 kB / 434.6 MB, free: 2.938 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007194/0.3025, allocations: 420.5 kB / 435 MB, free: 2.477 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005444/0.3031, allocations: 190.4 kB / 435.2 MB, free: 2.281 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002606/0.3033, allocations: 84.78 kB / 435.3 MB, free: 2.195 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.125e-05/0.3033, allocations: 4 kB / 435.3 MB, free: 2.191 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000423/0.3038, allocations: 171.2 kB / 435.4 MB, free: 2.012 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.513e-06/0.3038, allocations: 0 / 435.4 MB, free: 2.012 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0009878/0.3048, allocations: 349.3 kB / 435.8 MB, free: 1.664 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.931e-05/0.3048, allocations: 59.34 kB / 435.8 MB, free: 1.594 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001416/0.3049, allocations: 145.8 kB / 436 MB, free: 1.441 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.907e-05/0.305, allocations: 37.7 kB / 436 MB, free: 1.398 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.48e-05/0.305, allocations: 108.5 kB / 436.1 MB, free: 1.289 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.48e-05/0.3051, allocations: 35.69 kB / 436.1 MB, free: 1.254 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.961e-05/0.3052, allocations: 49.69 kB / 436.2 MB, free: 1.199 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.3053, allocations: 326.8 kB / 436.5 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001245/0.3054, allocations: 47.97 kB / 436.6 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001589/0.3056, allocations: 113.4 kB / 436.7 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002973/0.3059, allocations: 172.4 kB / 436.8 MB, free: 496 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.3059, allocations: 0 / 436.8 MB, free: 496 kB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003813/0.3063, allocations: 209.3 kB / 437 MB, free: 280 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/0.3063, allocations: 8 kB / 437.1 MB, free: 272 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/0.3063, allocations: 7.938 kB / 437.1 MB, free: 264 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.799e-05/0.3063, allocations: 7.938 kB / 437.1 MB, free: 256 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001746/0.3065, allocations: 39.92 kB / 437.1 MB, free: 216 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.156e-05/0.3065, allocations: 7.984 kB / 437.1 MB, free: 208 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.78e-05/0.3066, allocations: 20.17 kB / 437.1 MB, free: 188 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.169e-05/0.3066, allocations: 12 kB / 437.1 MB, free: 176 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.0001259/0.3068, allocations: 131.5 kB / 437.3 MB, free: 36 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.047e-05/0.3068, allocations: 15.91 kB / 437.3 MB, free: 20 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006978/0.3075, allocations: 284.7 kB / 437.6 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.3075, allocations: 0 / 437.6 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.3075, allocations: 0 / 437.6 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.3075, allocations: 4 kB / 437.6 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009718/0.3085, allocations: 0.5646 MB / 438.1 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.3085, allocations: 3.984 kB / 438.1 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001026/0.3086, allocations: 12 kB / 438.2 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.3086, allocations: 0 / 438.2 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.213e-05/0.3086, allocations: 15.92 kB / 438.2 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.3086, allocations: 0 / 438.2 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.3086, allocations: 0 / 438.2 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001028/0.3096, allocations: 478.5 kB / 438.6 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.586e-05/0.3097, allocations: 93.03 kB / 438.7 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.819e-05/0.3097, allocations: 8 kB / 438.7 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001752/0.3099, allocations: 23.97 kB / 438.8 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.299e-05/0.31, allocations: 11.98 kB / 438.8 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.762e-05/0.31, allocations: 11.92 kB / 438.8 MB, free: 14.44 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.713e-05/0.3101, allocations: 113.2 kB / 438.9 MB, free: 14.33 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3101, allocations: 0 / 438.9 MB, free: 14.33 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002912/0.3104, allocations: 31.94 kB / 438.9 MB, free: 14.3 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.001224/0.3116, allocations: 0.9772 MB / 439.9 MB, free: 13.3 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004661/0.3121, allocations: 163.8 kB / 440.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.3121, allocations: 0 / 440.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002391/0.3123, allocations: 83.88 kB / 440.1 MB, free: 13.05 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002525/0.3126, allocations: 15.97 kB / 440.2 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002669/0.3152, allocations: 1.962 MB / 442.1 MB, free: 10.94 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003666/0.3156, allocations: 0.7086 MB / 442.8 MB, free: 10.2 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.263e-05/0.3156, allocations: 17.06 kB / 442.8 MB, free: 10.19 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.806e-05/0.3157, allocations: 43.3 kB / 442.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of SimCode: time 3.8e-07/0.3157, allocations: 0 / 442.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02813/0.3439, allocations: 2.782 MB / 445.7 MB, free: 7.445 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.123/8.467, allocations: 14.72 kB / 445.7 MB, free: 7.441 MB / 350.1 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_DemonstrateSignalExtrema_fmu --startTime=0 --stopTime=1.5 --stepSize=1e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_DemonstrateSignalExtrema.fmu > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.717013054993004] Failed to read output from testmodel.py, exit status != 0: 8.535238421987742 8.550512359 8.247931157 Calling exit ...