Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001838/0.001838, allocations: 108.8 kB / 18.93 MB, free: 2.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002662/0.002662, allocations: 190.4 kB / 22.23 MB, free: 5.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.541/1.541, allocations: 225.6 MB / 251 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2409/0.2409, allocations: 29.24 MB / 335.5 MB, free: 11.31 MB / 270.1 MB " [Timeout remaining time 179] Using package SystemDynamics with version 2.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_4,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_4,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002117/0.002117, allocations: 67.88 kB / 469.9 MB, free: 7.281 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6386/0.6407, allocations: 59.6 MB / 0.5171 GB, free: 9.816 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.008438/0.6491, allocations: 3.699 MB / 0.5207 GB, free: 7.109 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003502/0.6526, allocations: 0.6866 MB / 0.5214 GB, free: 6.602 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001699/0.6543, allocations: 18.34 kB / 0.5214 GB, free: 6.598 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00107/0.6554, allocations: 177.5 kB / 0.5216 GB, free: 6.492 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001424/0.6568, allocations: 144.7 kB / 0.5217 GB, free: 6.402 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001851/0.6587, allocations: 358.8 kB / 0.5221 GB, free: 6.215 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002501/0.6612, allocations: 0.86 MB / 0.5229 GB, free: 5.816 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001593/0.6627, allocations: 0.5027 MB / 0.5234 GB, free: 5.488 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007272/0.6635, allocations: 348.5 kB / 0.5237 GB, free: 5.297 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009567/0.6644, allocations: 439.5 kB / 0.5242 GB, free: 5.035 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004618/0.6649, allocations: 86.31 kB / 0.5242 GB, free: 5.035 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006252/0.6655, allocations: 120.3 kB / 0.5243 GB, free: 5.023 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008525/0.6664, allocations: 459.4 kB / 0.5248 GB, free: 4.812 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001205/0.6676, allocations: 0.6343 MB / 0.5254 GB, free: 4.32 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003376/0.6709, allocations: 1.298 MB / 0.5267 GB, free: 3.633 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.685e-06/0.671, allocations: 0 / 0.5267 GB, free: 3.633 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.671, allocations: 1.469 kB / 0.5267 GB, free: 3.633 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001298/0.6711, allocations: 0 / 0.5267 GB, free: 3.633 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 290 * Number of variables: 290 Notification: Performance of Generate backend data structure: time 0.006038/0.6771, allocations: 1.886 MB / 0.5285 GB, free: 2.289 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.771e-05/0.6772, allocations: 17.59 kB / 0.5285 GB, free: 2.281 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005886/0.6778, allocations: 184.8 kB / 0.5287 GB, free: 2.156 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008865/0.6787, allocations: 213.3 kB / 0.5289 GB, free: 2.039 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002091/0.6808, allocations: 0.7769 MB / 0.5297 GB, free: 1.461 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001472/0.6809, allocations: 83.95 kB / 0.5298 GB, free: 1.422 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000316/0.6812, allocations: 107.4 kB / 0.5299 GB, free: 1.387 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003959/0.6852, allocations: 1.292 MB / 0.5311 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.703e-05/0.6852, allocations: 8.75 kB / 0.5311 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001207/0.6854, allocations: 43.02 kB / 0.5312 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001108/0.6855, allocations: 51.19 kB / 0.5312 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003315/0.6888, allocations: 1.233 MB / 0.5324 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01121/0.7, allocations: 3.916 MB / 0.5362 GB, free: 14.35 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002165/0.7022, allocations: 1.329 MB / 0.5375 GB, free: 14.01 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007525/0.7029, allocations: 482.3 kB / 0.538 GB, free: 13.88 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001158/0.703, allocations: 35 kB / 0.538 GB, free: 13.88 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.252e-05/0.7031, allocations: 45.59 kB / 0.5381 GB, free: 13.82 MB / 398.1 MB Notification: Performance of pre-optimization done (n=70): time 3.547e-06/0.7031, allocations: 1.312 kB / 0.5381 GB, free: 13.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=70): time 0.002694/0.7058, allocations: 1.564 MB / 0.5396 GB, free: 13.39 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.601e-05/0.7059, allocations: 89.38 kB / 0.5397 GB, free: 13.3 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002411/0.7083, allocations: 1.363 MB / 0.541 GB, free: 12.64 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.1e-05/0.7083, allocations: 39.95 kB / 0.5411 GB, free: 12.6 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008693/0.7092, allocations: 0.8613 MB / 0.5419 GB, free: 11.84 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002995/0.7095, allocations: 258.9 kB / 0.5421 GB, free: 11.62 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002657/0.7098, allocations: 153 kB / 0.5423 GB, free: 11.53 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001958/0.71, allocations: 337.5 kB / 0.5426 GB, free: 11.2 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007591/0.7107, allocations: 478.5 kB / 0.5431 GB, free: 11.04 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001029/0.7118, allocations: 0.722 MB / 0.5438 GB, free: 10.54 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001812/0.7136, allocations: 1.241 MB / 0.545 GB, free: 9.844 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.195e-06/0.7136, allocations: 2.469 kB / 0.545 GB, free: 9.844 MB / 398.1 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.002545/0.7161, allocations: 1.4 MB / 0.5464 GB, free: 9.27 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.872e-05/0.7162, allocations: 12.19 kB / 0.5464 GB, free: 9.266 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.679e-05/0.7162, allocations: 8.25 kB / 0.5464 GB, free: 9.266 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.55e-05/0.7162, allocations: 16.17 kB / 0.5464 GB, free: 9.262 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006204/0.7168, allocations: 187 kB / 0.5466 GB, free: 9.219 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.951e-05/0.7169, allocations: 20.89 kB / 0.5466 GB, free: 9.211 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006108/0.7175, allocations: 82.72 kB / 0.5467 GB, free: 9.152 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.676e-05/0.7175, allocations: 46.67 kB / 0.5467 GB, free: 9.141 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 5 (CIAF.Integrator1.local_reset,Pollution.Integrator1.local_reset,Capital_Investment.Integrator1.local_reset,Natural_Resources.Integrator1.local_reset,Population.Integrator1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (109): * Single equations (assignments): 109 * 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.0009224/0.7185, allocations: 398.6 kB / 0.5471 GB, free: 8.875 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002816/0.7187, allocations: 160.9 kB / 0.5473 GB, free: 8.781 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002062/0.7208, allocations: 1.248 MB / 0.5485 GB, free: 8.246 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.07e-05/0.7208, allocations: 7.844 kB / 0.5485 GB, free: 8.246 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.7208, allocations: 0 / 0.5485 GB, free: 8.246 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.176e-06/0.7208, allocations: 4.875 kB / 0.5485 GB, free: 8.242 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004162/0.725, allocations: 2.415 MB / 0.5508 GB, free: 6.363 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.185e-06/0.725, allocations: 3.984 kB / 0.5508 GB, free: 6.359 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005257/0.7255, allocations: 115.8 kB / 0.551 GB, free: 6.246 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.01e-05/0.7255, allocations: 8 kB / 0.551 GB, free: 6.238 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.229e-05/0.7256, allocations: 23.98 kB / 0.551 GB, free: 6.215 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.983e-06/0.7256, allocations: 3.984 kB / 0.551 GB, free: 6.211 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.111e-06/0.7256, allocations: 4 kB / 0.551 GB, free: 6.207 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002915/0.7285, allocations: 1.992 MB / 0.5529 GB, free: 4.199 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004669/0.729, allocations: 220 kB / 0.5531 GB, free: 3.965 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.769e-05/0.7291, allocations: 12 kB / 0.5532 GB, free: 3.953 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002762/0.7294, allocations: 12 kB / 0.5532 GB, free: 3.941 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001056/0.7295, allocations: 48.5 kB / 0.5532 GB, free: 3.895 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.837e-05/0.7295, allocations: 28 kB / 0.5532 GB, free: 3.867 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001664/0.7312, allocations: 0.9297 MB / 0.5542 GB, free: 2.941 MB / 398.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.7312, allocations: 0 / 0.5542 GB, free: 2.941 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009645/0.7321, allocations: 235.2 kB / 0.5544 GB, free: 2.711 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (Population.Integrator1.y,Natural_Resources.Integrator1.y,Capital_Investment.Integrator1.y,Pollution.Integrator1.y,CIAF.Integrator1.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 70 * 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 Backend phase and start with SimCode phase: time 0.003214/0.7354, allocations: 2.569 MB / 0.5569 GB, free: 116 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001817/0.7372, allocations: 1.057 MB / 0.5579 GB, free: 15.05 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.7372, allocations: 0.5 kB / 0.5579 GB, free: 15.05 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007204/0.7379, allocations: 0.5073 MB / 0.5584 GB, free: 14.55 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009308/0.7388, allocations: 96.92 kB / 0.5585 GB, free: 14.45 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02114/0.76, allocations: 12.45 MB / 0.5707 GB, free: 1.59 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00143/0.7614, allocations: 1.33 MB / 0.572 GB, free: 232 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005315/0.7619, allocations: 140.8 kB / 0.5721 GB, free: 88 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009387/0.7629, allocations: 0.6165 MB / 0.5727 GB, free: 15.46 MB / 430.1 MB Notification: Performance of SimCode: time 2.795e-06/0.7629, allocations: 0 / 0.5727 GB, free: 15.46 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07305/0.8359, allocations: 20.21 MB / 0.5924 GB, free: 11.31 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.54/18.38, allocations: 4.172 kB / 0.5924 GB, free: 11.31 MB / 446.1 MB " [Timeout remaining time 642] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.sim & python3 -m fmpy simulate --output-file SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4_res.csv --start-time 1900 --stop-time 2000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 21.588409655960277] Failed to read output from testmodel.py, exit status != 0: 18.480478026904166 18.495549017 17.82071965 Calling exit ...