Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.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_4,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_4,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4",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.01189/0.01189, allocations: 170.7 kB / 15.11 MB, free: 6.039 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.573/1.573, allocations: 223.2 MB / 239 MB, free: 40 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 89 kB / 290.2 MB, free: 4.535 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2071/0.2071, allocations: 28.83 MB / 370.2 MB, free: 28 kB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003219/0.0003219, allocations: 7.594 kB / 438.2 MB, free: 88.2 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1008, allocations: 57.49 MB / 495.7 MB, free: 31.61 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3249/0.4258, allocations: 80.89 MB / 0.5631 GB, free: 11.52 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002068/0.426, allocations: 65.25 kB / 0.5631 GB, free: 11.52 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03662/0.4627, allocations: 14.58 MB / 0.5774 GB, free: 8.645 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.4627, allocations: 0 / 0.5774 GB, free: 8.645 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.768e-05/0.4628, allocations: 34.78 kB / 0.5774 GB, free: 8.641 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: 290 * Number of variables: 290 Notification: Performance of Generate backend data structure: time 0.002401/0.4652, allocations: 1.65 MB / 0.579 GB, free: 7.434 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.31e-05/0.4653, allocations: 8.656 kB / 0.579 GB, free: 7.434 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003074/0.4656, allocations: 188.8 kB / 0.5792 GB, free: 7.352 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003116/0.4659, allocations: 207.9 kB / 0.5794 GB, free: 7.238 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001187/0.4671, allocations: 0.7765 MB / 0.5802 GB, free: 6.742 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.976e-05/0.4672, allocations: 84.5 kB / 0.5802 GB, free: 6.734 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001389/0.4673, allocations: 109.2 kB / 0.5803 GB, free: 6.734 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001756/0.4691, allocations: 1.39 MB / 0.5817 GB, free: 6.258 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.116e-05/0.4691, allocations: 3.938 kB / 0.5817 GB, free: 6.254 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.458e-05/0.4692, allocations: 49.83 kB / 0.5817 GB, free: 6.254 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.351e-05/0.4693, allocations: 46.23 kB / 0.5818 GB, free: 6.25 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001732/0.471, allocations: 1.375 MB / 0.5831 GB, free: 5.949 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005063/0.4761, allocations: 4.1 MB / 0.5871 GB, free: 3.684 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001827/0.4779, allocations: 1.601 MB / 0.5887 GB, free: 3.297 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.025e-05/0.478, allocations: 34.36 kB / 0.5887 GB, free: 3.289 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.18e-05/0.4781, allocations: 45.7 kB / 0.5888 GB, free: 3.246 MB / 378.7 MB Notification: Performance of pre-optimization done (n=70): time 2.565e-06/0.4781, allocations: 0 / 0.5888 GB, free: 3.246 MB / 378.7 MB Notification: Performance of matching and sorting (n=70): time 0.002244/0.4803, allocations: 1.819 MB / 0.5906 GB, free: 2.781 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.146e-05/0.4804, allocations: 85.5 kB / 0.5906 GB, free: 2.684 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001089/0.4815, allocations: 1.176 MB / 0.5918 GB, free: 2.328 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.168e-05/0.4816, allocations: 35.2 kB / 0.5918 GB, free: 2.297 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004086/0.482, allocations: 0.8451 MB / 0.5926 GB, free: 1.926 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001507/0.4821, allocations: 244.5 kB / 0.5929 GB, free: 1.754 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.476e-05/0.4822, allocations: 21.91 kB / 0.5929 GB, free: 1.75 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.858e-05/0.4823, allocations: 343.9 kB / 0.5932 GB, free: 1.43 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006553/0.4829, allocations: 0.5384 MB / 0.5938 GB, free: 1.309 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007291/0.4837, allocations: 0.8012 MB / 0.5945 GB, free: 0.8633 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007222/0.4844, allocations: 0.6144 MB / 0.5951 GB, free: 0.7383 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.4844, allocations: 3.812 kB / 0.5951 GB, free: 0.7383 MB / 378.7 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.001889/0.4863, allocations: 1.57 MB / 0.5967 GB, free: 316 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.069e-05/0.4863, allocations: 7.812 kB / 0.5967 GB, free: 316 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.4863, allocations: 7.562 kB / 0.5967 GB, free: 316 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.443e-05/0.4864, allocations: 15.62 kB / 0.5967 GB, free: 312 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006218/0.487, allocations: 213.4 kB / 0.5969 GB, free: 268 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.745e-05/0.487, allocations: 23.27 kB / 0.5969 GB, free: 260 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004045/0.4874, allocations: 76.44 kB / 0.597 GB, free: 220 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001188/0.4876, allocations: 92.38 kB / 0.5971 GB, free: 212 kB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * 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 (109): * Single equations (assignments): 109 * 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.0007075/0.4883, allocations: 399.3 kB / 0.5975 GB, free: 28 kB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002172/0.4885, allocations: 155.7 kB / 0.5976 GB, free: 15.94 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002488/0.491, allocations: 1.657 MB / 0.5992 GB, free: 15.53 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.491, allocations: 3.781 kB / 0.5992 GB, free: 15.53 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.491, allocations: 3.75 kB / 0.5992 GB, free: 15.53 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/0.491, allocations: 3.984 kB / 0.5992 GB, free: 15.52 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003171/0.4942, allocations: 2.602 MB / 0.6018 GB, free: 14.62 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.695e-06/0.4942, allocations: 3.984 kB / 0.6018 GB, free: 14.62 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005635/0.4948, allocations: 144.6 kB / 0.6019 GB, free: 14.59 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.155e-06/0.4948, allocations: 3.906 kB / 0.6019 GB, free: 14.59 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.171e-05/0.4949, allocations: 29.58 kB / 0.602 GB, free: 14.59 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/0.4949, allocations: 3.969 kB / 0.602 GB, free: 14.59 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.4949, allocations: 4 kB / 0.602 GB, free: 14.59 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002742/0.4977, allocations: 2.327 MB / 0.6042 GB, free: 13.87 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000245/0.4979, allocations: 217.1 kB / 0.6044 GB, free: 13.68 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001211/0.4981, allocations: 14.66 kB / 0.6045 GB, free: 13.68 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003037/0.4984, allocations: 14.47 kB / 0.6045 GB, free: 13.68 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001324/0.4985, allocations: 62.47 kB / 0.6045 GB, free: 13.65 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001085/0.4987, allocations: 72.98 kB / 0.6046 GB, free: 13.64 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001/0.4997, allocations: 0.9242 MB / 0.6055 GB, free: 13.36 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4997, allocations: 0 / 0.6055 GB, free: 13.36 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007048/0.5004, allocations: 231.5 kB / 0.6057 GB, free: 13.3 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (70): * Single equations (assignments): 70 * 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.002464/0.5029, allocations: 2.634 MB / 0.6083 GB, free: 12.2 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001331/0.5042, allocations: 1.082 MB / 0.6094 GB, free: 12.04 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.5042, allocations: 0 / 0.6094 GB, free: 12.04 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005109/0.5047, allocations: 0.523 MB / 0.6099 GB, free: 11.96 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005858/0.5053, allocations: 89.09 kB / 0.61 GB, free: 11.94 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01474/0.5201, allocations: 15.64 MB / 0.6252 GB, free: 15.41 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009669/0.5211, allocations: 1.37 MB / 0.6266 GB, free: 14.01 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0004695/0.5216, allocations: 128.9 kB / 0.6267 GB, free: 13.88 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006959/0.5223, allocations: 0.6281 MB / 0.6273 GB, free: 13.26 MB / 410.7 MB Notification: Performance of SimCode: time 9.52e-07/0.5223, allocations: 0 / 0.6273 GB, free: 13.26 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04023/0.5625, allocations: 18.19 MB / 0.6451 GB, free: 11.17 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002301/0.5628, allocations: 178 kB / 0.6452 GB, free: 10.93 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.933/3.496, allocations: 0 / 0.6452 GB, free: 10.93 MB / 426.7 MB (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4_fmu --startTime=1900 --stopTime=2000 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe 2>&1)