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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.008146/0.008147, allocations: 169.2 kB / 15.11 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.515/1.515, allocations: 223.2 MB / 239 MB, free: 1.805 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009196/0.0009195, allocations: 96.64 kB / 290.2 MB, free: 13.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2215/0.2215, allocations: 28.84 MB / 370.2 MB, free: 13.93 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003496/0.0003496, allocations: 8 kB / 438.2 MB, free: 70.7 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1165, allocations: 57.48 MB / 495.7 MB, free: 13.18 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3584/0.4749, allocations: 80.69 MB / 0.5629 GB, free: 10.97 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002102/0.4751, allocations: 67.72 kB / 0.5629 GB, free: 10.93 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03173/0.5069, allocations: 14.15 MB / 0.5767 GB, free: 15.07 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.615e-06/0.5069, allocations: 0 / 0.5767 GB, free: 15.07 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001246/0.5071, allocations: 35.75 kB / 0.5768 GB, free: 15.04 MB / 378.7 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.002875/0.51, allocations: 1.556 MB / 0.5783 GB, free: 13.52 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.082e-05/0.51, allocations: 8.031 kB / 0.5783 GB, free: 13.51 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000374/0.5104, allocations: 175.8 kB / 0.5785 GB, free: 13.39 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003758/0.5108, allocations: 197.6 kB / 0.5787 GB, free: 13.2 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001327/0.5121, allocations: 0.7509 MB / 0.5794 GB, free: 12.47 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.863e-05/0.5122, allocations: 82.53 kB / 0.5795 GB, free: 12.43 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001555/0.5124, allocations: 100.9 kB / 0.5796 GB, free: 12.36 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002023/0.5144, allocations: 1.247 MB / 0.5808 GB, free: 11.38 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.533e-05/0.5144, allocations: 3.938 kB / 0.5808 GB, free: 11.38 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.528e-05/0.5145, allocations: 41.88 kB / 0.5808 GB, free: 11.37 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.932e-05/0.5146, allocations: 28 kB / 0.5809 GB, free: 11.34 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002058/0.5166, allocations: 1.206 MB / 0.582 GB, free: 10.44 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006715/0.5234, allocations: 3.789 MB / 0.5857 GB, free: 7.199 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002238/0.5256, allocations: 1.506 MB / 0.5872 GB, free: 6.07 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.891e-05/0.5257, allocations: 32.75 kB / 0.5872 GB, free: 6.039 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.008e-05/0.5258, allocations: 41.88 kB / 0.5873 GB, free: 5.996 MB / 378.7 MB Notification: Performance of pre-optimization done (n=66): time 2.575e-06/0.5258, allocations: 0 / 0.5873 GB, free: 5.996 MB / 378.7 MB Notification: Performance of matching and sorting (n=66): time 0.002533/0.5283, allocations: 1.691 MB / 0.5889 GB, free: 4.688 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.86e-05/0.5284, allocations: 63.91 kB / 0.589 GB, free: 4.609 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001575/0.53, allocations: 1.055 MB / 0.59 GB, free: 3.77 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.836e-05/0.5301, allocations: 33.52 kB / 0.5901 GB, free: 3.738 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005026/0.5306, allocations: 0.7591 MB / 0.5908 GB, free: 3.32 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002251/0.5308, allocations: 231.2 kB / 0.591 GB, free: 3.121 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.545e-05/0.5309, allocations: 7.812 kB / 0.591 GB, free: 3.121 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.531, allocations: 337.7 kB / 0.5913 GB, free: 2.797 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007044/0.5317, allocations: 487 kB / 0.5918 GB, free: 2.441 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000753/0.5325, allocations: 0.5773 MB / 0.5924 GB, free: 1.965 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007849/0.5333, allocations: 0.5106 MB / 0.5929 GB, free: 1.605 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.262e-06/0.5333, allocations: 4 kB / 0.5929 GB, free: 1.602 MB / 378.7 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001993/0.5353, allocations: 1.306 MB / 0.5942 GB, free: 0.5781 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.46e-05/0.5353, allocations: 8 kB / 0.5942 GB, free: 0.5703 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.298e-05/0.5354, allocations: 4 kB / 0.5942 GB, free: 0.5664 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.442e-05/0.5354, allocations: 4 kB / 0.5942 GB, free: 0.5625 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005684/0.536, allocations: 154.5 kB / 0.5943 GB, free: 428 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.036e-05/0.536, allocations: 7.984 kB / 0.5943 GB, free: 420 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003871/0.5364, allocations: 47.16 kB / 0.5944 GB, free: 380 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001444/0.5365, allocations: 74.55 kB / 0.5944 GB, free: 316 kB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008605/0.5374, allocations: 353.4 kB / 0.5948 GB, free: 32 kB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003246/0.5377, allocations: 138.2 kB / 0.5949 GB, free: 15.89 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002737/0.5405, allocations: 1.524 MB / 0.5964 GB, free: 14.73 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.919e-06/0.5405, allocations: 8 kB / 0.5964 GB, free: 14.72 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-06/0.5405, allocations: 4 kB / 0.5964 GB, free: 14.72 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.708e-06/0.5406, allocations: 7.984 kB / 0.5964 GB, free: 14.71 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003845/0.5444, allocations: 2.459 MB / 0.5988 GB, free: 12.78 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/0.5444, allocations: 0 / 0.5988 GB, free: 12.78 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005933/0.545, allocations: 131.2 kB / 0.5989 GB, free: 12.65 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.069e-05/0.5451, allocations: 0 / 0.5989 GB, free: 12.65 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.356e-05/0.5451, allocations: 26.98 kB / 0.599 GB, free: 12.63 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.528e-06/0.5451, allocations: 3.938 kB / 0.599 GB, free: 12.63 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.732e-06/0.5452, allocations: 4 kB / 0.599 GB, free: 12.62 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002724/0.5479, allocations: 2.097 MB / 0.601 GB, free: 11.04 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002872/0.5482, allocations: 210.6 kB / 0.6012 GB, free: 10.81 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001264/0.5483, allocations: 10.44 kB / 0.6012 GB, free: 10.81 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002451/0.5486, allocations: 10.56 kB / 0.6012 GB, free: 10.81 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000159/0.5488, allocations: 48 kB / 0.6013 GB, free: 10.77 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001208/0.5489, allocations: 71.53 kB / 0.6014 GB, free: 10.7 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001288/0.5502, allocations: 0.8393 MB / 0.6022 GB, free: 10.05 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.5502, allocations: 4 kB / 0.6022 GB, free: 10.05 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000681/0.5509, allocations: 208 kB / 0.6024 GB, free: 9.867 MB / 394.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002324/0.5532, allocations: 2.365 MB / 0.6047 GB, free: 7.848 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001189/0.5544, allocations: 0.9398 MB / 0.6056 GB, free: 7.094 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.5544, allocations: 4 kB / 0.6056 GB, free: 7.09 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004982/0.5549, allocations: 490.4 kB / 0.6061 GB, free: 6.703 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005296/0.5555, allocations: 76.25 kB / 0.6061 GB, free: 6.668 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01357/0.5691, allocations: 10.87 MB / 0.6168 GB, free: 11.77 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001579/0.5707, allocations: 1.323 MB / 0.6181 GB, free: 10.42 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003599/0.5711, allocations: 76.36 kB / 0.6181 GB, free: 10.34 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008014/0.5719, allocations: 0.5618 MB / 0.6187 GB, free: 9.781 MB / 410.7 MB Notification: Performance of SimCode: time 1.392e-06/0.572, allocations: 0 / 0.6187 GB, free: 9.781 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0426/0.6146, allocations: 16.62 MB / 0.6349 GB, free: 9.262 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002132/0.6148, allocations: 171.3 kB / 0.6351 GB, free: 9.023 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.495/3.11, allocations: 0 / 0.6351 GB, free: 9.023 MB / 426.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1_fmu --startTime=1900 --stopTime=2100 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe 2>&1)