Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.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.001274/0.001274, allocations: 105.6 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.001374/0.001374, allocations: 212.9 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.401/1.401, allocations: 230.6 MB / 252.8 MB, free: 8.996 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.1825/0.1825, allocations: 29.22 MB / 338.1 MB, free: 7.059 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_3,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_3,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3",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.002919/0.002919, allocations: 71.88 kB / 473.2 MB, free: 2.938 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3321/0.3351, allocations: 60.75 MB / 0.5215 GB, free: 7.879 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_3): time 0.004217/0.3393, allocations: 3.65 MB / 0.525 GB, free: 5.199 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001796/0.3411, allocations: 0.6635 MB / 0.5257 GB, free: 4.711 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006201/0.3417, allocations: 22.97 kB / 0.5257 GB, free: 4.703 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004725/0.3422, allocations: 175.8 kB / 0.5259 GB, free: 4.598 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004665/0.3426, allocations: 132.8 kB / 0.526 GB, free: 4.516 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008249/0.3435, allocations: 353 kB / 0.5263 GB, free: 4.332 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001194/0.3447, allocations: 0.8363 MB / 0.5272 GB, free: 3.949 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00077/0.3454, allocations: 0.4982 MB / 0.5276 GB, free: 3.629 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003887/0.3458, allocations: 348.8 kB / 0.528 GB, free: 3.434 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004002/0.3462, allocations: 425.9 kB / 0.5284 GB, free: 3.18 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001965/0.3464, allocations: 84.97 kB / 0.5285 GB, free: 3.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002294/0.3466, allocations: 118.6 kB / 0.5286 GB, free: 3.168 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003525/0.347, allocations: 440.8 kB / 0.529 GB, free: 2.961 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003939/0.3474, allocations: 0.616 MB / 0.5296 GB, free: 2.48 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001472/0.3489, allocations: 1.258 MB / 0.5308 GB, free: 1.812 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.3489, allocations: 0 / 0.5308 GB, free: 1.812 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3489, allocations: 0.8438 kB / 0.5308 GB, free: 1.812 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.479e-05/0.3489, allocations: 1.469 kB / 0.5308 GB, free: 1.812 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: 263 * Number of variables: 263 Notification: Performance of Generate backend data structure: time 0.002352/0.3513, allocations: 1.839 MB / 0.5326 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.3513, allocations: 9.141 kB / 0.5326 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002065/0.3515, allocations: 168.6 kB / 0.5328 GB, free: 388 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002379/0.3518, allocations: 208.8 kB / 0.533 GB, free: 272 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00103/0.3528, allocations: 0.7704 MB / 0.5338 GB, free: 15.69 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.075e-05/0.3529, allocations: 87.08 kB / 0.5338 GB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001155/0.353, allocations: 104.8 kB / 0.5339 GB, free: 15.61 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001924/0.3549, allocations: 1.185 MB / 0.5351 GB, free: 15.1 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.436e-05/0.3549, allocations: 4.938 kB / 0.5351 GB, free: 15.09 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.361e-05/0.355, allocations: 45.53 kB / 0.5351 GB, free: 15.06 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.019e-05/0.355, allocations: 26.88 kB / 0.5352 GB, free: 15.06 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001739/0.3568, allocations: 1.107 MB / 0.5362 GB, free: 14.65 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005971/0.3628, allocations: 3.684 MB / 0.5398 GB, free: 12.03 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001821/0.3646, allocations: 1.3 MB / 0.5411 GB, free: 11.57 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006161/0.3652, allocations: 474.3 kB / 0.5416 GB, free: 11.39 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.538e-05/0.3653, allocations: 25.02 kB / 0.5416 GB, free: 11.39 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.78e-05/0.3653, allocations: 41.72 kB / 0.5416 GB, free: 11.34 MB / 398.1 MB Notification: Performance of pre-optimization done (n=68): time 4.088e-06/0.3653, allocations: 1.094 kB / 0.5416 GB, free: 11.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=68): time 0.002385/0.3677, allocations: 1.532 MB / 0.5431 GB, free: 10.77 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.155e-05/0.3678, allocations: 57.88 kB / 0.5432 GB, free: 10.71 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001982/0.3697, allocations: 1.293 MB / 0.5444 GB, free: 10.04 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.777e-05/0.3698, allocations: 36.36 kB / 0.5445 GB, free: 10 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000677/0.3705, allocations: 0.7917 MB / 0.5453 GB, free: 9.305 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002403/0.3708, allocations: 241 kB / 0.5455 GB, free: 9.094 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001927/0.3709, allocations: 113.8 kB / 0.5456 GB, free: 9.023 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.3711, allocations: 331.4 kB / 0.5459 GB, free: 8.699 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006141/0.3717, allocations: 440.7 kB / 0.5463 GB, free: 8.551 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006797/0.3724, allocations: 0.539 MB / 0.5469 GB, free: 8.051 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001332/0.3737, allocations: 1.002 MB / 0.5478 GB, free: 7.012 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.3737, allocations: 0 / 0.5478 GB, free: 7.012 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001927/0.3757, allocations: 1.199 MB / 0.549 GB, free: 5.805 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.613e-05/0.3757, allocations: 4 kB / 0.549 GB, free: 5.801 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.178e-05/0.3757, allocations: 4 kB / 0.549 GB, free: 5.797 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.483e-05/0.3757, allocations: 7.938 kB / 0.549 GB, free: 5.789 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005072/0.3762, allocations: 131.8 kB / 0.5491 GB, free: 5.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.621e-05/0.3762, allocations: 7.984 kB / 0.5492 GB, free: 5.652 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004284/0.3767, allocations: 63.55 kB / 0.5492 GB, free: 5.59 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.012e-05/0.3767, allocations: 20 kB / 0.5492 GB, free: 5.57 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 (83): * Single equations (assignments): 83 * 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.0007631/0.3775, allocations: 385.5 kB / 0.5496 GB, free: 5.184 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002423/0.3777, allocations: 147 kB / 0.5497 GB, free: 5.039 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00186/0.3796, allocations: 1.193 MB / 0.5509 GB, free: 3.84 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.147e-06/0.3796, allocations: 8 kB / 0.5509 GB, free: 3.832 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.625e-06/0.3796, allocations: 0 / 0.5509 GB, free: 3.832 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.057e-05/0.3796, allocations: 3.984 kB / 0.5509 GB, free: 3.828 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003406/0.383, allocations: 2.372 MB / 0.5532 GB, free: 1.395 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.383, allocations: 8 kB / 0.5532 GB, free: 1.387 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005006/0.3835, allocations: 111.8 kB / 0.5533 GB, free: 1.277 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.09e-05/0.3835, allocations: 4 kB / 0.5534 GB, free: 1.273 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.089e-05/0.3836, allocations: 19.92 kB / 0.5534 GB, free: 1.254 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.765e-06/0.3836, allocations: 4 kB / 0.5534 GB, free: 1.25 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/0.3836, allocations: 3.984 kB / 0.5534 GB, free: 1.246 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002459/0.386, allocations: 1.888 MB / 0.5552 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003109/0.3864, allocations: 212 kB / 0.5554 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.75e-05/0.3864, allocations: 12 kB / 0.5554 GB, free: 15.1 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00026/0.3867, allocations: 12 kB / 0.5554 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001147/0.3868, allocations: 44.44 kB / 0.5555 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.586e-05/0.3869, allocations: 19.75 kB / 0.5555 GB, free: 15.03 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001331/0.3882, allocations: 0.8926 MB / 0.5564 GB, free: 14.14 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3882, allocations: 0 / 0.5564 GB, free: 14.14 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000733/0.3889, allocations: 219.2 kB / 0.5566 GB, free: 13.92 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 (68): * Single equations (assignments): 68 * 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.002872/0.3918, allocations: 2.456 MB / 0.559 GB, free: 11.44 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001426/0.3932, allocations: 0.9651 MB / 0.5599 GB, free: 10.47 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.3932, allocations: 3.938 kB / 0.5599 GB, free: 10.47 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006632/0.3939, allocations: 0.495 MB / 0.5604 GB, free: 9.973 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007867/0.3947, allocations: 95.3 kB / 0.5605 GB, free: 9.887 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01724/0.4119, allocations: 11.55 MB / 0.5718 GB, free: 14.15 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001241/0.4132, allocations: 1.311 MB / 0.5731 GB, free: 12.81 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002661/0.4134, allocations: 72.39 kB / 0.5731 GB, free: 12.74 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007182/0.4141, allocations: 0.5852 MB / 0.5737 GB, free: 12.15 MB / 430.1 MB Notification: Performance of SimCode: time 1.001e-06/0.4141, allocations: 4 kB / 0.5737 GB, free: 12.15 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05113/0.4653, allocations: 18.65 MB / 0.5919 GB, free: 9.574 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.57/11.03, allocations: 8.062 kB / 0.5919 GB, free: 9.566 MB / 446.1 MB " [Timeout remaining time 649] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.sim & python3 -m fmpy simulate --output-file SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3_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_3.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.72258012695238] Failed to read output from testmodel.py, exit status != 0: 11.118840826209635 11.142603194 10.789126849 Calling exit ...