Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.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.001414/0.001414, allocations: 110 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.001659/0.001659, allocations: 185.3 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.579/1.579, allocations: 225.6 MB / 251 MB, free: 13.03 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.3021/0.3021, allocations: 29.23 MB / 335.5 MB, free: 11.4 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_2,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_2,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001976/0.001976, allocations: 63.89 kB / 469.9 MB, free: 7.309 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.426/0.428, allocations: 59.61 MB / 0.5171 GB, free: 9.77 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_2): time 0.004951/0.433, allocations: 3.675 MB / 0.5207 GB, free: 7.082 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002232/0.4352, allocations: 0.6799 MB / 0.5214 GB, free: 6.578 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006571/0.4359, allocations: 17.97 kB / 0.5214 GB, free: 6.574 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005382/0.4364, allocations: 177 kB / 0.5216 GB, free: 6.469 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000381/0.4368, allocations: 138.2 kB / 0.5217 GB, free: 6.383 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009546/0.4377, allocations: 356.3 kB / 0.522 GB, free: 6.195 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001028/0.4388, allocations: 0.8487 MB / 0.5229 GB, free: 5.801 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007802/0.4395, allocations: 0.5061 MB / 0.5234 GB, free: 5.469 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003627/0.4399, allocations: 342.1 kB / 0.5237 GB, free: 5.281 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004147/0.4403, allocations: 430.1 kB / 0.5241 GB, free: 5.023 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001665/0.4405, allocations: 85.09 kB / 0.5242 GB, free: 5.023 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002634/0.4407, allocations: 120.8 kB / 0.5243 GB, free: 5.012 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000476/0.4412, allocations: 444.2 kB / 0.5247 GB, free: 4.805 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004239/0.4416, allocations: 0.6181 MB / 0.5253 GB, free: 4.324 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001697/0.4433, allocations: 1.264 MB / 0.5265 GB, free: 3.652 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.301e-06/0.4434, allocations: 0 / 0.5265 GB, free: 3.652 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.988e-06/0.4434, allocations: 1.156 kB / 0.5265 GB, free: 3.652 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.158e-05/0.4434, allocations: 0 / 0.5265 GB, free: 3.652 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.002781/0.4462, allocations: 1.847 MB / 0.5284 GB, free: 2.328 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.365e-05/0.4462, allocations: 8.688 kB / 0.5284 GB, free: 2.328 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002466/0.4465, allocations: 171.7 kB / 0.5285 GB, free: 2.211 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003461/0.4468, allocations: 208.1 kB / 0.5287 GB, free: 2.098 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001077/0.4479, allocations: 0.7691 MB / 0.5295 GB, free: 1.527 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.822e-05/0.448, allocations: 81.45 kB / 0.5296 GB, free: 1.488 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001261/0.4481, allocations: 105.3 kB / 0.5297 GB, free: 1.453 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002055/0.4501, allocations: 1.178 MB / 0.5308 GB, free: 0.957 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.633e-05/0.4502, allocations: 5 kB / 0.5308 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.328e-05/0.4502, allocations: 42.03 kB / 0.5308 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.448e-05/0.4503, allocations: 26.92 kB / 0.5309 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001792/0.4521, allocations: 1.101 MB / 0.5319 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00648/0.4585, allocations: 3.678 MB / 0.5355 GB, free: 14.62 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003318/0.4619, allocations: 1.313 MB / 0.5368 GB, free: 14.29 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001864/0.4637, allocations: 465.8 kB / 0.5373 GB, free: 14.18 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.935e-05/0.4638, allocations: 22.33 kB / 0.5373 GB, free: 14.17 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.007e-05/0.4639, allocations: 37.84 kB / 0.5373 GB, free: 14.13 MB / 398.1 MB Notification: Performance of pre-optimization done (n=67): time 2.976e-06/0.4639, allocations: 0 / 0.5373 GB, free: 14.13 MB / 398.1 MB Notification: Performance of matching and sorting (n=67): time 0.002643/0.4665, allocations: 1.53 MB / 0.5388 GB, free: 13.71 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.257e-05/0.4666, allocations: 62.78 kB / 0.5389 GB, free: 13.64 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00225/0.4688, allocations: 1.297 MB / 0.5401 GB, free: 13.1 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.385e-05/0.4689, allocations: 36.11 kB / 0.5402 GB, free: 13.06 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007993/0.4697, allocations: 0.7844 MB / 0.5409 GB, free: 12.37 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003114/0.47, allocations: 245 kB / 0.5412 GB, free: 12.16 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002474/0.4702, allocations: 113 kB / 0.5413 GB, free: 12.09 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002154/0.4705, allocations: 331.3 kB / 0.5416 GB, free: 11.76 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006513/0.4711, allocations: 435.2 kB / 0.542 GB, free: 11.62 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007518/0.4719, allocations: 0.5296 MB / 0.5425 GB, free: 11.36 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001462/0.4733, allocations: 0.992 MB / 0.5435 GB, free: 10.93 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.212e-06/0.4733, allocations: 5.344 kB / 0.5435 GB, free: 10.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.00202/0.4754, allocations: 1.189 MB / 0.5447 GB, free: 10.46 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.592e-05/0.4754, allocations: 6.875 kB / 0.5447 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/0.4754, allocations: 2.281 kB / 0.5447 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.755e-05/0.4754, allocations: 5.812 kB / 0.5447 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005009/0.4759, allocations: 133.7 kB / 0.5448 GB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.659e-05/0.4759, allocations: 5.594 kB / 0.5448 GB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001226/0.4772, allocations: 56.11 kB / 0.5449 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.925e-05/0.4772, allocations: 26.59 kB / 0.5449 GB, free: 10.38 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (82): * Single equations (assignments): 82 * 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.0008845/0.4781, allocations: 383.1 kB / 0.5453 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002086/0.4783, allocations: 147 kB / 0.5454 GB, free: 10.03 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001886/0.4802, allocations: 1.189 MB / 0.5466 GB, free: 9.531 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.266e-05/0.4802, allocations: 10.81 kB / 0.5466 GB, free: 9.527 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.4802, allocations: 4 kB / 0.5466 GB, free: 9.523 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.4802, allocations: 1.375 kB / 0.5466 GB, free: 9.523 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003493/0.4837, allocations: 2.374 MB / 0.5489 GB, free: 8.289 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.4837, allocations: 0 / 0.5489 GB, free: 8.289 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004865/0.4842, allocations: 110.8 kB / 0.549 GB, free: 8.266 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.02e-05/0.4842, allocations: 8.031 kB / 0.549 GB, free: 8.262 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.978e-05/0.4843, allocations: 15.52 kB / 0.549 GB, free: 8.25 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.681e-06/0.4843, allocations: 2.562 kB / 0.549 GB, free: 8.25 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.4843, allocations: 1.156 kB / 0.549 GB, free: 8.25 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002492/0.4867, allocations: 1.882 MB / 0.5509 GB, free: 6.492 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003165/0.4871, allocations: 212 kB / 0.5511 GB, free: 6.266 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.487e-05/0.4872, allocations: 12 kB / 0.5511 GB, free: 6.254 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002157/0.4874, allocations: 12 kB / 0.5511 GB, free: 6.242 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.813e-05/0.4875, allocations: 40.58 kB / 0.5511 GB, free: 6.203 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.637e-05/0.4875, allocations: 16 kB / 0.5511 GB, free: 6.188 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001446/0.4889, allocations: 0.9006 MB / 0.552 GB, free: 5.289 MB / 398.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.4889, allocations: 0 / 0.552 GB, free: 5.289 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007535/0.4897, allocations: 215.2 kB / 0.5522 GB, free: 5.078 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (67): * Single equations (assignments): 67 * 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.002923/0.4926, allocations: 2.452 MB / 0.5546 GB, free: 2.598 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001507/0.4941, allocations: 0.962 MB / 0.5556 GB, free: 1.633 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.4941, allocations: 0 / 0.5556 GB, free: 1.633 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006541/0.4948, allocations: 0.4917 MB / 0.556 GB, free: 1.141 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007352/0.4955, allocations: 100.3 kB / 0.5561 GB, free: 1.047 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01822/0.5137, allocations: 11.56 MB / 0.5674 GB, free: 5.289 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001181/0.5149, allocations: 1.315 MB / 0.5687 GB, free: 3.949 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002704/0.5152, allocations: 72.36 kB / 0.5688 GB, free: 3.879 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007163/0.5159, allocations: 0.593 MB / 0.5694 GB, free: 3.285 MB / 414.1 MB Notification: Performance of SimCode: time 2.375e-06/0.5159, allocations: 0 / 0.5694 GB, free: 3.285 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0716/0.5875, allocations: 19.15 MB / 0.5881 GB, free: 208 kB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.27/20.86, allocations: 16.08 kB / 0.5881 GB, free: 196 kB / 430.1 MB " [Timeout remaining time 639] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.sim & python3 -m fmpy simulate --output-file SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2_res.csv --start-time 1900 --stop-time 2100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.08 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 24.40694651589729] Failed to read output from testmodel.py, exit status != 0: 20.975058610085398 20.991341695 20.544561485 Calling exit ...