Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.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_5,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_5,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_5",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.002244/0.002244, 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.004053/0.004053, allocations: 191 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.18/3.18, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.7571/0.7571, allocations: 28.81 MB / 319.2 MB, free: 5.734 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002967/0.002968, allocations: 59.89 kB / 386.7 MB, free: 3.531 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6672/0.6702, allocations: 56.41 MB / 443.1 MB, free: 39.59 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.006613/0.6769, allocations: 3.252 MB / 446.4 MB, free: 37.56 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002648/0.6796, allocations: 0.5323 MB / 446.9 MB, free: 37.38 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009156/0.6806, allocations: 11.53 kB / 446.9 MB, free: 37.38 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005219/0.6812, allocations: 144.1 kB / 447.1 MB, free: 37.3 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00058/0.6818, allocations: 120.5 kB / 447.2 MB, free: 37.23 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009156/0.6827, allocations: 294.4 kB / 447.5 MB, free: 37.21 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009501/0.6837, allocations: 0.7117 MB / 448.2 MB, free: 37.14 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000972/0.6847, allocations: 482.4 kB / 448.7 MB, free: 37.03 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004569/0.6851, allocations: 301.4 kB / 449 MB, free: 36.95 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004424/0.6856, allocations: 390.2 kB / 449.3 MB, free: 36.83 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002035/0.6858, allocations: 78.23 kB / 449.4 MB, free: 36.83 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003286/0.6862, allocations: 105.5 kB / 449.5 MB, free: 36.82 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004795/0.6867, allocations: 424.6 kB / 449.9 MB, free: 36.64 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005803/0.6873, allocations: 0.5777 MB / 450.5 MB, free: 36.19 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00159/0.6889, allocations: 1.065 MB / 451.6 MB, free: 35.64 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.415e-06/0.6889, allocations: 0 / 451.6 MB, free: 35.64 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.146e-06/0.6889, allocations: 0 / 451.6 MB, free: 35.64 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.166e-05/0.689, allocations: 2.75 kB / 451.6 MB, free: 35.64 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: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.003286/0.6923, allocations: 1.714 MB / 453.3 MB, free: 34.44 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.297e-05/0.6923, allocations: 11.72 kB / 453.3 MB, free: 34.43 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003027/0.6927, allocations: 176.5 kB / 453.5 MB, free: 34.31 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003585/0.693, allocations: 195.5 kB / 453.7 MB, free: 34.21 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006422/0.6937, allocations: 0.5693 MB / 454.2 MB, free: 33.72 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.465e-05/0.6938, allocations: 77.08 kB / 454.3 MB, free: 33.68 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001573/0.694, allocations: 100.3 kB / 454.4 MB, free: 33.65 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002398/0.6964, allocations: 1.088 MB / 455.5 MB, free: 33.29 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.744e-05/0.6965, allocations: 3.938 kB / 455.5 MB, free: 33.29 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.092e-05/0.6965, allocations: 40.66 kB / 455.5 MB, free: 33.25 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.579e-05/0.6966, allocations: 61.14 kB / 455.6 MB, free: 33.25 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002154/0.6988, allocations: 1.226 MB / 456.8 MB, free: 32.96 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005578/0.7044, allocations: 2.894 MB / 459.7 MB, free: 31.77 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002002/0.7064, allocations: 0.9968 MB / 460.7 MB, free: 31.53 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001014/0.7075, allocations: 0.4956 MB / 461.2 MB, free: 31.41 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000118/0.7076, allocations: 29.19 kB / 461.2 MB, free: 31.41 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.127e-05/0.7077, allocations: 46.03 kB / 461.3 MB, free: 31.36 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 6.883e-06/0.7077, allocations: 0 / 461.3 MB, free: 31.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.003578/0.7113, allocations: 1.586 MB / 462.9 MB, free: 30.95 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.123e-05/0.7114, allocations: 57.66 kB / 462.9 MB, free: 30.89 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002144/0.7135, allocations: 1.262 MB / 464.2 MB, free: 30.45 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.302e-05/0.7136, allocations: 40.48 kB / 464.2 MB, free: 30.41 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006346/0.7143, allocations: 0.789 MB / 465 MB, free: 29.79 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002105/0.7145, allocations: 226.7 kB / 465.2 MB, free: 29.61 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002306/0.7147, allocations: 131 kB / 465.4 MB, free: 29.54 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.4e-05/0.7148, allocations: 335.9 kB / 465.7 MB, free: 29.23 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008503/0.7157, allocations: 474.8 kB / 466.2 MB, free: 29.13 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001055/0.7168, allocations: 0.6581 MB / 466.8 MB, free: 28.82 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006281/0.7231, allocations: 2.132 MB / 468.9 MB, free: 28.15 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.177e-06/0.7231, allocations: 1.5 kB / 469 MB, free: 28.15 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00316/0.7263, allocations: 1.336 MB / 470.3 MB, free: 27.75 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.257e-05/0.7264, allocations: 8.469 kB / 470.3 MB, free: 27.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.554e-05/0.7264, allocations: 5.031 kB / 470.3 MB, free: 27.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.386e-05/0.7264, allocations: 10.44 kB / 470.3 MB, free: 27.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008526/0.7273, allocations: 179.4 kB / 470.5 MB, free: 27.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.018e-05/0.7273, allocations: 17.03 kB / 470.5 MB, free: 27.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006551/0.728, allocations: 84.67 kB / 470.6 MB, free: 27.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001036/0.7281, allocations: 36.88 kB / 470.6 MB, free: 27.67 MB / 366.1 MB Warning: Assuming fixed start value for the following 6 variables: years:VARIABLE(start = 1900.0 fixed = true ) "Time in calendar years" type: Real Population.level:VARIABLE(start = Population.x0 fixed = true ) "Reversible state variable" type: Real Natural_Resources.level:VARIABLE(start = Natural_Resources.x0 fixed = true ) "Reversible state variable" type: Real Capital_Investment.level:VARIABLE(start = Capital_Investment.x0 fixed = true ) "Reversible state variable" type: Real Pollution.level:VARIABLE(start = Pollution.x0 fixed = true ) "Reversible state variable" type: Real CIAF.level:VARIABLE(start = CIAF.x0 fixed = true ) "Reversible state variable" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 96 * 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.001099/0.7292, allocations: 394.6 kB / 471 MB, free: 27.45 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003002/0.7295, allocations: 139.2 kB / 471.1 MB, free: 27.38 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002848/0.7324, allocations: 1.254 MB / 472.4 MB, free: 27.02 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.748e-05/0.7324, allocations: 6.875 kB / 472.4 MB, free: 27.02 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.114e-05/0.7325, allocations: 3.281 kB / 472.4 MB, free: 27.02 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.42e-05/0.7325, allocations: 3.422 kB / 472.4 MB, free: 27.02 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005128/0.7376, allocations: 2.373 MB / 474.8 MB, free: 26.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.144e-06/0.7377, allocations: 0 / 474.8 MB, free: 26.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008816/0.7386, allocations: 125 kB / 474.9 MB, free: 26.15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.551e-05/0.7386, allocations: 9.844 kB / 474.9 MB, free: 26.14 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.887e-05/0.7387, allocations: 25.53 kB / 474.9 MB, free: 26.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.138e-05/0.7387, allocations: 2.25 kB / 474.9 MB, free: 26.12 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/0.7387, allocations: 1.188 kB / 474.9 MB, free: 26.12 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004468/0.7432, allocations: 1.935 MB / 476.9 MB, free: 25.52 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005338/0.7438, allocations: 199.9 kB / 477.1 MB, free: 25.34 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001255/0.7439, allocations: 11.78 kB / 477.1 MB, free: 25.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004199/0.7444, allocations: 25.28 kB / 477.1 MB, free: 25.33 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001983/0.7446, allocations: 45.72 kB / 477.2 MB, free: 25.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.445e-05/0.7447, allocations: 21.28 kB / 477.2 MB, free: 25.32 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002011/0.7467, allocations: 0.8781 MB / 478.1 MB, free: 25.01 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.7467, allocations: 1.188 kB / 478.1 MB, free: 25.01 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001187/0.7479, allocations: 210.2 kB / 478.3 MB, free: 24.94 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (years,Population.level,Natural_Resources.level,Capital_Investment.level,Pollution.level,CIAF.level) * 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.004631/0.7525, allocations: 2.514 MB / 480.8 MB, free: 23.79 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002953/0.7555, allocations: 1.119 MB / 481.9 MB, free: 23.53 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/0.7556, allocations: 1.312 kB / 481.9 MB, free: 23.53 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001169/0.7567, allocations: 0.5467 MB / 482.4 MB, free: 23.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001007/0.7578, allocations: 63.09 kB / 482.5 MB, free: 23.36 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02651/0.7843, allocations: 12.44 MB / 494.9 MB, free: 14.85 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001412/0.7858, allocations: 1.291 MB / 496.2 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0007763/0.7866, allocations: 126.3 kB / 496.4 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009275/0.7875, allocations: 0.5808 MB / 496.9 MB, free: 13.12 MB / 366.1 MB Notification: Performance of SimCode: time 1.112e-06/0.7876, allocations: 4 kB / 496.9 MB, free: 13.12 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6926/1.48, allocations: 17.93 MB / 0.5028 GB, free: 13.35 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.11/18.59, allocations: 9.203 kB / 0.5028 GB, free: 13.34 MB / 382.1 MB (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.sim & python3 -m fmpy simulate --output-file SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5_res.csv --start-time 0 --stop-time 233 --timeout 50 --relative-tolerance 1e-10 --interface-type ModelExchange --solver CVode --output-interval 0.0932 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_5.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe 2>&1)