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.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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006358/0.006358, 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.002571/0.002571, allocations: 192.8 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.057/3.057, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.9193/0.9193, allocations: 28.81 MB / 319.2 MB, free: 5.656 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002563/0.002563, allocations: 55.91 kB / 386.7 MB, free: 3.512 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7365/0.7391, allocations: 56.41 MB / 443.1 MB, free: 39.75 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_3): time 0.007451/0.7466, allocations: 3.657 MB / 446.8 MB, free: 37.45 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00331/0.75, allocations: 0.6726 MB / 447.5 MB, free: 37.24 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001538/0.7516, allocations: 14 kB / 447.5 MB, free: 37.24 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001037/0.7527, allocations: 175.3 kB / 447.6 MB, free: 37.14 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001029/0.7539, allocations: 138.6 kB / 447.8 MB, free: 37.06 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001508/0.7554, allocations: 363.9 kB / 448.1 MB, free: 37.04 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001965/0.7574, allocations: 0.8349 MB / 449 MB, free: 36.95 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001403/0.7588, allocations: 0.6377 MB / 449.6 MB, free: 36.73 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005904/0.7594, allocations: 335.8 kB / 449.9 MB, free: 36.54 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006273/0.7601, allocations: 416.1 kB / 450.3 MB, free: 36.29 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002885/0.7604, allocations: 85.97 kB / 450.4 MB, free: 36.29 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004068/0.7608, allocations: 121.2 kB / 450.5 MB, free: 36.27 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005551/0.7614, allocations: 437.5 kB / 451 MB, free: 36.07 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006758/0.7621, allocations: 0.6169 MB / 451.6 MB, free: 35.59 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001964/0.7641, allocations: 1.174 MB / 452.8 MB, free: 34.99 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.344e-05/0.7641, allocations: 0 / 452.8 MB, free: 34.99 MB / 366.1 MB Notification: Performance of FrontEnd: time 5.891e-06/0.7641, allocations: 0 / 452.8 MB, free: 34.99 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.809e-05/0.7642, allocations: 3.938 kB / 452.8 MB, free: 34.99 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: 263 * Number of variables: 263 Notification: Performance of Generate backend data structure: time 0.003994/0.7682, allocations: 1.791 MB / 454.6 MB, free: 33.73 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.77e-05/0.7683, allocations: 8.438 kB / 454.6 MB, free: 33.73 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003168/0.7686, allocations: 175.6 kB / 454.7 MB, free: 33.6 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004424/0.7691, allocations: 198 kB / 454.9 MB, free: 33.5 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001285/0.7704, allocations: 0.7471 MB / 455.7 MB, free: 32.94 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.81e-05/0.7705, allocations: 75.47 kB / 455.8 MB, free: 32.91 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001934/0.7707, allocations: 107 kB / 455.9 MB, free: 32.87 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002879/0.7736, allocations: 1.181 MB / 457 MB, free: 32.38 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.486e-05/0.7737, allocations: 6.688 kB / 457 MB, free: 32.37 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.093e-05/0.7738, allocations: 42.34 kB / 457.1 MB, free: 32.34 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.16e-05/0.7739, allocations: 24.41 kB / 457.1 MB, free: 32.34 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002318/0.7762, allocations: 1.107 MB / 458.2 MB, free: 32.07 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008073/0.7843, allocations: 3.717 MB / 461.9 MB, free: 30.02 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002083/0.7864, allocations: 1.337 MB / 463.3 MB, free: 29.7 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007189/0.7872, allocations: 482.7 kB / 463.7 MB, free: 29.58 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000121/0.7873, allocations: 25.78 kB / 463.8 MB, free: 29.57 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.187e-05/0.7874, allocations: 45.97 kB / 463.8 MB, free: 29.52 MB / 366.1 MB Notification: Performance of pre-optimization done (n=68): time 4.999e-06/0.7874, allocations: 0 / 463.8 MB, free: 29.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=68): time 0.002869/0.7903, allocations: 1.531 MB / 465.3 MB, free: 29.1 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.433e-05/0.7903, allocations: 61.16 kB / 465.4 MB, free: 29.04 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002523/0.7929, allocations: 1.291 MB / 466.7 MB, free: 28.59 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.285e-05/0.793, allocations: 36.11 kB / 466.7 MB, free: 28.55 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008078/0.7938, allocations: 0.7822 MB / 467.5 MB, free: 27.94 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003089/0.7941, allocations: 224.1 kB / 467.7 MB, free: 27.76 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002865/0.7944, allocations: 118.7 kB / 467.8 MB, free: 27.7 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.7946, allocations: 332 kB / 468.2 MB, free: 27.38 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008799/0.7955, allocations: 440.1 kB / 468.6 MB, free: 27.29 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009751/0.7965, allocations: 0.5362 MB / 469.1 MB, free: 27.08 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002344/0.7988, allocations: 0.9996 MB / 470.1 MB, free: 26.73 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.618e-06/0.7989, allocations: 0 / 470.1 MB, free: 26.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003265/0.8021, allocations: 1.193 MB / 471.3 MB, free: 26.36 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.074e-05/0.8022, allocations: 8.75 kB / 471.3 MB, free: 26.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.719e-05/0.8022, allocations: 2.125 kB / 471.3 MB, free: 26.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.809e-05/0.8023, allocations: 5.594 kB / 471.3 MB, free: 26.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008592/0.8032, allocations: 140.4 kB / 471.5 MB, free: 26.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.393e-05/0.8032, allocations: 5.375 kB / 471.5 MB, free: 26.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007999/0.804, allocations: 56.91 kB / 471.5 MB, free: 26.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.403e-05/0.8041, allocations: 25.17 kB / 471.6 MB, free: 26.3 MB / 366.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.001118/0.8052, allocations: 386.2 kB / 471.9 MB, free: 26.08 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000474/0.8057, allocations: 140.9 kB / 472.1 MB, free: 26 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00374/0.8095, allocations: 1.198 MB / 473.3 MB, free: 25.65 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.778e-05/0.8096, allocations: 11 kB / 473.3 MB, free: 25.64 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.867e-05/0.8096, allocations: 4 kB / 473.3 MB, free: 25.64 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.826e-05/0.8096, allocations: 3.469 kB / 473.3 MB, free: 25.64 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006315/0.816, allocations: 2.376 MB / 475.7 MB, free: 24.76 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.009e-05/0.816, allocations: 1.031 kB / 475.7 MB, free: 24.76 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000956/0.817, allocations: 114.1 kB / 475.8 MB, free: 24.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.658e-05/0.817, allocations: 6.219 kB / 475.8 MB, free: 24.74 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.243e-05/0.8171, allocations: 16.97 kB / 475.8 MB, free: 24.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.237e-05/0.8171, allocations: 2.312 kB / 475.8 MB, free: 24.73 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.8171, allocations: 0 / 475.8 MB, free: 24.73 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00429/0.8214, allocations: 1.876 MB / 477.7 MB, free: 24.13 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004767/0.822, allocations: 216.8 kB / 477.9 MB, free: 23.94 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001523/0.8221, allocations: 10.75 kB / 477.9 MB, free: 23.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005409/0.8227, allocations: 12.12 kB / 477.9 MB, free: 23.92 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001676/0.8229, allocations: 41.08 kB / 478 MB, free: 23.92 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.385e-05/0.823, allocations: 20.38 kB / 478 MB, free: 23.91 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002525/0.8255, allocations: 0.8974 MB / 478.9 MB, free: 23.59 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.8255, allocations: 0 / 478.9 MB, free: 23.59 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001333/0.8269, allocations: 208.9 kB / 479.1 MB, free: 23.52 MB / 366.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.004419/0.8313, allocations: 2.455 MB / 481.5 MB, free: 22.36 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002886/0.8343, allocations: 1.02 MB / 482.6 MB, free: 22.13 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/0.8343, allocations: 0 / 482.6 MB, free: 22.13 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001182/0.8355, allocations: 0.5086 MB / 483.1 MB, free: 22.01 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001428/0.8369, allocations: 92.5 kB / 483.2 MB, free: 21.95 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03511/0.8721, allocations: 12.39 MB / 495.5 MB, free: 14.09 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002446/0.8746, allocations: 1.31 MB / 496.9 MB, free: 12.98 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006467/0.8753, allocations: 72.95 kB / 496.9 MB, free: 12.92 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001188/0.8765, allocations: 0.5887 MB / 497.5 MB, free: 12.38 MB / 366.1 MB Notification: Performance of SimCode: time 3.256e-06/0.8766, allocations: 0 / 497.5 MB, free: 12.38 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2187/1.095, allocations: 18.36 MB / 0.5038 GB, free: 12.42 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.65/18.75, allocations: 6.203 kB / 0.5038 GB, free: 12.42 MB / 382.1 MB (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)