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.001237/0.001237, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001392/0.001392, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.403/1.403, allocations: 230.6 MB / 258.3 MB, free: 8.023 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.001392/0.001392, allocations: 51.92 kB / 378.6 MB, free: 3.133 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2455/0.2468, allocations: 53.36 MB / 431.9 MB, free: 6.84 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.00291/0.2498, allocations: 1.751 MB / 433.7 MB, free: 5.086 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001301/0.2511, allocations: 0.6739 MB / 434.3 MB, free: 4.406 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001047/0.2512, allocations: 7.938 kB / 434.3 MB, free: 4.398 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001216/0.2513, allocations: 19.8 kB / 434.4 MB, free: 4.379 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.91e-05/0.2513, allocations: 15.8 kB / 434.4 MB, free: 4.363 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003504/0.2517, allocations: 87.77 kB / 434.5 MB, free: 4.277 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002413/0.2519, allocations: 147.6 kB / 434.6 MB, free: 4.133 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001306/0.2521, allocations: 21.62 kB / 434.6 MB, free: 4.105 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001689/0.2522, allocations: 71.7 kB / 434.7 MB, free: 4.035 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001116/0.2523, allocations: 67.73 kB / 434.8 MB, free: 3.969 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001138/0.2524, allocations: 16 kB / 434.8 MB, free: 3.953 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.968e-05/0.2525, allocations: 20 kB / 434.8 MB, free: 3.934 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.105e-05/0.2526, allocations: 39.89 kB / 434.8 MB, free: 3.895 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.551e-05/0.2526, allocations: 63.7 kB / 434.9 MB, free: 3.832 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002321/0.2529, allocations: 140.3 kB / 435 MB, free: 3.703 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.2529, allocations: 0 / 435 MB, free: 3.703 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2529, allocations: 0 / 435 MB, free: 3.703 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.47e-06/0.2529, allocations: 0 / 435 MB, free: 3.703 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.0007114/0.2536, allocations: 409.2 kB / 435.4 MB, free: 3.262 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/0.2536, allocations: 16.03 kB / 435.5 MB, free: 3.246 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.584e-05/0.2536, allocations: 192 / 435.5 MB, free: 3.246 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.829e-05/0.2537, allocations: 42.73 kB / 435.5 MB, free: 3.195 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002205/0.2539, allocations: 32.81 kB / 435.5 MB, free: 3.164 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002801/0.2542, allocations: 164.5 kB / 435.7 MB, free: 2.98 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.124e-05/0.2542, allocations: 12.12 kB / 435.7 MB, free: 2.969 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.33e-05/0.2543, allocations: 16 kB / 435.7 MB, free: 2.953 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004567/0.2547, allocations: 164 kB / 435.9 MB, free: 2.789 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.2547, allocations: 11.92 kB / 435.9 MB, free: 2.777 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.659e-05/0.2547, allocations: 0 / 435.9 MB, free: 2.777 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.2547, allocations: 3.938 kB / 435.9 MB, free: 2.773 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003479/0.2551, allocations: 111.8 kB / 436 MB, free: 2.664 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007808/0.2559, allocations: 387.6 kB / 436.4 MB, free: 2.242 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005708/0.2564, allocations: 182.4 kB / 436.6 MB, free: 2.055 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002801/0.2567, allocations: 88.78 kB / 436.6 MB, free: 1.965 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.579e-05/0.2567, allocations: 0 / 436.6 MB, free: 1.965 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004914/0.2572, allocations: 171.2 kB / 436.8 MB, free: 1.785 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.603e-06/0.2572, allocations: 0 / 436.8 MB, free: 1.785 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.001104/0.2583, allocations: 350.9 kB / 437.2 MB, free: 1.438 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.628e-05/0.2584, allocations: 67.28 kB / 437.2 MB, free: 1.359 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001354/0.2585, allocations: 147.5 kB / 437.4 MB, free: 1.207 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.584e-05/0.2586, allocations: 33.7 kB / 437.4 MB, free: 1.168 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.085e-05/0.2586, allocations: 108.5 kB / 437.5 MB, free: 1.059 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.755e-05/0.2587, allocations: 39.7 kB / 437.5 MB, free: 1.02 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.207e-05/0.2588, allocations: 45.69 kB / 437.6 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.2589, allocations: 326.8 kB / 437.9 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000123/0.259, allocations: 43.97 kB / 437.9 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001905/0.2592, allocations: 120.5 kB / 438.1 MB, free: 460 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000298/0.2595, allocations: 176.4 kB / 438.2 MB, free: 252 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.2595, allocations: 4 kB / 438.2 MB, free: 248 kB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003829/0.2599, allocations: 209.2 kB / 438.4 MB, free: 32 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.837e-05/0.2599, allocations: 4 kB / 438.4 MB, free: 28 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.177e-05/0.26, allocations: 7.938 kB / 438.5 MB, free: 20 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.473e-05/0.26, allocations: 4 kB / 438.5 MB, free: 16 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001841/0.2602, allocations: 36.25 kB / 438.5 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.047e-05/0.2602, allocations: 11.94 kB / 438.5 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.172e-05/0.2603, allocations: 19.89 kB / 438.5 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.752e-05/0.2603, allocations: 8 kB / 438.5 MB, free: 15.94 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.0001296/0.2604, allocations: 131.5 kB / 438.7 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.794e-05/0.2604, allocations: 15.91 kB / 438.7 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007241/0.2612, allocations: 280 kB / 439 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.071e-06/0.2612, allocations: 4 kB / 439 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.2612, allocations: 0 / 439 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.2612, allocations: 0 / 439 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009943/0.2622, allocations: 0.5441 MB / 439.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.2622, allocations: 0 / 439.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001/0.2623, allocations: 15.98 kB / 439.5 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.2623, allocations: 3.938 kB / 439.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.042e-05/0.2623, allocations: 7.984 kB / 439.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.2623, allocations: 0 / 439.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.2623, allocations: 4 kB / 439.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001056/0.2634, allocations: 473.7 kB / 440 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.212e-05/0.2634, allocations: 15.92 kB / 440 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.971e-05/0.2634, allocations: 8 kB / 440 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001858/0.2636, allocations: 27.97 kB / 440 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.308e-05/0.2637, allocations: 15.91 kB / 440.1 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.646e-05/0.2637, allocations: 8.062 kB / 440.1 MB, free: 14.33 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.128e-05/0.2638, allocations: 113.9 kB / 440.2 MB, free: 14.22 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2638, allocations: 0 / 440.2 MB, free: 14.22 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002911/0.264, allocations: 35.94 kB / 440.2 MB, free: 14.19 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.001231/0.2653, allocations: 0.9699 MB / 441.2 MB, free: 13.19 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004728/0.2657, allocations: 167.8 kB / 441.3 MB, free: 13.03 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.2658, allocations: 0 / 441.3 MB, free: 13.03 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002721/0.266, allocations: 87.84 kB / 441.4 MB, free: 12.94 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000241/0.2663, allocations: 10.81 kB / 441.4 MB, free: 12.93 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002679/0.2689, allocations: 1.955 MB / 443.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003654/0.2693, allocations: 0.7162 MB / 444.1 MB, free: 10.1 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.694e-05/0.2694, allocations: 13.08 kB / 444.1 MB, free: 10.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.981e-05/0.2694, allocations: 39.41 kB / 444.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2694, allocations: 0 / 444.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02504/0.2945, allocations: 3.005 MB / 447.2 MB, free: 7.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.82/11.12, allocations: 8.375 kB / 447.2 MB, free: 7.176 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.626434444973711] 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.274726765986998 11.301552642 11.043710899 Calling exit ...