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/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_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/Complex 4.0.0+maint.om/package.mo): time 0.001747/0.001747, allocations: 174.5 kB / 7.647 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.465/1.465, allocations: 221.5 MB / 229.6 MB, free: 7.559 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.001073/0.001073, allocations: 103.8 kB / 280.5 MB, free: 5.301 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2359/0.2359, allocations: 28.84 MB / 360.1 MB, free: 2.195 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.191e-05/2.202e-05, allocations: 4 kB / 423.9 MB, free: 32.09 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.14/0.1401, allocations: 57.48 MB / 481.4 MB, free: 6.723 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4957/0.6359, allocations: 80.1 MB / 0.5483 GB, free: 10.63 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003093/0.6363, allocations: 62.78 kB / 0.5484 GB, free: 10.63 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.035/0.6713, allocations: 14.24 MB / 0.5623 GB, free: 6.062 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.6713, allocations: 0 / 0.5623 GB, free: 6.062 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001329/0.6715, allocations: 30.31 kB / 0.5623 GB, free: 6.062 MB / 362.7 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.002737/0.6742, allocations: 1.381 MB / 0.5636 GB, free: 5.07 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.473e-05/0.6743, allocations: 11.73 kB / 0.5637 GB, free: 5.066 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005104/0.6748, allocations: 201.5 kB / 0.5638 GB, free: 4.957 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001338/0.6762, allocations: 0.7609 MB / 0.5646 GB, free: 4.484 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.305e-05/0.6762, allocations: 34.59 kB / 0.5646 GB, free: 4.484 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002145/0.6764, allocations: 65.12 kB / 0.5647 GB, free: 4.477 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001784/0.6782, allocations: 1.17 MB / 0.5658 GB, free: 4.27 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001811/0.6801, allocations: 1.114 MB / 0.5669 GB, free: 3.883 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.45e-05/0.6801, allocations: 0 / 0.5669 GB, free: 3.883 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.675e-05/0.6802, allocations: 0 / 0.5669 GB, free: 3.883 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.61e-05/0.6802, allocations: 27.03 kB / 0.5669 GB, free: 3.883 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005346/0.6856, allocations: 3.664 MB / 0.5705 GB, free: 1.855 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001856/0.6874, allocations: 1.523 MB / 0.572 GB, free: 1.52 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006242/0.6881, allocations: 0.5282 MB / 0.5725 GB, free: 1.324 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.657e-05/0.6882, allocations: 28.28 kB / 0.5725 GB, free: 1.301 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.538e-05/0.6882, allocations: 46.5 kB / 0.5726 GB, free: 1.25 MB / 362.7 MB Notification: Performance of pre-optimization done (n=68): time 2.364e-06/0.6882, allocations: 0 / 0.5726 GB, free: 1.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=68): time 0.001826/0.6901, allocations: 1.24 MB / 0.5738 GB, free: 260 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.91e-05/0.6901, allocations: 59.97 kB / 0.5739 GB, free: 188 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001608/0.6917, allocations: 1.001 MB / 0.5748 GB, free: 15.4 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.511e-05/0.6918, allocations: 25.7 kB / 0.5749 GB, free: 15.37 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006806/0.6925, allocations: 0.7548 MB / 0.5756 GB, free: 14.95 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002405/0.6927, allocations: 220.5 kB / 0.5758 GB, free: 14.76 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.602e-05/0.6928, allocations: 0 / 0.5758 GB, free: 14.76 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001697/0.693, allocations: 336.2 kB / 0.5761 GB, free: 14.44 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007206/0.6937, allocations: 498.6 kB / 0.5766 GB, free: 14.08 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007874/0.6945, allocations: 0.5859 MB / 0.5772 GB, free: 13.61 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001038/0.6955, allocations: 0.5445 MB / 0.5777 GB, free: 13.2 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.161e-06/0.6955, allocations: 7.938 kB / 0.5777 GB, free: 13.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.002145/0.6977, allocations: 1.322 MB / 0.579 GB, free: 12.12 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.494e-05/0.6977, allocations: 15.89 kB / 0.579 GB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.6978, allocations: 0 / 0.579 GB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.503e-05/0.6978, allocations: 8 kB / 0.579 GB, free: 12.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005978/0.6984, allocations: 159.4 kB / 0.5792 GB, free: 11.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.537e-05/0.6984, allocations: 4 kB / 0.5792 GB, free: 11.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003308/0.6988, allocations: 43.42 kB / 0.5792 GB, free: 11.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001397/0.6989, allocations: 75.98 kB / 0.5793 GB, free: 11.84 MB / 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001975/0.6991, allocations: 124.5 kB / 0.5794 GB, free: 11.71 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001978/0.7011, allocations: 1.248 MB / 0.5806 GB, free: 10.71 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002355/0.7013, allocations: 142.2 kB / 0.5808 GB, free: 10.57 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00291/0.7043, allocations: 1.562 MB / 0.5823 GB, free: 9.344 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.151e-05/0.7043, allocations: 8 kB / 0.5823 GB, free: 9.336 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.706e-06/0.7043, allocations: 3.984 kB / 0.5823 GB, free: 9.332 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.7043, allocations: 4 kB / 0.5823 GB, free: 9.328 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003772/0.7081, allocations: 2.396 MB / 0.5847 GB, free: 7.438 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.7081, allocations: 4 kB / 0.5847 GB, free: 7.434 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005856/0.7087, allocations: 135.7 kB / 0.5848 GB, free: 7.305 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.341e-05/0.7087, allocations: 4 kB / 0.5848 GB, free: 7.301 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.533e-05/0.7088, allocations: 19.23 kB / 0.5848 GB, free: 7.285 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.893e-06/0.7088, allocations: 7.938 kB / 0.5848 GB, free: 7.277 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.7088, allocations: 0 / 0.5848 GB, free: 7.277 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003159/0.712, allocations: 2.159 MB / 0.5869 GB, free: 5.621 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002158/0.7122, allocations: 203.1 kB / 0.5871 GB, free: 5.406 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001209/0.7124, allocations: 4 kB / 0.5871 GB, free: 5.402 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002518/0.7126, allocations: 0 / 0.5871 GB, free: 5.402 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001264/0.7128, allocations: 52.31 kB / 0.5872 GB, free: 5.355 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001149/0.7129, allocations: 71.34 kB / 0.5872 GB, free: 5.293 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00118/0.7141, allocations: 0.7814 MB / 0.588 GB, free: 4.711 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.21e-07/0.7141, allocations: 4 kB / 0.588 GB, free: 4.707 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007784/0.7149, allocations: 194.8 kB / 0.5882 GB, free: 4.516 MB / 378.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 () * 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 (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.002833/0.7177, allocations: 2.384 MB / 0.5905 GB, free: 2.453 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001379/0.7191, allocations: 0.938 MB / 0.5914 GB, free: 1.703 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.294e-06/0.7191, allocations: 4.125 kB / 0.5914 GB, free: 1.699 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006015/0.7197, allocations: 498.5 kB / 0.5919 GB, free: 1.312 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006301/0.7204, allocations: 66.2 kB / 0.592 GB, free: 1.281 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005109/0.7255, allocations: 2.409 MB / 0.5943 GB, free: 15.05 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00138/0.7269, allocations: 1.343 MB / 0.5956 GB, free: 13.72 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002872/0.7272, allocations: 68.3 kB / 0.5957 GB, free: 13.65 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000662/0.7279, allocations: 0.5798 MB / 0.5963 GB, free: 13.56 MB / 394.7 MB Notification: Performance of SimCode: time 1.393e-06/0.7279, allocations: 0 / 0.5963 GB, free: 13.56 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05025/0.7781, allocations: 16.35 MB / 0.6122 GB, free: 13.23 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002328/0.7785, allocations: 128.5 kB / 0.6124 GB, free: 13.04 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.511/3.289, allocations: 3.25 kB / 0.6124 GB, free: 13.04 MB / 410.7 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3_fmu --startTime=1900 --stopTime=2100 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe 2>&1)