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.006332/0.006332, allocations: 102.8 kB / 15.74 MB, free: 6.496 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.001697/0.001697, allocations: 192.9 kB / 16.68 MB, free: 6.375 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.315/1.315, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2769/0.2769, allocations: 28.8 MB / 319.3 MB, free: 5.637 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001677/0.001677, allocations: 71.02 kB / 443.9 MB, free: 37.28 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0702/0.07189, allocations: 56.43 MB / 0.4886 GB, free: 8.965 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_2): time 0.003166/0.07509, allocations: 3.658 MB / 0.4921 GB, free: 6.023 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009544/0.07606, allocations: 0.6737 MB / 0.4928 GB, free: 5.457 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002526/0.07632, allocations: 17.88 kB / 0.4928 GB, free: 5.453 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002953/0.07662, allocations: 173.1 kB / 0.493 GB, free: 5.312 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000256/0.07689, allocations: 130.2 kB / 0.4931 GB, free: 5.219 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004855/0.07738, allocations: 364.6 kB / 0.4934 GB, free: 4.926 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005409/0.07793, allocations: 0.8462 MB / 0.4943 GB, free: 4.398 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005403/0.07848, allocations: 0.639 MB / 0.4949 GB, free: 3.848 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001485/0.07863, allocations: 334.5 kB / 0.4952 GB, free: 3.52 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001832/0.07882, allocations: 413.6 kB / 0.4956 GB, free: 3.113 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.107e-05/0.07891, allocations: 88 kB / 0.4957 GB, free: 3.027 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001394/0.07906, allocations: 119.9 kB / 0.4958 GB, free: 2.91 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001902/0.07926, allocations: 430.5 kB / 0.4962 GB, free: 2.488 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002239/0.07948, allocations: 0.6164 MB / 0.4968 GB, free: 1.867 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006783/0.08017, allocations: 1.259 MB / 0.4981 GB, free: 0.6016 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.08018, allocations: 0 / 0.4981 GB, free: 0.6016 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.08019, allocations: 0 / 0.4981 GB, free: 0.6016 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.468e-06/0.0802, allocations: 0 / 0.4981 GB, free: 0.6016 MB / 366.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.001797/0.082, allocations: 1.853 MB / 0.4999 GB, free: 14.68 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.879e-05/0.08204, allocations: 8.031 kB / 0.4999 GB, free: 14.68 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001923/0.08223, allocations: 162.7 kB / 0.5 GB, free: 14.51 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002013/0.08244, allocations: 215.5 kB / 0.5002 GB, free: 14.3 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000827/0.08327, allocations: 0.7681 MB / 0.501 GB, free: 13.48 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.115e-05/0.08335, allocations: 90.36 kB / 0.5011 GB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000114/0.08346, allocations: 108.4 kB / 0.5012 GB, free: 13.29 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001498/0.08497, allocations: 1.17 MB / 0.5023 GB, free: 12.05 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.355e-05/0.085, allocations: 4 kB / 0.5023 GB, free: 12.04 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.926e-05/0.08507, allocations: 40 kB / 0.5024 GB, free: 12 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.363e-05/0.0851, allocations: 32 kB / 0.5024 GB, free: 11.97 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001393/0.0865, allocations: 1.101 MB / 0.5035 GB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003883/0.09039, allocations: 3.675 MB / 0.5071 GB, free: 7.078 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00151/0.09191, allocations: 1.33 MB / 0.5083 GB, free: 5.734 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005285/0.09245, allocations: 486.3 kB / 0.5088 GB, free: 5.258 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.08e-05/0.09252, allocations: 32.69 kB / 0.5088 GB, free: 5.227 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.568e-05/0.09255, allocations: 39.12 kB / 0.5089 GB, free: 5.18 MB / 382.1 MB Notification: Performance of pre-optimization done (n=67): time 2.084e-06/0.09256, allocations: 0 / 0.5089 GB, free: 5.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=67): time 0.001764/0.09432, allocations: 1.521 MB / 0.5104 GB, free: 3.652 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.157e-05/0.09438, allocations: 67.91 kB / 0.5104 GB, free: 3.574 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001338/0.09572, allocations: 1.296 MB / 0.5117 GB, free: 2.27 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.448e-05/0.09576, allocations: 33.7 kB / 0.5117 GB, free: 2.23 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005805/0.09634, allocations: 0.7766 MB / 0.5125 GB, free: 1.445 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001714/0.09652, allocations: 245.8 kB / 0.5127 GB, free: 1.203 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001437/0.09667, allocations: 110.3 kB / 0.5128 GB, free: 1.09 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.09681, allocations: 334 kB / 0.5131 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005035/0.09732, allocations: 437.1 kB / 0.5136 GB, free: 340 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005884/0.09792, allocations: 0.5355 MB / 0.5141 GB, free: 15.76 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001112/0.09904, allocations: 0.9939 MB / 0.5151 GB, free: 14.73 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.303e-06/0.09905, allocations: 4 kB / 0.5151 GB, free: 14.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001364/0.1004, allocations: 1.183 MB / 0.5162 GB, free: 13.54 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/0.1004, allocations: 8 kB / 0.5162 GB, free: 13.53 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.1005, allocations: 0 / 0.5162 GB, free: 13.53 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.933e-05/0.1005, allocations: 8.312 kB / 0.5162 GB, free: 13.52 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004126/0.1009, allocations: 135.8 kB / 0.5164 GB, free: 13.39 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.31e-05/0.1009, allocations: 11.94 kB / 0.5164 GB, free: 13.38 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002213/0.1011, allocations: 51.62 kB / 0.5164 GB, free: 13.33 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.715e-05/0.1012, allocations: 23.98 kB / 0.5164 GB, free: 13.3 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.0004164/0.1016, allocations: 377.3 kB / 0.5168 GB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001483/0.1018, allocations: 147 kB / 0.5169 GB, free: 12.78 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001453/0.1032, allocations: 1.189 MB / 0.5181 GB, free: 11.58 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.818e-06/0.1032, allocations: 15.94 kB / 0.5181 GB, free: 11.56 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.596e-06/0.1033, allocations: 0 / 0.5181 GB, free: 11.56 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.1033, allocations: 3.984 kB / 0.5181 GB, free: 11.56 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002511/0.1058, allocations: 2.364 MB / 0.5204 GB, free: 9.137 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.1058, allocations: 4 kB / 0.5204 GB, free: 9.133 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004052/0.1062, allocations: 107.8 kB / 0.5205 GB, free: 9.027 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.841e-06/0.1062, allocations: 11.88 kB / 0.5206 GB, free: 9.016 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.117e-05/0.1063, allocations: 12 kB / 0.5206 GB, free: 9.004 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.272e-06/0.1063, allocations: 4 kB / 0.5206 GB, free: 9 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.1063, allocations: 0 / 0.5206 GB, free: 9 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001981/0.1083, allocations: 1.884 MB / 0.5224 GB, free: 7.094 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000177/0.1084, allocations: 212 kB / 0.5226 GB, free: 6.867 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.2e-05/0.1085, allocations: 15.98 kB / 0.5226 GB, free: 6.852 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001981/0.1087, allocations: 12 kB / 0.5226 GB, free: 6.84 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.328e-05/0.1088, allocations: 36.45 kB / 0.5227 GB, free: 6.805 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.253e-05/0.1088, allocations: 23.98 kB / 0.5227 GB, free: 6.781 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0009722/0.1098, allocations: 0.9005 MB / 0.5236 GB, free: 5.883 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1098, allocations: 0 / 0.5236 GB, free: 5.883 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004538/0.1103, allocations: 215.2 kB / 0.5238 GB, free: 5.672 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.002299/0.1126, allocations: 2.451 MB / 0.5262 GB, free: 3.195 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001123/0.1137, allocations: 0.9841 MB / 0.5271 GB, free: 2.211 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.1137, allocations: 4 kB / 0.5271 GB, free: 2.207 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005534/0.1143, allocations: 0.5067 MB / 0.5276 GB, free: 1.699 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005218/0.1148, allocations: 95.06 kB / 0.5277 GB, free: 1.613 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01305/0.1279, allocations: 11.56 MB / 0.539 GB, free: 5.867 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008859/0.1288, allocations: 1.319 MB / 0.5403 GB, free: 4.523 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001999/0.129, allocations: 72.36 kB / 0.5404 GB, free: 4.453 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005981/0.1296, allocations: 0.593 MB / 0.5409 GB, free: 3.859 MB / 414.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1296, allocations: 0 / 0.5409 GB, free: 3.859 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.473/1.602, allocations: 18.74 MB / 0.5592 GB, free: 1.18 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.38/18.98, allocations: 15.92 kB / 0.5593 GB, free: 1.164 MB / 430.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)