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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007855/0.007855, allocations: 103.6 kB / 15.73 MB, free: 6.051 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001918/0.001918, allocations: 190.8 kB / 16.67 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.31/1.31, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.172/0.172, allocations: 28.79 MB / 319.3 MB, free: 1.879 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00141/0.001411, allocations: 63.91 kB / 443.8 MB, free: 3.012 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1141, allocations: 56.41 MB / 0.4885 GB, free: 10.54 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_2): time 0.004982/0.1191, allocations: 3.654 MB / 0.4921 GB, free: 6.883 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001803/0.1209, allocations: 0.674 MB / 0.4928 GB, free: 6.207 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007389/0.1217, allocations: 15.94 kB / 0.4928 GB, free: 6.191 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006348/0.1223, allocations: 174.3 kB / 0.4929 GB, free: 6.02 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006366/0.123, allocations: 142.7 kB / 0.4931 GB, free: 5.879 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008688/0.1239, allocations: 355.5 kB / 0.4934 GB, free: 5.531 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001029/0.1249, allocations: 0.8483 MB / 0.4942 GB, free: 4.68 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008001/0.1257, allocations: 0.6442 MB / 0.4949 GB, free: 3.996 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002907/0.126, allocations: 330.4 kB / 0.4952 GB, free: 3.672 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003266/0.1264, allocations: 417.6 kB / 0.4956 GB, free: 3.262 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001208/0.1265, allocations: 88 kB / 0.4957 GB, free: 3.176 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001864/0.1267, allocations: 108 kB / 0.4958 GB, free: 3.07 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003144/0.127, allocations: 434.5 kB / 0.4962 GB, free: 2.645 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003852/0.1274, allocations: 0.6203 MB / 0.4968 GB, free: 2.02 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001104/0.1285, allocations: 1.253 MB / 0.498 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.299e-06/0.1285, allocations: 0 / 0.498 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1286, allocations: 0 / 0.498 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.498e-05/0.1286, allocations: 0 / 0.498 GB, free: 0.7617 MB / 382.1 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.001902/0.1305, allocations: 1.78 MB / 0.4997 GB, free: 14.92 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.1305, allocations: 8.031 kB / 0.4998 GB, free: 14.91 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001918/0.1307, allocations: 178.6 kB / 0.4999 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001918/0.1309, allocations: 198.4 kB / 0.5001 GB, free: 14.53 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008296/0.1318, allocations: 0.7512 MB / 0.5008 GB, free: 13.73 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.785e-05/0.1318, allocations: 82.48 kB / 0.5009 GB, free: 13.65 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001059/0.132, allocations: 108.3 kB / 0.501 GB, free: 13.54 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001446/0.1334, allocations: 1.174 MB / 0.5022 GB, free: 12.3 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.143e-05/0.1334, allocations: 7.938 kB / 0.5022 GB, free: 12.29 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.733e-05/0.1335, allocations: 48 kB / 0.5022 GB, free: 12.25 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.175e-05/0.1336, allocations: 28 kB / 0.5023 GB, free: 12.22 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0013/0.1349, allocations: 1.097 MB / 0.5033 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003709/0.1386, allocations: 3.658 MB / 0.5069 GB, free: 7.344 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001477/0.1401, allocations: 1.346 MB / 0.5082 GB, free: 5.984 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004936/0.1406, allocations: 482.6 kB / 0.5087 GB, free: 5.512 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.593e-05/0.1407, allocations: 28.53 kB / 0.5087 GB, free: 5.484 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.84e-05/0.1407, allocations: 39.12 kB / 0.5087 GB, free: 5.438 MB / 398.1 MB Notification: Performance of pre-optimization done (n=67): time 2.705e-06/0.1407, allocations: 0 / 0.5087 GB, free: 5.438 MB / 398.1 MB Notification: Performance of matching and sorting (n=67): time 0.001708/0.1424, allocations: 1.52 MB / 0.5102 GB, free: 3.91 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.772e-05/0.1425, allocations: 67.91 kB / 0.5103 GB, free: 3.832 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00128/0.1438, allocations: 1.292 MB / 0.5116 GB, free: 2.531 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.498e-05/0.1438, allocations: 33.7 kB / 0.5116 GB, free: 2.492 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005577/0.1444, allocations: 0.7755 MB / 0.5123 GB, free: 1.707 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001784/0.1446, allocations: 228.7 kB / 0.5126 GB, free: 1.48 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001528/0.1447, allocations: 114.3 kB / 0.5127 GB, free: 1.363 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.1449, allocations: 326 kB / 0.513 GB, free: 1.039 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004949/0.1454, allocations: 437.1 kB / 0.5134 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005654/0.1459, allocations: 0.5316 MB / 0.5139 GB, free: 48 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1921/0.338, allocations: 0.9925 MB / 0.5149 GB, free: 26.55 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.082e-06/0.3381, allocations: 1.375 kB / 0.5149 GB, free: 26.55 MB / 398.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001313/0.3394, allocations: 1.187 MB / 0.516 GB, free: 26.5 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.936e-05/0.3394, allocations: 4.5 kB / 0.516 GB, free: 26.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.415e-06/0.3394, allocations: 4.688 kB / 0.5161 GB, free: 26.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.351e-05/0.3395, allocations: 7.625 kB / 0.5161 GB, free: 26.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004537/0.3399, allocations: 130.3 kB / 0.5162 GB, free: 26.5 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.378e-05/0.34, allocations: 6.656 kB / 0.5162 GB, free: 26.5 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002309/0.3402, allocations: 52.55 kB / 0.5162 GB, free: 26.5 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.648e-05/0.3403, allocations: 29.06 kB / 0.5163 GB, free: 26.5 MB / 398.1 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 (82): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004485/0.3407, allocations: 376.6 kB / 0.5166 GB, free: 26.39 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001343/0.3408, allocations: 137.8 kB / 0.5168 GB, free: 26.39 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001391/0.3422, allocations: 1.197 MB / 0.5179 GB, free: 26.32 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.375e-06/0.3423, allocations: 8.531 kB / 0.5179 GB, free: 26.32 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.3423, allocations: 1.344 kB / 0.5179 GB, free: 26.32 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.3423, allocations: 2.625 kB / 0.5179 GB, free: 26.32 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002669/0.345, allocations: 2.363 MB / 0.5202 GB, free: 26 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.856e-06/0.345, allocations: 2.531 kB / 0.5202 GB, free: 26 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000417/0.3454, allocations: 110.8 kB / 0.5204 GB, free: 26 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.301e-06/0.3454, allocations: 3.094 kB / 0.5204 GB, free: 26 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.374e-05/0.3454, allocations: 17.52 kB / 0.5204 GB, free: 26 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.18e-06/0.3455, allocations: 2.938 kB / 0.5204 GB, free: 26 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.798e-06/0.3455, allocations: 6.031 kB / 0.5204 GB, free: 26 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001963/0.3474, allocations: 1.872 MB / 0.5222 GB, free: 25.8 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001562/0.3476, allocations: 204.3 kB / 0.5224 GB, free: 25.62 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.614e-05/0.3477, allocations: 11.98 kB / 0.5224 GB, free: 25.62 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002036/0.3479, allocations: 14.45 kB / 0.5224 GB, free: 25.62 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.221e-05/0.348, allocations: 42.41 kB / 0.5225 GB, free: 25.62 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.192e-05/0.348, allocations: 18.5 kB / 0.5225 GB, free: 25.62 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001082/0.3491, allocations: 0.896 MB / 0.5234 GB, free: 25.51 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3491, allocations: 3.25 kB / 0.5234 GB, free: 25.51 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005767/0.3497, allocations: 209.2 kB / 0.5236 GB, free: 25.48 MB / 398.1 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 (67): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002164/0.3519, allocations: 2.443 MB / 0.526 GB, free: 24.73 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00121/0.3531, allocations: 0.9817 MB / 0.5269 GB, free: 24.68 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3531, allocations: 1.062 kB / 0.5269 GB, free: 24.68 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006478/0.3538, allocations: 0.5067 MB / 0.5274 GB, free: 24.57 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005769/0.3544, allocations: 98.55 kB / 0.5275 GB, free: 24.51 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01413/0.3685, allocations: 11.48 MB / 0.5387 GB, free: 19.91 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009209/0.3695, allocations: 1.315 MB / 0.54 GB, free: 19.16 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002644/0.3697, allocations: 73.09 kB / 0.5401 GB, free: 19.14 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004922/0.3702, allocations: 0.5911 MB / 0.5406 GB, free: 18.63 MB / 398.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3702, allocations: 7.938 kB / 0.5407 GB, free: 18.62 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03739/0.4076, allocations: 18.98 MB / 0.5592 GB, free: 3.098 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.08/10.48, allocations: 19.61 kB / 0.5592 GB, free: 3.082 MB / 398.1 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/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)