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.001315/0.001315, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001458/0.001458, allocations: 214.7 kB / 24.52 MB, free: 3.914 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 1.381/1.381, allocations: 230.6 MB / 258.3 MB, free: 7.773 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: "" <> buildModelFMU(Modelica.Blocks.Examples.DemonstrateSignalExtrema,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_DemonstrateSignalExtrema",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.DemonstrateSignalExtrema,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_DemonstrateSignalExtrema",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001539/0.001539, allocations: 39.94 kB / 378.5 MB, free: 2.977 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2495/0.251, allocations: 53.36 MB / 431.9 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.002864/0.2539, allocations: 1.7 MB / 433.6 MB, free: 4.938 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0011/0.255, allocations: 0.6272 MB / 434.2 MB, free: 4.305 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.266e-05/0.2551, allocations: 7.938 kB / 434.2 MB, free: 4.297 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000115/0.2552, allocations: 11.86 kB / 434.2 MB, free: 4.285 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.395e-05/0.2552, allocations: 15.8 kB / 434.2 MB, free: 4.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003065/0.2555, allocations: 91.77 kB / 434.3 MB, free: 4.18 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002007/0.2557, allocations: 147.5 kB / 434.4 MB, free: 4.035 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001131/0.2558, allocations: 29.41 kB / 434.5 MB, free: 4.004 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001615/0.256, allocations: 67.78 kB / 434.5 MB, free: 3.938 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001022/0.2561, allocations: 67.73 kB / 434.6 MB, free: 3.871 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.776e-05/0.2561, allocations: 12 kB / 434.6 MB, free: 3.859 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.721e-05/0.2562, allocations: 19.98 kB / 434.6 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.523e-05/0.2562, allocations: 35.91 kB / 434.7 MB, free: 3.805 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.593e-05/0.2563, allocations: 55.77 kB / 434.7 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001976/0.2565, allocations: 137.7 kB / 434.9 MB, free: 3.617 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.197e-06/0.2565, allocations: 0 / 434.9 MB, free: 3.617 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.286e-06/0.2565, allocations: 7.984 kB / 434.9 MB, free: 3.609 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.636e-06/0.2565, allocations: 0 / 434.9 MB, free: 3.609 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.0006858/0.2572, allocations: 417.2 kB / 435.3 MB, free: 3.16 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.526e-05/0.2573, allocations: 8.031 kB / 435.3 MB, free: 3.152 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.388e-05/0.2573, allocations: 4.188 kB / 435.3 MB, free: 3.148 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.381e-05/0.2573, allocations: 42.73 kB / 435.3 MB, free: 3.098 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002325/0.2575, allocations: 32.81 kB / 435.4 MB, free: 3.066 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002508/0.2578, allocations: 162.8 kB / 435.5 MB, free: 2.883 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.739e-05/0.2578, allocations: 12.12 kB / 435.5 MB, free: 2.871 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.865e-05/0.2579, allocations: 12 kB / 435.5 MB, free: 2.859 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004274/0.2583, allocations: 157.5 kB / 435.7 MB, free: 2.699 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.684e-06/0.2583, allocations: 0 / 435.7 MB, free: 2.699 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.522e-05/0.2583, allocations: 11.98 kB / 435.7 MB, free: 2.688 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.947e-06/0.2583, allocations: 3.938 kB / 435.7 MB, free: 2.684 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003334/0.2587, allocations: 103.8 kB / 435.8 MB, free: 2.582 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006613/0.2593, allocations: 359.7 kB / 436.2 MB, free: 2.188 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005416/0.2599, allocations: 186.4 kB / 436.3 MB, free: 1.996 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002747/0.2601, allocations: 88.78 kB / 436.4 MB, free: 1.906 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.685e-05/0.2602, allocations: 0 / 436.4 MB, free: 1.906 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000412/0.2606, allocations: 179.1 kB / 436.6 MB, free: 1.719 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.603e-06/0.2606, allocations: 0 / 436.6 MB, free: 1.719 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.001003/0.2616, allocations: 347 kB / 437 MB, free: 1.375 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.161e-05/0.2616, allocations: 63.33 kB / 437 MB, free: 1.301 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001345/0.2618, allocations: 149 kB / 437.2 MB, free: 1.148 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.374e-05/0.2618, allocations: 29.7 kB / 437.2 MB, free: 1.113 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.632e-05/0.2619, allocations: 108.5 kB / 437.3 MB, free: 1.004 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.154e-05/0.2619, allocations: 43.69 kB / 437.3 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.879e-05/0.262, allocations: 45.7 kB / 437.4 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001489/0.2621, allocations: 326.8 kB / 437.7 MB, free: 0.582 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001131/0.2622, allocations: 47.91 kB / 437.7 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001694/0.2624, allocations: 120.5 kB / 437.9 MB, free: 396 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002818/0.2627, allocations: 168.4 kB / 438 MB, free: 196 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.2627, allocations: 0 / 438 MB, free: 196 kB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003932/0.2631, allocations: 213.4 kB / 438.2 MB, free: 15.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.71e-05/0.2631, allocations: 8 kB / 438.2 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.2631, allocations: 3.938 kB / 438.2 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.719e-05/0.2631, allocations: 4 kB / 438.3 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001672/0.2633, allocations: 35.97 kB / 438.3 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.388e-05/0.2633, allocations: 11.94 kB / 438.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.428e-05/0.2634, allocations: 23.88 kB / 438.3 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.598e-05/0.2634, allocations: 8 kB / 438.3 MB, free: 15.88 MB / 350.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.000131/0.2635, allocations: 135.6 kB / 438.5 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.965e-05/0.2636, allocations: 11.91 kB / 438.5 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006964/0.2643, allocations: 282.1 kB / 438.7 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.081e-06/0.2643, allocations: 4 kB / 438.8 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.2643, allocations: 4 kB / 438.8 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.2643, allocations: 3.984 kB / 438.8 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009848/0.2653, allocations: 0.5312 MB / 439.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.2653, allocations: 0 / 439.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001037/0.2654, allocations: 19.98 kB / 439.3 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.2654, allocations: 0 / 439.3 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.266e-05/0.2654, allocations: 11.98 kB / 439.3 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.2654, allocations: 0 / 439.3 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.2654, allocations: 0 / 439.3 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001012/0.2664, allocations: 481.9 kB / 439.8 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.003e-05/0.2664, allocations: 19.83 kB / 439.8 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.066e-05/0.2665, allocations: 8 kB / 439.8 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001801/0.2667, allocations: 27.97 kB / 439.8 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.901e-05/0.2667, allocations: 19.97 kB / 439.9 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.513e-05/0.2667, allocations: 4 kB / 439.9 MB, free: 14.27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.76e-05/0.2668, allocations: 107.2 kB / 440 MB, free: 14.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2668, allocations: 0 / 440 MB, free: 14.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002823/0.2671, allocations: 35.94 kB / 440 MB, free: 14.12 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.001195/0.2683, allocations: 0.9792 MB / 441 MB, free: 13.12 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004686/0.2688, allocations: 163.5 kB / 441.2 MB, free: 12.96 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.2688, allocations: 128 / 441.2 MB, free: 12.96 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002403/0.269, allocations: 91.86 kB / 441.2 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002407/0.2692, allocations: 8 kB / 441.2 MB, free: 12.87 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00255/0.2718, allocations: 1.958 MB / 443.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.95e-05/0.2719, allocations: 97.61 kB / 443.3 MB, free: 10.65 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.737e-05/0.2719, allocations: 13.08 kB / 443.3 MB, free: 10.64 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.846e-05/0.272, allocations: 39.42 kB / 443.4 MB, free: 10.6 MB / 350.1 MB Notification: Performance of SimCode: time 7.21e-07/0.272, allocations: 0 / 443.4 MB, free: 10.6 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02373/0.2957, allocations: 3.038 MB / 446.4 MB, free: 7.707 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.67/10.97, allocations: 4.062 kB / 446.4 MB, free: 7.703 MB / 350.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Blocks_Examples_DemonstrateSignalExtrema_fmu --startTime=0 --stopTime=1.5 --stepSize=1e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Blocks_Examples_DemonstrateSignalExtrema.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.44353058305569] 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'] 11.125644753919914 11.149631885 10.888736216 Calling exit ...