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.001343/0.001343, allocations: 105.1 kB / 21.23 MB, free: 0.6562 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.00155/0.00155, allocations: 213.9 kB / 24.54 MB, free: 4.016 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.498/1.498, allocations: 230.6 MB / 258.3 MB, free: 8.078 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.003026/0.003026, allocations: 64.55 kB / 378.5 MB, free: 3.191 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3089/0.3119, allocations: 53.37 MB / 431.9 MB, free: 6.918 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.003525/0.3154, allocations: 1.751 MB / 433.7 MB, free: 5.164 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001511/0.317, allocations: 0.6739 MB / 434.3 MB, free: 4.484 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001339/0.3171, allocations: 4 kB / 434.3 MB, free: 4.48 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001437/0.3172, allocations: 19.81 kB / 434.4 MB, free: 4.461 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.217e-05/0.3173, allocations: 15.8 kB / 434.4 MB, free: 4.445 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003952/0.3177, allocations: 87.77 kB / 434.5 MB, free: 4.359 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002629/0.318, allocations: 151.5 kB / 434.6 MB, free: 4.211 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001307/0.3181, allocations: 21.62 kB / 434.6 MB, free: 4.184 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002136/0.3183, allocations: 67.83 kB / 434.7 MB, free: 4.117 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001485/0.3185, allocations: 71.67 kB / 434.8 MB, free: 4.047 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.295e-05/0.3185, allocations: 16 kB / 434.8 MB, free: 4.031 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.337e-05/0.3186, allocations: 16 kB / 434.8 MB, free: 4.016 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.185e-05/0.3186, allocations: 39.89 kB / 434.8 MB, free: 3.977 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.663e-05/0.3187, allocations: 55.73 kB / 434.9 MB, free: 3.922 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002482/0.3189, allocations: 148.2 kB / 435 MB, free: 3.785 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.319, allocations: 0 / 435 MB, free: 3.785 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.319, allocations: 0 / 435 MB, free: 3.785 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.716e-06/0.319, allocations: 0 / 435 MB, free: 3.785 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.0008009/0.3198, allocations: 417.2 kB / 435.4 MB, free: 3.336 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.3198, allocations: 16.03 kB / 435.5 MB, free: 3.32 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.005e-05/0.3199, allocations: 42.67 kB / 435.5 MB, free: 3.27 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000265/0.3201, allocations: 32.83 kB / 435.5 MB, free: 3.238 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004002/0.3205, allocations: 162.8 kB / 435.7 MB, free: 3.055 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.77e-05/0.3206, allocations: 8.375 kB / 435.7 MB, free: 3.047 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.984e-05/0.3206, allocations: 11.94 kB / 435.7 MB, free: 3.035 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004413/0.3211, allocations: 172.1 kB / 435.9 MB, free: 2.863 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/0.3211, allocations: 0 / 435.9 MB, free: 2.863 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.73e-05/0.3211, allocations: 0 / 435.9 MB, free: 2.863 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.3211, allocations: 4 kB / 435.9 MB, free: 2.859 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003261/0.3214, allocations: 95.91 kB / 436 MB, free: 2.766 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000747/0.3222, allocations: 399.5 kB / 436.4 MB, free: 2.332 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005517/0.3227, allocations: 194.4 kB / 436.6 MB, free: 2.133 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002546/0.323, allocations: 80.78 kB / 436.6 MB, free: 2.051 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.615e-05/0.323, allocations: 4 kB / 436.6 MB, free: 2.047 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004296/0.3234, allocations: 187.1 kB / 436.8 MB, free: 1.852 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.773e-06/0.3234, allocations: 0 / 436.8 MB, free: 1.852 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0009393/0.3244, allocations: 340.5 kB / 437.1 MB, free: 1.516 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.621e-05/0.3244, allocations: 63.33 kB / 437.2 MB, free: 1.441 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001324/0.3246, allocations: 147.8 kB / 437.4 MB, free: 1.289 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.116e-05/0.3246, allocations: 33.7 kB / 437.4 MB, free: 1.25 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.858e-05/0.3247, allocations: 108.5 kB / 437.5 MB, free: 1.141 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.618e-05/0.3247, allocations: 39.69 kB / 437.5 MB, free: 1.102 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.027e-05/0.3248, allocations: 45.7 kB / 437.6 MB, free: 1.051 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001628/0.3249, allocations: 326.8 kB / 437.9 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001189/0.3251, allocations: 47.97 kB / 437.9 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001662/0.3252, allocations: 112.5 kB / 438.1 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003012/0.3255, allocations: 176.4 kB / 438.2 MB, free: 340 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.3255, allocations: 0 / 438.2 MB, free: 340 kB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003848/0.3259, allocations: 205.3 kB / 438.4 MB, free: 128 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/0.3259, allocations: 11.98 kB / 438.4 MB, free: 116 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-06/0.3259, allocations: 0 / 438.4 MB, free: 116 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.803e-05/0.326, allocations: 7.938 kB / 438.4 MB, free: 108 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001814/0.3261, allocations: 35.92 kB / 438.5 MB, free: 72 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.828e-06/0.3262, allocations: 4 kB / 438.5 MB, free: 68 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001107/0.3263, allocations: 32.09 kB / 438.5 MB, free: 36 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.483e-05/0.3263, allocations: 7.984 kB / 438.5 MB, free: 28 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.0001396/0.3264, allocations: 131.6 kB / 438.7 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.644e-05/0.3264, allocations: 11.91 kB / 438.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006949/0.3271, allocations: 282.1 kB / 438.9 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.3271, allocations: 3.938 kB / 438.9 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.3271, allocations: 0 / 438.9 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.3272, allocations: 3.984 kB / 438.9 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009649/0.3281, allocations: 0.548 MB / 439.5 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.3281, allocations: 0 / 439.5 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.964e-05/0.3282, allocations: 15.98 kB / 439.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.3282, allocations: 0 / 439.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.171e-05/0.3282, allocations: 11.98 kB / 439.5 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.3282, allocations: 0 / 439.5 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.3282, allocations: 0 / 439.5 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009846/0.3292, allocations: 473.9 kB / 440 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.945e-05/0.3293, allocations: 11.94 kB / 440 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.387e-05/0.3293, allocations: 11.98 kB / 440 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001821/0.3295, allocations: 27.97 kB / 440 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.338e-05/0.3295, allocations: 11.92 kB / 440 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.001e-05/0.3295, allocations: 11.98 kB / 440.1 MB, free: 14.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.836e-05/0.3296, allocations: 106.3 kB / 440.2 MB, free: 14.31 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3296, allocations: 7.938 kB / 440.2 MB, free: 14.3 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002893/0.3299, allocations: 35.92 kB / 440.2 MB, free: 14.27 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.0012/0.3311, allocations: 0.9699 MB / 441.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000437/0.3315, allocations: 168 kB / 441.3 MB, free: 13.11 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.3315, allocations: 0 / 441.3 MB, free: 13.11 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002423/0.3318, allocations: 79.94 kB / 441.4 MB, free: 13.03 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002355/0.332, allocations: 17.62 kB / 441.4 MB, free: 13.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002661/0.3347, allocations: 1.958 MB / 443.4 MB, free: 10.92 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004056/0.3351, allocations: 0.7084 MB / 444.1 MB, free: 10.19 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.008e-05/0.3351, allocations: 17.06 kB / 444.1 MB, free: 10.17 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.584e-05/0.3352, allocations: 39.42 kB / 444.2 MB, free: 10.13 MB / 350.1 MB Notification: Performance of SimCode: time 3.9e-07/0.3352, allocations: 0 / 444.2 MB, free: 10.13 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02951/0.3647, allocations: 2.861 MB / 447 MB, free: 7.359 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.416/8.78, allocations: 6.719 kB / 447 MB, free: 7.359 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 -r=Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema_res.mat --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: 11.338455223012716] 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'] 8.854443293996155 8.875512438 8.552794565 Calling exit ...