Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.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.001596/0.001596, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001847/0.001847, allocations: 213.7 kB / 22.25 MB, free: 4.855 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.341/1.341, allocations: 230.6 MB / 256 MB, free: 7.805 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.1736/0.1736, allocations: 29.24 MB / 341.7 MB, free: 5.609 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_1,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_1,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1",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.002174/0.002174, allocations: 67.84 kB / 478.4 MB, free: 392 kB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.299/0.3012, allocations: 60.79 MB / 0.5265 GB, free: 7.863 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_1): time 0.003991/0.3052, allocations: 3.067 MB / 0.5295 GB, free: 5.809 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001636/0.3068, allocations: 0.6635 MB / 0.5302 GB, free: 5.316 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000475/0.3073, allocations: 18.84 kB / 0.5302 GB, free: 5.312 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004075/0.3077, allocations: 166.2 kB / 0.5303 GB, free: 5.207 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003352/0.308, allocations: 124.9 kB / 0.5305 GB, free: 5.121 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007253/0.3087, allocations: 347.5 kB / 0.5308 GB, free: 4.941 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008563/0.3096, allocations: 0.8398 MB / 0.5316 GB, free: 4.551 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006328/0.3102, allocations: 470.6 kB / 0.5321 GB, free: 4.262 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003048/0.3105, allocations: 345.7 kB / 0.5324 GB, free: 4.07 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003269/0.3109, allocations: 376.3 kB / 0.5327 GB, free: 3.867 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001256/0.311, allocations: 85.22 kB / 0.5328 GB, free: 3.867 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002139/0.3112, allocations: 119 kB / 0.5329 GB, free: 3.855 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000349/0.3116, allocations: 444.4 kB / 0.5334 GB, free: 3.648 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002754/0.3118, allocations: 458.2 kB / 0.5338 GB, free: 3.336 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001175/0.313, allocations: 1.244 MB / 0.535 GB, free: 2.684 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.313, allocations: 1.594 kB / 0.535 GB, free: 2.684 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.313, allocations: 0 / 0.535 GB, free: 2.684 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.831e-05/0.313, allocations: 3.938 kB / 0.535 GB, free: 2.68 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: 259 * Number of variables: 259 Notification: Performance of Generate backend data structure: time 0.001803/0.3148, allocations: 1.712 MB / 0.5367 GB, free: 1.359 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.3149, allocations: 9.438 kB / 0.5367 GB, free: 1.359 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001659/0.3151, allocations: 173.1 kB / 0.5369 GB, free: 1.215 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000204/0.3153, allocations: 205.1 kB / 0.5371 GB, free: 1.102 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007768/0.316, allocations: 0.6948 MB / 0.5377 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.68e-05/0.3161, allocations: 77.97 kB / 0.5378 GB, free: 0.5 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001045/0.3162, allocations: 108 kB / 0.5379 GB, free: 472 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001366/0.3176, allocations: 1.147 MB / 0.539 GB, free: 15.81 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.592e-05/0.3176, allocations: 5.5 kB / 0.539 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.467e-05/0.3176, allocations: 41.19 kB / 0.5391 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.383e-05/0.3177, allocations: 29.66 kB / 0.5391 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00136/0.319, allocations: 1.059 MB / 0.5401 GB, free: 15.37 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004378/0.3234, allocations: 3.342 MB / 0.5434 GB, free: 13.01 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001477/0.3249, allocations: 1.238 MB / 0.5446 GB, free: 12.57 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004911/0.3254, allocations: 445.5 kB / 0.545 GB, free: 12.41 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.806e-05/0.3254, allocations: 26.08 kB / 0.5451 GB, free: 12.41 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.969e-05/0.3255, allocations: 41.56 kB / 0.5451 GB, free: 12.36 MB / 398.1 MB Notification: Performance of pre-optimization done (n=66): time 2.926e-06/0.3255, allocations: 0 / 0.5451 GB, free: 12.36 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.001811/0.3273, allocations: 1.457 MB / 0.5465 GB, free: 11.81 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.475e-05/0.3273, allocations: 58.94 kB / 0.5466 GB, free: 11.75 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001506/0.3288, allocations: 1.244 MB / 0.5478 GB, free: 11.07 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.494e-05/0.3289, allocations: 33.7 kB / 0.5478 GB, free: 11.03 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006057/0.3295, allocations: 0.7644 MB / 0.5486 GB, free: 10.26 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001812/0.3297, allocations: 242.1 kB / 0.5488 GB, free: 10.02 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001607/0.3298, allocations: 118.3 kB / 0.5489 GB, free: 9.898 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.33, allocations: 330 kB / 0.5492 GB, free: 9.57 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004838/0.3304, allocations: 421.1 kB / 0.5496 GB, free: 9.156 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005541/0.331, allocations: 0.5043 MB / 0.5501 GB, free: 8.617 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001045/0.332, allocations: 0.9435 MB / 0.551 GB, free: 7.645 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.332, allocations: 4 kB / 0.5511 GB, free: 7.641 MB / 398.1 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001372/0.3334, allocations: 1.141 MB / 0.5522 GB, free: 6.492 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.3334, allocations: 4 kB / 0.5522 GB, free: 6.488 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/0.3334, allocations: 4 kB / 0.5522 GB, free: 6.484 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.412e-05/0.3335, allocations: 8 kB / 0.5522 GB, free: 6.477 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004338/0.3339, allocations: 124.1 kB / 0.5523 GB, free: 6.355 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.766e-05/0.3339, allocations: 19.86 kB / 0.5523 GB, free: 6.336 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002784/0.3342, allocations: 55.58 kB / 0.5524 GB, free: 6.281 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.534e-05/0.3342, allocations: 20 kB / 0.5524 GB, free: 6.262 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 (81): * Single equations (assignments): 81 * 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.0005331/0.3348, allocations: 361.5 kB / 0.5527 GB, free: 5.898 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001621/0.3349, allocations: 139.1 kB / 0.5529 GB, free: 5.762 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001439/0.3364, allocations: 1.144 MB / 0.554 GB, free: 4.605 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.773e-06/0.3364, allocations: 7.938 kB / 0.554 GB, free: 4.598 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/0.3364, allocations: 3.938 kB / 0.554 GB, free: 4.594 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.3364, allocations: 7.984 kB / 0.554 GB, free: 4.586 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002663/0.3391, allocations: 2.181 MB / 0.5561 GB, free: 2.348 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.06e-06/0.3391, allocations: 8 kB / 0.5561 GB, free: 2.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004258/0.3395, allocations: 107.8 kB / 0.5562 GB, free: 2.234 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.024e-05/0.3395, allocations: 4 kB / 0.5562 GB, free: 2.23 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.457e-05/0.3395, allocations: 19.92 kB / 0.5563 GB, free: 2.211 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.24e-06/0.3395, allocations: 4 kB / 0.5563 GB, free: 2.207 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.3395, allocations: 0 / 0.5563 GB, free: 2.207 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001922/0.3415, allocations: 1.785 MB / 0.558 GB, free: 416 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002011/0.3417, allocations: 130.9 kB / 0.5581 GB, free: 284 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.974e-05/0.3417, allocations: 23.94 kB / 0.5582 GB, free: 260 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002026/0.3419, allocations: 8 kB / 0.5582 GB, free: 252 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.311e-05/0.342, allocations: 44.58 kB / 0.5582 GB, free: 208 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.318e-05/0.342, allocations: 23.94 kB / 0.5582 GB, free: 184 kB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001065/0.3431, allocations: 0.8519 MB / 0.5591 GB, free: 15.33 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3431, allocations: 0 / 0.5591 GB, free: 15.33 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005692/0.3437, allocations: 211.2 kB / 0.5593 GB, free: 15.12 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 (66): * Single equations (assignments): 66 * 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.002308/0.346, allocations: 2.369 MB / 0.5616 GB, free: 12.73 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001133/0.3471, allocations: 0.9119 MB / 0.5625 GB, free: 11.81 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.3471, allocations: 0 / 0.5625 GB, free: 11.81 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005155/0.3476, allocations: 479.6 kB / 0.5629 GB, free: 11.35 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000624/0.3483, allocations: 91.02 kB / 0.563 GB, free: 11.27 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01442/0.3627, allocations: 11.08 MB / 0.5738 GB, free: 0 / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007607/0.3634, allocations: 0.701 MB / 0.5745 GB, free: 15.26 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002484/0.3637, allocations: 76.34 kB / 0.5746 GB, free: 15.18 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006028/0.3643, allocations: 0.5657 MB / 0.5751 GB, free: 14.62 MB / 430.1 MB Notification: Performance of SimCode: time 1.092e-06/0.3643, allocations: 0 / 0.5751 GB, free: 14.62 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05239/0.4167, allocations: 18.4 MB / 0.5931 GB, free: 12.34 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.65, allocations: 11.69 kB / 0.5931 GB, free: 12.34 MB / 446.1 MB " [Timeout remaining time 648] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.sim & python3 -m fmpy simulate --output-file SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1_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_1.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.270871597807854] Failed to read output from testmodel.py, exit status != 0: 11.772814848925918 11.787571785999999 11.471538948 Calling exit ...