Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001319/0.001319, allocations: 117.2 kB / 18.45 MB, free: 4.613 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.001435/0.001435, allocations: 209.7 kB / 21.41 MB, free: 1.66 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.42/1.42, allocations: 227.7 MB / 251.9 MB, free: 15.87 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.DemonstrateContinuousSignalExtrema,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_DemonstrateContinuousSignalExtrema",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_DemonstrateContinuousSignalExtrema",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.001931/0.001932, allocations: 63.84 kB / 365.2 MB, free: 204 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09713/0.09907, allocations: 50.55 MB / 415.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema): time 0.003359/0.1025, allocations: 2.028 MB / 417.8 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001456/0.104, allocations: 0.7363 MB / 418.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001073/0.1041, allocations: 4 kB / 418.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.194e-05/0.1042, allocations: 31.59 kB / 418.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001504/0.1044, allocations: 47.52 kB / 418.6 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004428/0.1048, allocations: 151.7 kB / 418.8 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004195/0.1052, allocations: 351.1 kB / 419.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000161/0.1054, allocations: 64.77 kB / 419.2 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000284/0.1057, allocations: 143.6 kB / 419.3 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002226/0.106, allocations: 179.3 kB / 419.5 MB, free: 9.863 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.576e-05/0.106, allocations: 32 kB / 419.5 MB, free: 9.832 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.48e-05/0.1061, allocations: 32 kB / 419.5 MB, free: 9.801 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.685e-05/0.1062, allocations: 75.73 kB / 419.6 MB, free: 9.727 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001668/0.1064, allocations: 139.3 kB / 419.8 MB, free: 9.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003672/0.1067, allocations: 294.8 kB / 420 MB, free: 9.301 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.1068, allocations: 0 / 420 MB, free: 9.301 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1068, allocations: 3.938 kB / 420.1 MB, free: 9.297 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.582e-06/0.1068, allocations: 0 / 420.1 MB, free: 9.297 MB / 350.1 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.001531/0.1083, allocations: 0.7428 MB / 420.8 MB, free: 8.484 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.1084, allocations: 16.02 kB / 420.8 MB, free: 8.469 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.068e-05/0.1084, allocations: 50.73 kB / 420.9 MB, free: 8.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003185/0.1088, allocations: 56.72 kB / 420.9 MB, free: 8.355 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003641/0.1091, allocations: 268.9 kB / 421.2 MB, free: 8.051 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.955e-05/0.1092, allocations: 24.36 kB / 421.2 MB, free: 8.027 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.148e-05/0.1092, allocations: 24.36 kB / 421.2 MB, free: 8.004 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008458/0.1101, allocations: 358.9 kB / 421.6 MB, free: 7.641 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.1101, allocations: 3.938 kB / 421.6 MB, free: 7.637 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.921e-05/0.1102, allocations: 11.98 kB / 421.6 MB, free: 7.625 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.384e-06/0.1102, allocations: 4 kB / 421.6 MB, free: 7.621 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000816/0.111, allocations: 243.8 kB / 421.8 MB, free: 7.383 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001118/0.1121, allocations: 0.7072 MB / 422.5 MB, free: 6.621 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009201/0.1131, allocations: 360.9 kB / 422.9 MB, free: 6.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005742/0.1136, allocations: 205.6 kB / 423.1 MB, free: 6.043 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.59e-05/0.1137, allocations: 4 kB / 423.1 MB, free: 6.039 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009028/0.1146, allocations: 399 kB / 423.5 MB, free: 5.637 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 2.515e-06/0.1146, allocations: 0 / 423.5 MB, free: 5.637 MB / 350.1 MB Notification: Performance of matching and sorting (n=41): time 0.00198/0.1166, allocations: 0.7504 MB / 424.2 MB, free: 4.879 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.986e-05/0.1167, allocations: 71.34 kB / 424.3 MB, free: 4.797 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001947/0.1169, allocations: 195.8 kB / 424.5 MB, free: 4.598 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.562e-05/0.1169, allocations: 45.69 kB / 424.5 MB, free: 4.547 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001015/0.117, allocations: 129 kB / 424.7 MB, free: 4.418 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001065/0.1171, allocations: 115.2 kB / 424.8 MB, free: 4.305 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001447/0.1173, allocations: 90.25 kB / 424.9 MB, free: 4.211 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001885/0.1175, allocations: 342.8 kB / 425.2 MB, free: 3.867 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004351/0.1179, allocations: 161 kB / 425.4 MB, free: 3.707 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004934/0.1184, allocations: 245.2 kB / 425.6 MB, free: 3.441 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008772/0.1193, allocations: 440.8 kB / 426 MB, free: 2.965 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.1193, allocations: 0 / 426 MB, free: 2.965 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001146/0.1205, allocations: 0.5742 MB / 426.6 MB, free: 2.371 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.128e-05/0.1206, allocations: 89.09 kB / 426.7 MB, free: 2.266 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.217e-06/0.1206, allocations: 7.938 kB / 426.7 MB, free: 2.258 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.979e-05/0.1206, allocations: 4 kB / 426.7 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003541/0.121, allocations: 84.03 kB / 426.8 MB, free: 2.172 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.126e-05/0.121, allocations: 4 kB / 426.8 MB, free: 2.168 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003278/0.1213, allocations: 63.75 kB / 426.9 MB, free: 2.105 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.116e-05/0.1214, allocations: 20 kB / 426.9 MB, free: 2.086 MB / 350.1 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.0002257/0.1216, allocations: 173.6 kB / 427 MB, free: 1.906 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.294e-05/0.1217, allocations: 23.86 kB / 427.1 MB, free: 1.883 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.236e-05/0.1218, allocations: 38.98 kB / 427.1 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.1218, allocations: 4 kB / 427.1 MB, free: 1.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.1218, allocations: 4 kB / 427.1 MB, free: 1.836 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.1218, allocations: 3.984 kB / 427.1 MB, free: 1.832 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004499/0.1223, allocations: 349.2 kB / 427.5 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.1223, allocations: 0 / 427.5 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002741/0.1226, allocations: 51.89 kB / 427.5 MB, free: 1.391 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.1226, allocations: 0 / 427.5 MB, free: 1.391 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.324e-05/0.1226, allocations: 19.97 kB / 427.5 MB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.1226, allocations: 4 kB / 427.5 MB, free: 1.367 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1226, allocations: 0 / 427.5 MB, free: 1.367 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002069/0.1247, allocations: 0.8448 MB / 428.4 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001027/0.1248, allocations: 108.9 kB / 428.5 MB, free: 388 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.173e-05/0.1249, allocations: 16 kB / 428.5 MB, free: 372 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003452/0.1253, allocations: 59.92 kB / 428.6 MB, free: 312 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000133/0.1254, allocations: 47.94 kB / 428.6 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.219e-05/0.1255, allocations: 31.97 kB / 428.6 MB, free: 232 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001242/0.1256, allocations: 137.5 kB / 428.8 MB, free: 96 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1256, allocations: 0 / 428.8 MB, free: 96 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003185/0.1259, allocations: 76 kB / 428.8 MB, free: 20 kB / 350.1 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.002392/0.1283, allocations: 1.418 MB / 430.3 MB, free: 14.57 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001355/0.1297, allocations: 0.6075 MB / 430.9 MB, free: 13.93 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.1297, allocations: 0 / 430.9 MB, free: 13.93 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006439/0.1304, allocations: 264 kB / 431.1 MB, free: 13.67 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003617/0.1307, allocations: 43.89 kB / 431.2 MB, free: 13.63 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005316/0.1361, allocations: 3.265 MB / 434.4 MB, free: 10.2 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004242/0.1365, allocations: 0.7527 MB / 435.2 MB, free: 9.422 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001476/0.1367, allocations: 30.97 kB / 435.2 MB, free: 9.395 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001671/0.1369, allocations: 91.39 kB / 435.3 MB, free: 9.305 MB / 366.1 MB Notification: Performance of SimCode: time 7.21e-07/0.1369, allocations: 3.938 kB / 435.3 MB, free: 9.301 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03166/0.1685, allocations: 6.832 MB / 442.1 MB, free: 2.613 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.714/8.883, allocations: 7.938 kB / 442.1 MB, free: 2.605 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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_4_1_0-beta_om_Modelica_Blocks_Examples_DemonstrateContinuousSignalExtrema.fmu > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.582358399988152] Failed to read output from testmodel.py, exit status != 0: 8.955331981065683 9.198467419 9.0892705 Calling exit ...