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.001819/0.001819, allocations: 103.3 kB / 16.45 MB, free: 6.449 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.002266/0.002266, allocations: 212 kB / 19.43 MB, free: 3.637 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.409/1.409, allocations: 230.6 MB / 252.8 MB, free: 8.961 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.1911/0.1911, allocations: 29.23 MB / 338.1 MB, free: 6.957 MB / 270.1 MB " [Timeout remaining time 180] 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.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.001927/0.001927, allocations: 71.02 kB / 473.2 MB, free: 2.91 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3259/0.3278, allocations: 60.76 MB / 0.5215 GB, free: 7.879 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.004407/0.3322, allocations: 3.667 MB / 0.5251 GB, free: 5.188 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001885/0.3341, allocations: 0.677 MB / 0.5257 GB, free: 4.688 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000578/0.3347, allocations: 22.44 kB / 0.5257 GB, free: 4.68 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004759/0.3352, allocations: 173.8 kB / 0.5259 GB, free: 4.578 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003604/0.3355, allocations: 135.4 kB / 0.526 GB, free: 4.496 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008457/0.3364, allocations: 363.6 kB / 0.5264 GB, free: 4.305 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001024/0.3374, allocations: 0.845 MB / 0.5272 GB, free: 3.918 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007194/0.3381, allocations: 0.4987 MB / 0.5277 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000276/0.3384, allocations: 351.8 kB / 0.528 GB, free: 3.402 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003282/0.3387, allocations: 432.6 kB / 0.5284 GB, free: 3.145 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001415/0.3389, allocations: 85.31 kB / 0.5285 GB, free: 3.145 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002133/0.3391, allocations: 119.6 kB / 0.5286 GB, free: 3.133 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003487/0.3394, allocations: 455.3 kB / 0.5291 GB, free: 2.922 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003336/0.3398, allocations: 0.6276 MB / 0.5297 GB, free: 2.434 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00138/0.3412, allocations: 1.291 MB / 0.5309 GB, free: 1.75 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.3412, allocations: 0.5156 kB / 0.5309 GB, free: 1.75 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3412, allocations: 1.156 kB / 0.5309 GB, free: 1.75 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.809e-05/0.3412, allocations: 0 / 0.5309 GB, free: 1.75 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.002105/0.3433, allocations: 1.89 MB / 0.5328 GB, free: 412 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.3433, allocations: 13.78 kB / 0.5328 GB, free: 408 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002087/0.3435, allocations: 184.1 kB / 0.533 GB, free: 280 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002375/0.3438, allocations: 213.4 kB / 0.5332 GB, free: 160 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009912/0.3448, allocations: 0.7743 MB / 0.5339 GB, free: 15.58 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.147e-05/0.3448, allocations: 78.69 kB / 0.534 GB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000128/0.345, allocations: 110.7 kB / 0.5341 GB, free: 15.51 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00185/0.3468, allocations: 1.294 MB / 0.5354 GB, free: 14.91 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.64e-05/0.3468, allocations: 9.25 kB / 0.5354 GB, free: 14.91 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.6e-05/0.3469, allocations: 49.61 kB / 0.5354 GB, free: 14.87 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.291e-05/0.347, allocations: 46.61 kB / 0.5355 GB, free: 14.86 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001705/0.3487, allocations: 1.232 MB / 0.5367 GB, free: 14.41 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005571/0.3543, allocations: 3.912 MB / 0.5405 GB, free: 11.63 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001692/0.3559, allocations: 1.331 MB / 0.5418 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006315/0.3566, allocations: 482.7 kB / 0.5423 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001041/0.3567, allocations: 32.61 kB / 0.5423 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.7e-05/0.3567, allocations: 39.59 kB / 0.5423 GB, free: 10.9 MB / 398.1 MB Notification: Performance of pre-optimization done (n=70): time 2.284e-06/0.3567, allocations: 0 / 0.5423 GB, free: 10.9 MB / 398.1 MB Notification: Performance of matching and sorting (n=70): time 0.002258/0.359, allocations: 1.568 MB / 0.5439 GB, free: 10.31 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.276e-05/0.359, allocations: 89.33 kB / 0.544 GB, free: 10.21 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001804/0.3608, allocations: 1.366 MB / 0.5453 GB, free: 9.508 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.037e-05/0.3609, allocations: 37.08 kB / 0.5453 GB, free: 9.469 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007069/0.3616, allocations: 0.8574 MB / 0.5462 GB, free: 8.715 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002233/0.3618, allocations: 258.9 kB / 0.5464 GB, free: 8.488 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002306/0.3621, allocations: 158.7 kB / 0.5466 GB, free: 8.344 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001664/0.3622, allocations: 337.9 kB / 0.5469 GB, free: 8.008 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006636/0.3629, allocations: 485.8 kB / 0.5473 GB, free: 7.531 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000876/0.3638, allocations: 0.7083 MB / 0.548 GB, free: 6.715 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001568/0.3653, allocations: 1.249 MB / 0.5493 GB, free: 5.352 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.114e-06/0.3653, allocations: 4 kB / 0.5493 GB, free: 5.348 MB / 398.1 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.002052/0.3674, allocations: 1.386 MB / 0.5506 GB, free: 3.953 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.445e-05/0.3674, allocations: 19.86 kB / 0.5506 GB, free: 3.934 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.42e-05/0.3674, allocations: 8 kB / 0.5506 GB, free: 3.926 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.492e-05/0.3675, allocations: 12 kB / 0.5507 GB, free: 3.914 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006309/0.3681, allocations: 187.7 kB / 0.5508 GB, free: 3.73 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.891e-05/0.3681, allocations: 16.5 kB / 0.5508 GB, free: 3.715 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004395/0.3685, allocations: 95.34 kB / 0.5509 GB, free: 3.621 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.219e-05/0.3686, allocations: 40 kB / 0.551 GB, free: 3.582 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.0006487/0.3693, allocations: 397.3 kB / 0.5514 GB, free: 3.184 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002152/0.3695, allocations: 162.9 kB / 0.5515 GB, free: 3.023 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001836/0.3713, allocations: 1.241 MB / 0.5527 GB, free: 1.777 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.468e-06/0.3713, allocations: 8 kB / 0.5527 GB, free: 1.77 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.209e-06/0.3713, allocations: 0 / 0.5527 GB, free: 1.77 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.137e-06/0.3713, allocations: 3.984 kB / 0.5527 GB, free: 1.766 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003218/0.3746, allocations: 2.404 MB / 0.5551 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.3746, allocations: 0 / 0.5551 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005083/0.3751, allocations: 123.8 kB / 0.5552 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.683e-06/0.3751, allocations: 8 kB / 0.5552 GB, free: 15.17 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.844e-05/0.3751, allocations: 15.98 kB / 0.5552 GB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.23e-06/0.3751, allocations: 4 kB / 0.5552 GB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.3751, allocations: 0 / 0.5552 GB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002511/0.3776, allocations: 1.989 MB / 0.5572 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002567/0.3779, allocations: 220 kB / 0.5574 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.888e-05/0.378, allocations: 12 kB / 0.5574 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002781/0.3783, allocations: 12 kB / 0.5574 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.8e-05/0.3784, allocations: 48.44 kB / 0.5574 GB, free: 12.84 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.29e-05/0.3784, allocations: 23.98 kB / 0.5575 GB, free: 12.81 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001294/0.3797, allocations: 0.9336 MB / 0.5584 GB, free: 11.88 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3797, allocations: 3.938 kB / 0.5584 GB, free: 11.88 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007777/0.3805, allocations: 231.2 kB / 0.5586 GB, free: 11.65 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.002857/0.3833, allocations: 2.569 MB / 0.5611 GB, free: 9.059 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001561/0.3849, allocations: 1.052 MB / 0.5621 GB, free: 8.008 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.509e-06/0.3849, allocations: 4.5 kB / 0.5621 GB, free: 8.004 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006816/0.3856, allocations: 0.5067 MB / 0.5626 GB, free: 7.496 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007417/0.3863, allocations: 96.48 kB / 0.5627 GB, free: 7.402 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0173/0.4036, allocations: 12.43 MB / 0.5749 GB, free: 10.55 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001107/0.4047, allocations: 1.338 MB / 0.5762 GB, free: 9.188 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004005/0.4051, allocations: 136.8 kB / 0.5763 GB, free: 9.051 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007364/0.4059, allocations: 0.6203 MB / 0.5769 GB, free: 8.43 MB / 430.1 MB Notification: Performance of SimCode: time 7.82e-07/0.4059, allocations: 0 / 0.5769 GB, free: 8.43 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07376/0.4796, allocations: 19.57 MB / 0.596 GB, free: 4.922 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.8/11.28, allocations: 8.828 kB / 0.596 GB, free: 4.914 MB / 446.1 MB " [Timeout remaining time 649] (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: 14.130183273926377] Failed to read output from testmodel.py, exit status != 0: 11.364265834912658 11.379466265 11.035194955 Calling exit ...