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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001936/0.001936, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.01945/0.01945, allocations: 197.3 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 3.047/3.047, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.7988/0.7988, allocations: 28.81 MB / 319.2 MB, free: 5.773 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002857/0.002857, allocations: 67.88 kB / 386.7 MB, free: 3.543 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6894/0.6923, allocations: 56.41 MB / 443.1 MB, free: 39.66 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.009802/0.7023, allocations: 3.665 MB / 446.8 MB, free: 37.37 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004336/0.7067, allocations: 0.6842 MB / 447.5 MB, free: 37.15 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001765/0.7086, allocations: 17.81 kB / 447.5 MB, free: 37.14 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001209/0.7098, allocations: 177.9 kB / 447.7 MB, free: 37.05 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001391/0.7114, allocations: 138.3 kB / 447.8 MB, free: 36.97 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00188/0.7133, allocations: 363.6 kB / 448.2 MB, free: 36.95 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00244/0.7157, allocations: 0.8504 MB / 449 MB, free: 36.85 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001738/0.7175, allocations: 0.6409 MB / 449.7 MB, free: 36.63 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000705/0.7182, allocations: 338.9 kB / 450 MB, free: 36.43 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006218/0.7189, allocations: 420.8 kB / 450.4 MB, free: 36.18 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002551/0.7191, allocations: 84.09 kB / 450.5 MB, free: 36.18 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004209/0.7196, allocations: 119.7 kB / 450.6 MB, free: 36.17 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006735/0.7203, allocations: 452.4 kB / 451 MB, free: 35.96 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008664/0.7211, allocations: 0.6305 MB / 451.7 MB, free: 35.47 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002505/0.7237, allocations: 1.211 MB / 452.9 MB, free: 34.86 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.394e-05/0.7237, allocations: 2.844 kB / 452.9 MB, free: 34.86 MB / 366.1 MB Notification: Performance of FrontEnd: time 5.941e-06/0.7237, allocations: 0 / 452.9 MB, free: 34.86 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.555e-05/0.7238, allocations: 0 / 452.9 MB, free: 34.86 MB / 366.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.004706/0.7285, allocations: 1.821 MB / 454.7 MB, free: 33.58 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001102/0.7287, allocations: 12.75 kB / 454.7 MB, free: 33.57 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004281/0.7291, allocations: 184.6 kB / 454.9 MB, free: 33.45 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006609/0.7298, allocations: 203.5 kB / 455.1 MB, free: 33.34 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002128/0.732, allocations: 0.7565 MB / 455.9 MB, free: 32.77 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001554/0.7322, allocations: 82.19 kB / 455.9 MB, free: 32.73 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002592/0.7324, allocations: 111.2 kB / 456.1 MB, free: 32.7 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003564/0.736, allocations: 1.291 MB / 457.3 MB, free: 32.17 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.496e-05/0.7361, allocations: 6.781 kB / 457.3 MB, free: 32.17 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001343/0.7363, allocations: 39.84 kB / 457.4 MB, free: 32.14 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000154/0.7364, allocations: 49.94 kB / 457.4 MB, free: 32.13 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003584/0.74, allocations: 1.245 MB / 458.7 MB, free: 31.83 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01339/0.7535, allocations: 3.944 MB / 462.6 MB, free: 29.64 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003208/0.7568, allocations: 1.371 MB / 464 MB, free: 29.28 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001178/0.7581, allocations: 496.3 kB / 464.5 MB, free: 29.16 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001879/0.7583, allocations: 37.89 kB / 464.5 MB, free: 29.14 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.455e-05/0.7584, allocations: 41.62 kB / 464.6 MB, free: 29.09 MB / 366.1 MB Notification: Performance of pre-optimization done (n=70): time 7.835e-06/0.7585, allocations: 0 / 464.6 MB, free: 29.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=70): time 0.004607/0.7631, allocations: 1.555 MB / 466.1 MB, free: 28.68 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001119/0.7633, allocations: 93.61 kB / 466.2 MB, free: 28.57 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005192/0.7685, allocations: 1.367 MB / 467.6 MB, free: 28.1 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002455/0.7688, allocations: 36.42 kB / 467.6 MB, free: 28.06 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001435/0.7703, allocations: 0.8454 MB / 468.5 MB, free: 27.4 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005927/0.7709, allocations: 249 kB / 468.7 MB, free: 27.2 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006717/0.7716, allocations: 152.9 kB / 468.8 MB, free: 27.12 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002185/0.7719, allocations: 340.2 kB / 469.2 MB, free: 26.8 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001485/0.7734, allocations: 477.2 kB / 469.6 MB, free: 26.7 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001891/0.7753, allocations: 0.7168 MB / 470.4 MB, free: 26.29 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003365/0.7787, allocations: 1.243 MB / 471.6 MB, free: 25.68 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.169e-05/0.7788, allocations: 1.469 kB / 471.6 MB, free: 25.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.00465/0.7834, allocations: 1.382 MB / 473 MB, free: 25.25 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.488e-05/0.7835, allocations: 12.97 kB / 473 MB, free: 25.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.132e-05/0.7836, allocations: 7.656 kB / 473 MB, free: 25.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.352e-05/0.7837, allocations: 12.53 kB / 473 MB, free: 25.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001214/0.7849, allocations: 190.9 kB / 473.2 MB, free: 25.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.839e-05/0.785, allocations: 17.09 kB / 473.2 MB, free: 25.22 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001429/0.7865, allocations: 89.83 kB / 473.3 MB, free: 25.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002009/0.7867, allocations: 38.66 kB / 473.3 MB, free: 25.15 MB / 366.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.001746/0.7885, allocations: 406.9 kB / 473.7 MB, free: 24.93 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009514/0.7894, allocations: 153.7 kB / 473.9 MB, free: 24.84 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004652/0.7941, allocations: 1.246 MB / 475.1 MB, free: 24.47 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.857e-05/0.7942, allocations: 6.781 kB / 475.1 MB, free: 24.47 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.08e-05/0.7942, allocations: 1.156 kB / 475.1 MB, free: 24.47 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.783e-05/0.7943, allocations: 4.438 kB / 475.2 MB, free: 24.47 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01012/0.8044, allocations: 2.409 MB / 477.6 MB, free: 23.58 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.656e-05/0.8045, allocations: 4 kB / 477.6 MB, free: 23.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001043/0.8056, allocations: 122.8 kB / 477.7 MB, free: 23.56 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.99e-05/0.8057, allocations: 2.438 kB / 477.7 MB, free: 23.56 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00011/0.8058, allocations: 15.41 kB / 477.7 MB, free: 23.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.624e-05/0.8058, allocations: 2.781 kB / 477.7 MB, free: 23.55 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.783e-06/0.8058, allocations: 3.328 kB / 477.7 MB, free: 23.55 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005789/0.8116, allocations: 1.987 MB / 479.7 MB, free: 22.86 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00106/0.8128, allocations: 208 kB / 479.9 MB, free: 22.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005394/0.8134, allocations: 11.88 kB / 479.9 MB, free: 22.67 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008384/0.8143, allocations: 19.38 kB / 479.9 MB, free: 22.66 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002105/0.8145, allocations: 45.14 kB / 480 MB, free: 22.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.642e-05/0.8146, allocations: 22.62 kB / 480 MB, free: 22.64 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003659/0.8183, allocations: 0.9386 MB / 480.9 MB, free: 22.32 MB / 366.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.8183, allocations: 0 / 480.9 MB, free: 22.32 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002271/0.8206, allocations: 224.8 kB / 481.2 MB, free: 22.24 MB / 366.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.006475/0.8271, allocations: 2.559 MB / 483.7 MB, free: 21 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004128/0.8314, allocations: 1.12 MB / 484.8 MB, free: 20.73 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.626e-06/0.8314, allocations: 0 / 484.8 MB, free: 20.73 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001662/0.8331, allocations: 0.5202 MB / 485.4 MB, free: 20.62 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002288/0.8354, allocations: 98.75 kB / 485.5 MB, free: 20.55 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04146/0.8769, allocations: 13.34 MB / 498.8 MB, free: 10.69 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002832/0.8799, allocations: 1.335 MB / 0.4884 GB, free: 9.551 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001237/0.8812, allocations: 129.3 kB / 0.4885 GB, free: 9.457 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001427/0.8827, allocations: 0.6219 MB / 0.4891 GB, free: 8.891 MB / 366.1 MB Notification: Performance of SimCode: time 5.24e-06/0.8827, allocations: 112 / 0.4891 GB, free: 8.891 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1983/1.081, allocations: 19.26 MB / 0.5079 GB, free: 7.773 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.49/18.57, allocations: 4.688 kB / 0.5079 GB, free: 7.773 MB / 382.1 MB (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)