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.001603/0.001603, allocations: 174.6 kB / 12.73 MB, free: 2.59 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.463/1.463, allocations: 221.4 MB / 234.6 MB, free: 14.45 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001028/0.001028, allocations: 99.02 kB / 285.6 MB, free: 12.98 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.4943/0.4943, allocations: 28.83 MB / 365.3 MB, free: 42.09 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.778e-05/3.798e-05, allocations: 4 kB / 430.8 MB, free: 4.328 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1436/0.1436, allocations: 57.48 MB / 488.2 MB, free: 10.78 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.506/0.6497, allocations: 80.77 MB / 0.5557 GB, free: 24.44 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002177/0.65, allocations: 63.25 kB / 0.5557 GB, free: 24.41 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0382/0.6882, allocations: 14.33 MB / 0.5697 GB, free: 15.65 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.485e-06/0.6883, allocations: 0 / 0.5697 GB, free: 15.65 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001808/0.6885, allocations: 28 kB / 0.5698 GB, free: 15.62 MB / 394.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.003432/0.6919, allocations: 1.385 MB / 0.5711 GB, free: 14.29 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.615e-05/0.692, allocations: 15.97 kB / 0.5711 GB, free: 14.27 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006352/0.6927, allocations: 189.2 kB / 0.5713 GB, free: 14.14 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006844/0.6934, allocations: 201.4 kB / 0.5715 GB, free: 13.94 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001794/0.6952, allocations: 0.757 MB / 0.5722 GB, free: 13.21 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.142e-05/0.6953, allocations: 78.56 kB / 0.5723 GB, free: 13.17 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002994/0.6956, allocations: 112.3 kB / 0.5724 GB, free: 13.09 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002632/0.6982, allocations: 1.268 MB / 0.5737 GB, free: 12.11 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.027e-05/0.6983, allocations: 0 / 0.5737 GB, free: 12.11 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001076/0.6984, allocations: 48.25 kB / 0.5737 GB, free: 12.09 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.362e-05/0.6984, allocations: 24 kB / 0.5737 GB, free: 12.07 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002017/0.7004, allocations: 1.242 MB / 0.5749 GB, free: 11.14 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006759/0.7072, allocations: 3.882 MB / 0.5787 GB, free: 7.824 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0022/0.7095, allocations: 1.564 MB / 0.5803 GB, free: 6.641 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006923/0.7102, allocations: 0.5449 MB / 0.5808 GB, free: 6.246 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.601e-05/0.7103, allocations: 24.77 kB / 0.5808 GB, free: 6.219 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.684e-05/0.7103, allocations: 40.94 kB / 0.5808 GB, free: 6.176 MB / 394.7 MB Notification: Performance of pre-optimization done (n=68): time 3.036e-06/0.7103, allocations: 3.938 kB / 0.5808 GB, free: 6.172 MB / 394.7 MB Notification: Performance of matching and sorting (n=68): time 0.001797/0.7121, allocations: 1.262 MB / 0.5821 GB, free: 5.168 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.18e-05/0.7122, allocations: 63.95 kB / 0.5821 GB, free: 5.094 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001792/0.714, allocations: 1.09 MB / 0.5832 GB, free: 4.23 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.219e-05/0.7141, allocations: 33.77 kB / 0.5832 GB, free: 4.199 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00056/0.7147, allocations: 0.7697 MB / 0.584 GB, free: 3.781 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001996/0.7149, allocations: 241.5 kB / 0.5842 GB, free: 3.574 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.994e-05/0.7149, allocations: 14.81 kB / 0.5842 GB, free: 3.57 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001058/0.715, allocations: 331.9 kB / 0.5846 GB, free: 3.25 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006496/0.7157, allocations: 0.4982 MB / 0.585 GB, free: 2.883 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006822/0.7164, allocations: 0.6076 MB / 0.5856 GB, free: 2.383 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007881/0.7172, allocations: 0.5348 MB / 0.5862 GB, free: 1.98 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.301e-06/0.7172, allocations: 0 / 0.5862 GB, free: 1.98 MB / 394.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001852/0.7191, allocations: 1.364 MB / 0.5875 GB, free: 0.8906 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.774e-05/0.7191, allocations: 15.45 kB / 0.5875 GB, free: 0.8789 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.212e-05/0.7191, allocations: 4 kB / 0.5875 GB, free: 0.875 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.876e-05/0.7192, allocations: 4 kB / 0.5875 GB, free: 0.8711 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005395/0.7197, allocations: 154.5 kB / 0.5877 GB, free: 0.7266 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.118e-05/0.7197, allocations: 7.984 kB / 0.5877 GB, free: 0.7188 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000379/0.7201, allocations: 45.59 kB / 0.5877 GB, free: 0.6836 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001411/0.7203, allocations: 78.59 kB / 0.5878 GB, free: 0.6133 MB / 394.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.0001727/0.7205, allocations: 155.3 kB / 0.5879 GB, free: 488 kB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002379/0.7207, allocations: 142.1 kB / 0.5881 GB, free: 344 kB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002809/0.7235, allocations: 1.587 MB / 0.5896 GB, free: 15.11 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-05/0.7235, allocations: 8 kB / 0.5896 GB, free: 15.1 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.054e-06/0.7236, allocations: 0 / 0.5896 GB, free: 15.1 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.198e-05/0.7236, allocations: 3.984 kB / 0.5896 GB, free: 15.1 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004034/0.7276, allocations: 2.553 MB / 0.5921 GB, free: 13.08 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.538e-06/0.7276, allocations: 0 / 0.5921 GB, free: 13.08 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005762/0.7282, allocations: 145.5 kB / 0.5923 GB, free: 12.94 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.173e-05/0.7282, allocations: 0 / 0.5923 GB, free: 12.94 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.922e-05/0.7283, allocations: 24.88 kB / 0.5923 GB, free: 12.93 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.031e-05/0.7283, allocations: 7.984 kB / 0.5923 GB, free: 12.92 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.7284, allocations: 0 / 0.5923 GB, free: 12.92 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003086/0.7315, allocations: 2.191 MB / 0.5944 GB, free: 11.24 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000292/0.7318, allocations: 203.1 kB / 0.5946 GB, free: 11.02 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001269/0.7319, allocations: 14.62 kB / 0.5946 GB, free: 11.02 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002709/0.7322, allocations: 10.62 kB / 0.5946 GB, free: 11.02 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001405/0.7323, allocations: 52.38 kB / 0.5947 GB, free: 10.97 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001143/0.7324, allocations: 74.78 kB / 0.5948 GB, free: 10.9 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001366/0.7338, allocations: 0.8645 MB / 0.5956 GB, free: 10.24 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7338, allocations: 0 / 0.5956 GB, free: 10.24 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007988/0.7346, allocations: 220.2 kB / 0.5958 GB, free: 10.04 MB / 410.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.00248/0.7371, allocations: 2.43 MB / 0.5982 GB, free: 7.957 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001281/0.7384, allocations: 0.9638 MB / 0.5991 GB, free: 7.18 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.7384, allocations: 0 / 0.5991 GB, free: 7.18 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005564/0.739, allocations: 0.5044 MB / 0.5996 GB, free: 6.773 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005827/0.7396, allocations: 77.7 kB / 0.5997 GB, free: 6.734 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004775/0.7444, allocations: 2.482 MB / 0.6021 GB, free: 4.469 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001301/0.7457, allocations: 1.34 MB / 0.6034 GB, free: 3.148 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003006/0.746, allocations: 76.39 kB / 0.6035 GB, free: 3.074 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006439/0.7467, allocations: 0.587 MB / 0.6041 GB, free: 2.984 MB / 410.7 MB Notification: Performance of SimCode: time 9.02e-07/0.7467, allocations: 0 / 0.6041 GB, free: 2.984 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04206/0.7887, allocations: 17.1 MB / 0.6208 GB, free: 2.035 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002116/0.789, allocations: 155.8 kB / 0.6209 GB, free: 1.801 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.259/3.048, allocations: 0 / 0.6209 GB, free: 1.801 MB / 426.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)