Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.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_2,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_2,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2",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.001833/0.001833, allocations: 174.1 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.514/1.514, allocations: 221.4 MB / 234.6 MB, free: 14.39 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.0009332/0.0009335, allocations: 96.17 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.5368/0.5368, allocations: 28.83 MB / 365.3 MB, free: 42.06 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.8e-05/2.803e-05, allocations: 0 / 430.8 MB, free: 4.344 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.151/0.1511, allocations: 57.48 MB / 488.2 MB, free: 10.8 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5119/0.663, allocations: 80.75 MB / 0.5556 GB, free: 24.38 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002046/0.6633, allocations: 59.23 kB / 0.5557 GB, free: 24.36 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03385/0.6972, allocations: 14.32 MB / 0.5697 GB, free: 15.64 MB / 394.7 MB Notification: Performance of FrontEnd: time 8.61e-07/0.6972, allocations: 0 / 0.5697 GB, free: 15.64 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.567e-05/0.6973, allocations: 32 kB / 0.5697 GB, free: 15.61 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.001543/0.6988, allocations: 1.377 MB / 0.5711 GB, free: 14.28 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.6989, allocations: 12.03 kB / 0.5711 GB, free: 14.27 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002194/0.6991, allocations: 182.6 kB / 0.5712 GB, free: 14.15 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002005/0.6993, allocations: 201.4 kB / 0.5714 GB, free: 13.95 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009392/0.7002, allocations: 0.7604 MB / 0.5722 GB, free: 13.22 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.686e-05/0.7003, allocations: 77.86 kB / 0.5723 GB, free: 13.18 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000123/0.7004, allocations: 108.1 kB / 0.5724 GB, free: 13.11 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001611/0.7021, allocations: 1.267 MB / 0.5736 GB, free: 12.12 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.715e-05/0.7021, allocations: 4 kB / 0.5736 GB, free: 12.11 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.995e-05/0.7022, allocations: 44.5 kB / 0.5736 GB, free: 12.1 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.49e-05/0.7022, allocations: 25.03 kB / 0.5737 GB, free: 12.08 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001543/0.7037, allocations: 1.244 MB / 0.5749 GB, free: 11.14 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004245/0.708, allocations: 3.864 MB / 0.5787 GB, free: 7.844 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001796/0.7098, allocations: 1.555 MB / 0.5802 GB, free: 6.664 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005988/0.7104, allocations: 0.5436 MB / 0.5807 GB, free: 6.27 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.612e-05/0.7105, allocations: 28.2 kB / 0.5807 GB, free: 6.242 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.539e-05/0.7105, allocations: 46.3 kB / 0.5808 GB, free: 6.191 MB / 394.7 MB Notification: Performance of pre-optimization done (n=67): time 2.845e-06/0.7106, allocations: 3.938 kB / 0.5808 GB, free: 6.188 MB / 394.7 MB Notification: Performance of matching and sorting (n=67): time 0.001556/0.7121, allocations: 1.262 MB / 0.582 GB, free: 5.184 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.059e-05/0.7122, allocations: 59.97 kB / 0.5821 GB, free: 5.113 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001125/0.7133, allocations: 1.099 MB / 0.5831 GB, free: 4.242 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.848e-05/0.7134, allocations: 37.64 kB / 0.5832 GB, free: 4.211 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000421/0.7138, allocations: 0.7677 MB / 0.5839 GB, free: 3.793 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001645/0.7139, allocations: 233.4 kB / 0.5841 GB, free: 3.594 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.379e-05/0.714, allocations: 18.25 kB / 0.5842 GB, free: 3.586 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.893e-05/0.7141, allocations: 332.4 kB / 0.5845 GB, free: 3.266 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005844/0.7147, allocations: 0.4962 MB / 0.585 GB, free: 2.898 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006152/0.7153, allocations: 0.6021 MB / 0.5856 GB, free: 2.406 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006597/0.716, allocations: 0.5359 MB / 0.5861 GB, free: 2.004 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.716, allocations: 4 kB / 0.5861 GB, free: 2 MB / 394.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001567/0.7175, allocations: 1.352 MB / 0.5874 GB, free: 0.918 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.7176, allocations: 11.94 kB / 0.5874 GB, free: 0.9062 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.7176, allocations: 0 / 0.5874 GB, free: 0.9062 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.03e-05/0.7176, allocations: 8 kB / 0.5874 GB, free: 0.8984 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004905/0.7181, allocations: 147.3 kB / 0.5876 GB, free: 0.7578 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.255e-05/0.7181, allocations: 12.3 kB / 0.5876 GB, free: 0.7461 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002671/0.7184, allocations: 54.56 kB / 0.5876 GB, free: 0.7031 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001031/0.7185, allocations: 76.89 kB / 0.5877 GB, free: 0.6406 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 (82): * Single equations (assignments): 82 * 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.0001258/0.7186, allocations: 145.4 kB / 0.5878 GB, free: 0.5117 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001429/0.7188, allocations: 142.2 kB / 0.588 GB, free: 380 kB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00242/0.7212, allocations: 1.591 MB / 0.5895 GB, free: 15.14 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.663e-06/0.7212, allocations: 8 kB / 0.5895 GB, free: 15.13 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.7213, allocations: 0 / 0.5895 GB, free: 15.13 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.778e-06/0.7213, allocations: 3.984 kB / 0.5895 GB, free: 15.13 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003185/0.7245, allocations: 2.545 MB / 0.592 GB, free: 13.12 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.7245, allocations: 0 / 0.592 GB, free: 13.12 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005214/0.725, allocations: 135.7 kB / 0.5922 GB, free: 12.99 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.045e-06/0.725, allocations: 4 kB / 0.5922 GB, free: 12.98 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.786e-05/0.7251, allocations: 23.73 kB / 0.5922 GB, free: 12.97 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.45e-06/0.7251, allocations: 4 kB / 0.5922 GB, free: 12.96 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.7251, allocations: 4 kB / 0.5922 GB, free: 12.96 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002642/0.7277, allocations: 2.187 MB / 0.5943 GB, free: 11.29 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002031/0.728, allocations: 203.1 kB / 0.5945 GB, free: 11.07 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001023/0.7281, allocations: 14.38 kB / 0.5945 GB, free: 11.07 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002415/0.7283, allocations: 6.625 kB / 0.5945 GB, free: 11.07 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001155/0.7284, allocations: 53.62 kB / 0.5946 GB, free: 11.02 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001022/0.7286, allocations: 71.59 kB / 0.5947 GB, free: 10.96 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001148/0.7297, allocations: 0.8701 MB / 0.5955 GB, free: 10.29 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.7297, allocations: 3.938 kB / 0.5955 GB, free: 10.29 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006385/0.7304, allocations: 215.8 kB / 0.5957 GB, free: 10.09 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 (67): * Single equations (assignments): 67 * 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.002061/0.7324, allocations: 2.428 MB / 0.5981 GB, free: 8.004 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001075/0.7335, allocations: 0.9685 MB / 0.599 GB, free: 7.223 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.175e-06/0.7335, allocations: 0 / 0.599 GB, free: 7.223 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004798/0.734, allocations: 0.4977 MB / 0.5995 GB, free: 6.82 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00051/0.7345, allocations: 76.41 kB / 0.5996 GB, free: 6.789 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003649/0.7382, allocations: 2.477 MB / 0.602 GB, free: 4.527 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008646/0.7391, allocations: 1.344 MB / 0.6033 GB, free: 3.203 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002441/0.7393, allocations: 72.48 kB / 0.6034 GB, free: 3.129 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005072/0.7398, allocations: 0.585 MB / 0.604 GB, free: 3.039 MB / 410.7 MB Notification: Performance of SimCode: time 6.91e-07/0.7399, allocations: 8 kB / 0.604 GB, free: 3.031 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03435/0.7742, allocations: 17.09 MB / 0.6207 GB, free: 2.078 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001719/0.7744, allocations: 155.7 kB / 0.6208 GB, free: 1.844 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.558/3.333, allocations: 4.062 kB / 0.6208 GB, free: 1.84 MB / 426.7 MB (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2_fmu --startTime=1900 --stopTime=2100 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe 2>&1)