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.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.001832/0.001832, allocations: 107.7 kB / 18.95 MB, free: 2.676 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.002691/0.002691, allocations: 223 kB / 22.25 MB, free: 5.242 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.48/1.48, allocations: 230.6 MB / 256 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/package.mo): time 0.1963/0.1963, allocations: 29.23 MB / 341.7 MB, free: 5.586 MB / 270.1 MB " [Timeout remaining time 180] Using package SystemDynamics with version 2.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/package.mo) 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(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: SystemDynamics requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002059/0.002059, allocations: 76.02 kB / 478.4 MB, free: 360 kB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3585/0.3606, allocations: 60.78 MB / 0.5265 GB, free: 7.855 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.004221/0.3648, allocations: 3.094 MB / 0.5295 GB, free: 5.785 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001899/0.3667, allocations: 0.674 MB / 0.5302 GB, free: 5.289 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004795/0.3672, allocations: 19.91 kB / 0.5302 GB, free: 5.285 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004719/0.3677, allocations: 176.9 kB / 0.5304 GB, free: 5.18 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003358/0.368, allocations: 139.3 kB / 0.5305 GB, free: 5.094 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008559/0.3688, allocations: 362.9 kB / 0.5309 GB, free: 4.902 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001085/0.3699, allocations: 0.8514 MB / 0.5317 GB, free: 4.508 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007297/0.3707, allocations: 0.4956 MB / 0.5322 GB, free: 4.184 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003445/0.371, allocations: 350.1 kB / 0.5325 GB, free: 3.988 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003819/0.3714, allocations: 434.2 kB / 0.5329 GB, free: 3.73 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001658/0.3716, allocations: 85.38 kB / 0.533 GB, free: 3.73 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002429/0.3718, allocations: 116.4 kB / 0.5331 GB, free: 3.723 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003947/0.3722, allocations: 463.2 kB / 0.5336 GB, free: 3.508 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003598/0.3725, allocations: 479.8 kB / 0.534 GB, free: 3.18 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001535/0.3741, allocations: 1.316 MB / 0.5353 GB, free: 2.457 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.3741, allocations: 0 / 0.5353 GB, free: 2.457 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3741, allocations: 5.062 kB / 0.5353 GB, free: 2.453 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.748e-05/0.3741, allocations: 0 / 0.5353 GB, free: 2.453 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.002448/0.3766, allocations: 1.802 MB / 0.5371 GB, free: 1.055 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.619e-05/0.3766, allocations: 17.56 kB / 0.5371 GB, free: 1.047 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002354/0.3769, allocations: 182 kB / 0.5373 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003317/0.3772, allocations: 213 kB / 0.5375 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001048/0.3782, allocations: 0.718 MB / 0.5382 GB, free: 200 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.645e-05/0.3783, allocations: 86.89 kB / 0.5382 GB, free: 156 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001644/0.3785, allocations: 107 kB / 0.5383 GB, free: 120 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002499/0.381, allocations: 1.293 MB / 0.5396 GB, free: 15.4 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.434e-05/0.381, allocations: 9.031 kB / 0.5396 GB, free: 15.39 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.345e-05/0.3811, allocations: 42.16 kB / 0.5397 GB, free: 15.36 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.956e-05/0.3812, allocations: 49.92 kB / 0.5397 GB, free: 15.35 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001907/0.3831, allocations: 1.225 MB / 0.5409 GB, free: 14.9 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006573/0.3897, allocations: 3.654 MB / 0.5445 GB, free: 12.35 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002391/0.392, allocations: 1.321 MB / 0.5458 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007969/0.3928, allocations: 479.9 kB / 0.5462 GB, free: 11.69 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001076/0.393, allocations: 28.91 kB / 0.5462 GB, free: 11.68 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.266e-05/0.393, allocations: 46.56 kB / 0.5463 GB, free: 11.63 MB / 398.1 MB Notification: Performance of pre-optimization done (n=70): time 3.527e-06/0.393, allocations: 4 kB / 0.5463 GB, free: 11.62 MB / 398.1 MB Notification: Performance of matching and sorting (n=70): time 0.003144/0.3962, allocations: 1.569 MB / 0.5478 GB, free: 11 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.445e-05/0.3962, allocations: 89.75 kB / 0.5479 GB, free: 10.89 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001956/0.3982, allocations: 1.358 MB / 0.5492 GB, free: 9.527 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.536e-05/0.3982, allocations: 41.7 kB / 0.5493 GB, free: 9.48 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00081/0.399, allocations: 0.866 MB / 0.5501 GB, free: 8.605 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002656/0.3993, allocations: 257.8 kB / 0.5504 GB, free: 8.352 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002465/0.3996, allocations: 154.8 kB / 0.5505 GB, free: 8.195 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001785/0.3997, allocations: 337.9 kB / 0.5508 GB, free: 7.859 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006855/0.4004, allocations: 477.8 kB / 0.5513 GB, free: 7.391 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008537/0.4013, allocations: 0.7161 MB / 0.552 GB, free: 6.566 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001533/0.4028, allocations: 1.237 MB / 0.5532 GB, free: 5.219 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.685e-06/0.4028, allocations: 4 kB / 0.5532 GB, free: 5.215 MB / 398.1 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.001997/0.4048, allocations: 1.402 MB / 0.5546 GB, free: 3.805 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.663e-05/0.4048, allocations: 11.94 kB / 0.5546 GB, free: 3.793 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.606e-05/0.4049, allocations: 8 kB / 0.5546 GB, free: 3.785 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.107e-05/0.4049, allocations: 12 kB / 0.5546 GB, free: 3.773 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006311/0.4055, allocations: 191.7 kB / 0.5548 GB, free: 3.586 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.259e-05/0.4055, allocations: 15.94 kB / 0.5548 GB, free: 3.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004923/0.406, allocations: 83.75 kB / 0.5549 GB, free: 3.488 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.909e-05/0.4061, allocations: 51.98 kB / 0.5549 GB, free: 3.438 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.0007108/0.4068, allocations: 393.4 kB / 0.5553 GB, free: 3.043 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002089/0.407, allocations: 162.9 kB / 0.5555 GB, free: 2.883 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001864/0.4089, allocations: 1.247 MB / 0.5567 GB, free: 1.621 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.474e-05/0.4089, allocations: 8 kB / 0.5567 GB, free: 1.613 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.331e-06/0.4089, allocations: 0 / 0.5567 GB, free: 1.613 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.084e-05/0.4089, allocations: 8.016 kB / 0.5567 GB, free: 1.605 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003191/0.4121, allocations: 2.316 MB / 0.559 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.4121, allocations: 0 / 0.559 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005075/0.4126, allocations: 115.8 kB / 0.5591 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.356e-06/0.4126, allocations: 4 kB / 0.5591 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.335e-05/0.4127, allocations: 19.98 kB / 0.5591 GB, free: 15.1 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.412e-06/0.4127, allocations: 0 / 0.5591 GB, free: 15.1 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.4127, allocations: 4 kB / 0.5591 GB, free: 15.1 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002611/0.4153, allocations: 1.996 MB / 0.561 GB, free: 13.08 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002564/0.4156, allocations: 138.8 kB / 0.5612 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.422e-05/0.4156, allocations: 12.06 kB / 0.5612 GB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000273/0.4159, allocations: 12 kB / 0.5612 GB, free: 12.92 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001109/0.416, allocations: 52.56 kB / 0.5613 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.05e-05/0.4161, allocations: 23.94 kB / 0.5613 GB, free: 12.85 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001349/0.4174, allocations: 0.9375 MB / 0.5622 GB, free: 11.91 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4174, allocations: 0 / 0.5622 GB, free: 11.91 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008167/0.4182, allocations: 231.2 kB / 0.5624 GB, free: 11.69 MB / 414.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.002949/0.4212, allocations: 2.569 MB / 0.5649 GB, free: 9.09 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001592/0.4228, allocations: 1.056 MB / 0.5659 GB, free: 8.031 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.4228, allocations: 0 / 0.5659 GB, free: 8.031 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006443/0.4234, allocations: 0.5049 MB / 0.5664 GB, free: 7.531 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007542/0.4242, allocations: 103.7 kB / 0.5665 GB, free: 7.434 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01757/0.4417, allocations: 12.42 MB / 0.5787 GB, free: 10.59 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008649/0.4426, allocations: 0.7459 MB / 0.5794 GB, free: 9.812 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004033/0.443, allocations: 132.9 kB / 0.5795 GB, free: 9.68 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007185/0.4437, allocations: 0.6242 MB / 0.5801 GB, free: 9.055 MB / 430.1 MB Notification: Performance of SimCode: time 1.042e-06/0.4437, allocations: 0 / 0.5801 GB, free: 9.055 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05982/0.5036, allocations: 20.43 MB / 0.6001 GB, free: 4.73 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.91/14.42, allocations: 0 / 0.6001 GB, free: 4.73 MB / 446.1 MB " [Timeout remaining time 645] (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: 17.396569731994532] Failed to read output from testmodel.py, exit status != 0: 14.53523654298624 14.553289474 14.175851606 Calling exit ...