Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.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.001326/0.001326, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001343/0.001343, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.898/0.898, allocations: 177 MB / 204.1 MB, free: 5.758 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.DemonstrateContinuousSignalExtrema,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_DemonstrateContinuousSignalExtrema",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_DemonstrateContinuousSignalExtrema",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.048e-05/2.21e-05, allocations: 6.984 kB / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema): time 0.002131/0.002153, allocations: 1.934 MB / 326.4 MB, free: 13.94 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001017/0.00317, allocations: 0.7168 MB / 327.2 MB, free: 13.21 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001006/0.00327, allocations: 7.938 kB / 327.2 MB, free: 13.21 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.733e-05/0.003318, allocations: 23.67 kB / 327.2 MB, free: 13.18 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001236/0.003441, allocations: 51.52 kB / 327.2 MB, free: 13.13 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005124/0.003954, allocations: 155.6 kB / 327.4 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000278/0.004232, allocations: 347 kB / 327.7 MB, free: 12.64 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001185/0.00435, allocations: 40.98 kB / 327.8 MB, free: 12.6 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002508/0.004601, allocations: 211.5 kB / 328 MB, free: 12.39 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001228/0.004724, allocations: 135.6 kB / 328.1 MB, free: 12.26 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.539e-05/0.004759, allocations: 32 kB / 328.1 MB, free: 12.23 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.601e-05/0.004815, allocations: 39.98 kB / 328.2 MB, free: 12.19 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.405e-05/0.004859, allocations: 67.78 kB / 328.3 MB, free: 12.12 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.98e-05/0.004939, allocations: 103.7 kB / 328.4 MB, free: 12.02 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002618/0.005201, allocations: 335 kB / 328.7 MB, free: 11.69 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.924e-06/0.005203, allocations: 0 / 328.7 MB, free: 11.69 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.31e-07/0.005204, allocations: 0 / 328.7 MB, free: 11.69 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.55e-06/0.005209, allocations: 0 / 328.7 MB, free: 11.69 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.0008985/0.006108, allocations: 0.6674 MB / 329.3 MB, free: 10.98 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.006148, allocations: 23.97 kB / 329.4 MB, free: 10.95 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.146e-05/0.006189, allocations: 46.73 kB / 329.4 MB, free: 10.9 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001822/0.006372, allocations: 56.72 kB / 329.5 MB, free: 10.84 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002593/0.006631, allocations: 218.2 kB / 329.7 MB, free: 10.6 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.545e-05/0.006656, allocations: 20.38 kB / 329.7 MB, free: 10.58 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.051e-05/0.006697, allocations: 28.36 kB / 329.7 MB, free: 10.55 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004808/0.007178, allocations: 359.4 kB / 330.1 MB, free: 10.19 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.946e-06/0.007187, allocations: 192 / 330.1 MB, free: 10.19 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.364e-05/0.00721, allocations: 11.94 kB / 330.1 MB, free: 10.18 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.192e-06/0.007216, allocations: 4 kB / 330.1 MB, free: 10.18 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004193/0.007636, allocations: 247.8 kB / 330.3 MB, free: 9.934 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006859/0.008322, allocations: 0.601 MB / 330.9 MB, free: 9.285 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004759/0.008798, allocations: 332.9 kB / 331.3 MB, free: 8.941 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000278/0.009076, allocations: 189.5 kB / 331.5 MB, free: 8.746 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.88e-05/0.009094, allocations: 4 kB / 331.5 MB, free: 8.742 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004744/0.009569, allocations: 403.1 kB / 331.9 MB, free: 8.336 MB / 298.7 MB Notification: Performance of pre-optimization done (n=41): time 1.623e-06/0.00957, allocations: 0 / 331.9 MB, free: 8.336 MB / 298.7 MB Notification: Performance of matching and sorting (n=41): time 0.001024/0.01059, allocations: 0.7464 MB / 332.6 MB, free: 7.582 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.787e-05/0.01063, allocations: 67.39 kB / 332.7 MB, free: 7.504 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001088/0.01074, allocations: 195.9 kB / 332.9 MB, free: 7.305 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.753e-05/0.01077, allocations: 45.7 kB / 332.9 MB, free: 7.254 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.021e-05/0.01083, allocations: 129 kB / 333 MB, free: 7.125 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.4e-05/0.01089, allocations: 115.1 kB / 333.1 MB, free: 7.012 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.239e-05/0.01098, allocations: 94.17 kB / 333.2 MB, free: 6.914 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.082e-05/0.01106, allocations: 338.8 kB / 333.6 MB, free: 6.574 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002598/0.01132, allocations: 242.2 kB / 333.8 MB, free: 6.32 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002778/0.01159, allocations: 322.6 kB / 334.1 MB, free: 5.953 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005934/0.01219, allocations: 445.1 kB / 334.5 MB, free: 5.473 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.01219, allocations: 0 / 334.5 MB, free: 5.473 MB / 298.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.000639/0.01283, allocations: 0.6634 MB / 335.2 MB, free: 4.766 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.468e-05/0.01287, allocations: 89.09 kB / 335.3 MB, free: 4.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.01288, allocations: 4 kB / 335.3 MB, free: 4.656 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.01289, allocations: 4 kB / 335.3 MB, free: 4.652 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001723/0.01307, allocations: 79.81 kB / 335.4 MB, free: 4.574 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.345e-06/0.01307, allocations: 4 kB / 335.4 MB, free: 4.57 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001515/0.01323, allocations: 67.73 kB / 335.5 MB, free: 4.504 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.317e-05/0.01325, allocations: 27.97 kB / 335.5 MB, free: 4.477 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 46 (signalExtrema3.t_min,$PRE.signalExtrema3.t_min,signalExtrema3.t_max,$PRE.signalExtrema3.t_max,signalExtrema2.t_min,$PRE.signalExtrema2.t_min,signalExtrema2.t_max,$PRE.signalExtrema2.t_max,signalExtrema1.t_min,$PRE.signalExtrema1.t_min,signalExtrema1.t_max,$PRE.signalExtrema1.t_max,$whenCondition5,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,sawTooth.count,$PRE.sawTooth.count,sawTooth.T_start,$PRE.sawTooth.T_start,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,signalExtrema3.y_max,$PRE.signalExtrema3.y_max,signalExtrema3.y_min,$PRE.signalExtrema3.y_min,sawTooth1.count,$PRE.sawTooth1.count,sawTooth1.T_start,$PRE.sawTooth1.T_start,pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 3 * 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.0001116/0.01336, allocations: 169.6 kB / 335.6 MB, free: 4.301 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.937e-05/0.01339, allocations: 23.86 kB / 335.7 MB, free: 4.277 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.836e-05/0.01344, allocations: 34.98 kB / 335.7 MB, free: 4.242 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.01344, allocations: 4 kB / 335.7 MB, free: 4.238 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.01345, allocations: 4 kB / 335.7 MB, free: 4.234 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.01345, allocations: 3.984 kB / 335.7 MB, free: 4.23 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001919/0.01364, allocations: 280.4 kB / 336 MB, free: 3.914 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.01365, allocations: 0 / 336 MB, free: 3.914 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001252/0.01377, allocations: 47.89 kB / 336 MB, free: 3.867 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.01377, allocations: 0 / 336 MB, free: 3.867 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.726e-05/0.0138, allocations: 19.97 kB / 336.1 MB, free: 3.848 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.0138, allocations: 0 / 336.1 MB, free: 3.848 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.0138, allocations: 3.938 kB / 336.1 MB, free: 3.844 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001075/0.01488, allocations: 0.845 MB / 336.9 MB, free: 2.98 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.693e-05/0.0149, allocations: 27.8 kB / 336.9 MB, free: 2.953 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.629e-05/0.01495, allocations: 20.03 kB / 337 MB, free: 2.934 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001565/0.01511, allocations: 55.92 kB / 337 MB, free: 2.879 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.914e-05/0.0152, allocations: 47.92 kB / 337.1 MB, free: 2.832 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.063e-05/0.01523, allocations: 27.97 kB / 337.1 MB, free: 2.805 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.766e-05/0.01529, allocations: 145.3 kB / 337.2 MB, free: 2.664 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01529, allocations: 8 kB / 337.2 MB, free: 2.656 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002004/0.01549, allocations: 79.95 kB / 337.3 MB, free: 2.578 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (signalExtrema3.x,signalExtrema1.x,signalExtrema2.x) * Number of discrete variables: 28 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,pulse.T_start,pulse.count,sawTooth1.T_start,sawTooth1.count,signalExtrema3.y_min,signalExtrema3.y_max,signalExtrema3.t_min,signalExtrema3.t_max,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,sawTooth.T_start,sawTooth.count,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: 18 (sawTooth.count,signalExtrema1.y_max,signalExtrema1.t_max,signalExtrema1.y_min,signalExtrema1.t_min,signalExtrema1.u,signalExtrema2.y_max,signalExtrema2.t_max,signalExtrema2.y_min,signalExtrema2.t_min,signalExtrema2.u,pulse.count,sawTooth1.count,signalExtrema3.y_max,signalExtrema3.t_max,signalExtrema3.y_min,signalExtrema3.t_min,signalExtrema3.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 18 * 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.00125/0.01674, allocations: 1.411 MB / 338.7 MB, free: 1.137 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000683/0.01743, allocations: 0.6667 MB / 339.4 MB, free: 424 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.01743, allocations: 0 / 339.4 MB, free: 424 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003162/0.01775, allocations: 232.3 kB / 339.6 MB, free: 192 kB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002117/0.01796, allocations: 47.41 kB / 339.7 MB, free: 148 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003105/0.02106, allocations: 3.589 MB / 343.2 MB, free: 12.32 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.542e-05/0.02114, allocations: 147 kB / 343.4 MB, free: 12.16 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 8.818e-05/0.02123, allocations: 34.89 kB / 343.4 MB, free: 12.13 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001096/0.02134, allocations: 92.47 kB / 343.5 MB, free: 12.04 MB / 314.7 MB Notification: Performance of SimCode: time 6.72e-07/0.02134, allocations: 4 kB / 343.5 MB, free: 12.04 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01853/0.03986, allocations: 7.859 MB / 351.4 MB, free: 4.289 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.861/6.901, allocations: 12 kB / 351.4 MB, free: 4.277 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Blocks_Examples_DemonstrateContinuousSignalExtrema.fmu > Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 8.65805617813021] 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', 'signalExtrema3.y_min', 'signalExtrema3.y_max', 'signalExtrema3.t_min', 'signalExtrema3.t_max'] 6.98491929192096 6.993160194 6.986371501 Calling exit ...