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.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.001375/0.001375, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001576/0.001576, allocations: 220.3 kB / 22.26 MB, free: 5.125 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.47/1.47, allocations: 230.6 MB / 256 MB, free: 7.961 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.2038/0.2038, allocations: 29.23 MB / 341.7 MB, free: 5.766 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_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: 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.002145/0.002145, allocations: 68.17 kB / 478.4 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3428/0.3449, allocations: 60.79 MB / 0.5266 GB, free: 7.992 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_2): time 0.004152/0.3491, allocations: 3.657 MB / 0.5302 GB, free: 5.32 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001433/0.3505, allocations: 0.6779 MB / 0.5308 GB, free: 4.816 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004756/0.351, allocations: 18.94 kB / 0.5308 GB, free: 4.812 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003847/0.3514, allocations: 177.1 kB / 0.531 GB, free: 4.707 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002858/0.3517, allocations: 135 kB / 0.5311 GB, free: 4.621 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000635/0.3523, allocations: 360.6 kB / 0.5315 GB, free: 4.43 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008436/0.3531, allocations: 0.8401 MB / 0.5323 GB, free: 4.039 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006222/0.3538, allocations: 0.4912 MB / 0.5328 GB, free: 3.719 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002489/0.354, allocations: 344.3 kB / 0.5331 GB, free: 3.527 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004332/0.3544, allocations: 429.9 kB / 0.5335 GB, free: 3.27 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001188/0.3546, allocations: 85.16 kB / 0.5336 GB, free: 3.27 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001912/0.3547, allocations: 118.3 kB / 0.5337 GB, free: 3.258 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003079/0.3551, allocations: 440.2 kB / 0.5341 GB, free: 3.055 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002991/0.3554, allocations: 0.6122 MB / 0.5347 GB, free: 2.578 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00121/0.3566, allocations: 1.256 MB / 0.536 GB, free: 1.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.327e-06/0.3566, allocations: 3.938 kB / 0.536 GB, free: 1.906 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3566, allocations: 0.5625 kB / 0.536 GB, free: 1.906 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.965e-05/0.3566, allocations: 1.438 kB / 0.536 GB, free: 1.906 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.001819/0.3584, allocations: 1.759 MB / 0.5377 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.3584, allocations: 12.97 kB / 0.5377 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001596/0.3586, allocations: 169.2 kB / 0.5378 GB, free: 424 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001684/0.3588, allocations: 209 kB / 0.538 GB, free: 308 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008553/0.3596, allocations: 0.7142 MB / 0.5387 GB, free: 15.72 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.881e-05/0.3597, allocations: 78.48 kB / 0.5388 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001065/0.3598, allocations: 109.1 kB / 0.5389 GB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001694/0.3615, allocations: 1.168 MB / 0.5401 GB, free: 14.98 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.625e-05/0.3615, allocations: 7.938 kB / 0.5401 GB, free: 14.98 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.852e-05/0.3616, allocations: 50.59 kB / 0.5401 GB, free: 14.94 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.06e-05/0.3616, allocations: 24.81 kB / 0.5401 GB, free: 14.94 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001575/0.3632, allocations: 1.104 MB / 0.5412 GB, free: 14.53 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004736/0.3679, allocations: 3.6 MB / 0.5447 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001704/0.3696, allocations: 1.301 MB / 0.546 GB, free: 11.5 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006339/0.3703, allocations: 465.8 kB / 0.5465 GB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.328e-05/0.3703, allocations: 28.25 kB / 0.5465 GB, free: 11.33 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.509e-05/0.3704, allocations: 39.34 kB / 0.5465 GB, free: 11.29 MB / 398.1 MB Notification: Performance of pre-optimization done (n=67): time 1.964e-06/0.3704, allocations: 0 / 0.5465 GB, free: 11.29 MB / 398.1 MB Notification: Performance of matching and sorting (n=67): time 0.001982/0.3723, allocations: 1.529 MB / 0.548 GB, free: 10.71 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.048e-05/0.3724, allocations: 66.34 kB / 0.5481 GB, free: 10.64 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00159/0.374, allocations: 1.291 MB / 0.5493 GB, free: 9.703 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.561e-05/0.374, allocations: 37.7 kB / 0.5494 GB, free: 9.66 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007676/0.3748, allocations: 0.7805 MB / 0.5501 GB, free: 8.871 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002073/0.375, allocations: 241.9 kB / 0.5504 GB, free: 8.633 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001709/0.3752, allocations: 110.3 kB / 0.5505 GB, free: 8.52 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001595/0.3753, allocations: 334 kB / 0.5508 GB, free: 8.188 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000564/0.3759, allocations: 437.1 kB / 0.5512 GB, free: 7.758 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007255/0.3766, allocations: 0.5278 MB / 0.5517 GB, free: 7.195 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001253/0.3779, allocations: 0.9981 MB / 0.5527 GB, free: 6.168 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.3779, allocations: 0 / 0.5527 GB, free: 6.168 MB / 398.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001615/0.3795, allocations: 1.191 MB / 0.5539 GB, free: 4.969 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.3795, allocations: 4.312 kB / 0.5539 GB, free: 4.965 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.375e-06/0.3795, allocations: 8 kB / 0.5539 GB, free: 4.957 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.724e-05/0.3795, allocations: 4 kB / 0.5539 GB, free: 4.953 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004728/0.38, allocations: 139.7 kB / 0.554 GB, free: 4.816 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.447e-05/0.38, allocations: 7.938 kB / 0.554 GB, free: 4.809 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002839/0.3803, allocations: 55.56 kB / 0.5541 GB, free: 4.754 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.571e-05/0.3804, allocations: 27.98 kB / 0.5541 GB, free: 4.727 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.0006994/0.3811, allocations: 365.5 kB / 0.5544 GB, free: 4.359 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001989/0.3813, allocations: 151 kB / 0.5546 GB, free: 4.211 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001745/0.383, allocations: 1.199 MB / 0.5558 GB, free: 3 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.226e-05/0.383, allocations: 8 kB / 0.5558 GB, free: 2.992 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.765e-06/0.383, allocations: 3.938 kB / 0.5558 GB, free: 2.988 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.736e-06/0.383, allocations: 3.984 kB / 0.5558 GB, free: 2.984 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003044/0.3861, allocations: 2.326 MB / 0.558 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/0.3861, allocations: 0 / 0.558 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004491/0.3865, allocations: 111.8 kB / 0.5581 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.208e-06/0.3865, allocations: 11.92 kB / 0.5582 GB, free: 492 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.368e-05/0.3866, allocations: 16 kB / 0.5582 GB, free: 476 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.451e-06/0.3866, allocations: 7.938 kB / 0.5582 GB, free: 468 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.3866, allocations: 0 / 0.5582 GB, free: 468 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002258/0.3888, allocations: 1.883 MB / 0.56 GB, free: 14.56 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002642/0.3891, allocations: 134.9 kB / 0.5602 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.074e-05/0.3892, allocations: 11.94 kB / 0.5602 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002158/0.3894, allocations: 12 kB / 0.5602 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.584e-05/0.3895, allocations: 44.58 kB / 0.5602 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.288e-05/0.3895, allocations: 19.98 kB / 0.5602 GB, free: 14.34 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001129/0.3906, allocations: 0.8967 MB / 0.5611 GB, free: 13.45 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3906, allocations: 0 / 0.5611 GB, free: 13.45 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000692/0.3913, allocations: 211.2 kB / 0.5613 GB, free: 13.24 MB / 414.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.002649/0.394, allocations: 2.448 MB / 0.5637 GB, free: 10.76 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001259/0.3952, allocations: 0.9543 MB / 0.5646 GB, free: 9.805 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.3952, allocations: 112 / 0.5646 GB, free: 9.805 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005927/0.3958, allocations: 0.4994 MB / 0.5651 GB, free: 9.309 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007364/0.3966, allocations: 88.27 kB / 0.5652 GB, free: 9.23 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01671/0.4133, allocations: 11.55 MB / 0.5765 GB, free: 13.49 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001094/0.4144, allocations: 1.307 MB / 0.5778 GB, free: 12.16 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002422/0.4146, allocations: 72.36 kB / 0.5778 GB, free: 12.09 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007515/0.4154, allocations: 0.5891 MB / 0.5784 GB, free: 11.5 MB / 430.1 MB Notification: Performance of SimCode: time 1.323e-06/0.4154, allocations: 7.938 kB / 0.5784 GB, free: 11.49 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06252/0.4779, allocations: 19.1 MB / 0.5971 GB, free: 8.488 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.74/15.22, allocations: 6.344 kB / 0.5971 GB, free: 8.484 MB / 446.1 MB " [Timeout remaining time 645] (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: 18.15971368999817] Failed to read output from testmodel.py, exit status != 0: 15.343149518001155 15.363606756 15.003309102 Calling exit ...