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/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002187/0.002187, allocations: 112.5 kB / 15.73 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002121/0.002121, allocations: 191.3 kB / 16.67 MB, free: 6.582 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.217/1.217, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2437/0.2437, allocations: 28.81 MB / 319.4 MB, free: 5.641 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001664/0.001664, allocations: 65.09 kB / 443.9 MB, free: 36.88 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07402/0.0757, allocations: 56.43 MB / 0.4886 GB, free: 8.887 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_3): time 0.003448/0.07918, allocations: 3.648 MB / 0.4921 GB, free: 5.957 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00106/0.08025, allocations: 0.6806 MB / 0.4928 GB, free: 5.383 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002807/0.08054, allocations: 19 kB / 0.4928 GB, free: 5.379 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000329/0.08088, allocations: 178 kB / 0.493 GB, free: 5.234 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002663/0.08116, allocations: 129.5 kB / 0.4931 GB, free: 5.141 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000516/0.08168, allocations: 357.3 kB / 0.4934 GB, free: 4.855 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005671/0.08226, allocations: 0.8551 MB / 0.4943 GB, free: 4.32 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005979/0.08286, allocations: 0.6357 MB / 0.4949 GB, free: 3.773 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001694/0.08304, allocations: 338.4 kB / 0.4952 GB, free: 3.441 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001961/0.08324, allocations: 417.6 kB / 0.4956 GB, free: 3.031 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.833e-05/0.08335, allocations: 88 kB / 0.4957 GB, free: 2.945 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001522/0.08351, allocations: 120 kB / 0.4958 GB, free: 2.828 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001964/0.08371, allocations: 426.5 kB / 0.4962 GB, free: 2.41 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002338/0.08395, allocations: 0.6125 MB / 0.4968 GB, free: 1.793 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007321/0.08469, allocations: 1.266 MB / 0.4981 GB, free: 0.5195 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.0847, allocations: 4 kB / 0.4981 GB, free: 0.5156 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.0847, allocations: 0 / 0.4981 GB, free: 0.5156 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.05e-05/0.08472, allocations: 0 / 0.4981 GB, free: 0.5156 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: 263 * Number of variables: 263 Notification: Performance of Generate backend data structure: time 0.002027/0.08675, allocations: 1.845 MB / 0.4999 GB, free: 14.6 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.789e-05/0.0868, allocations: 12.03 kB / 0.4999 GB, free: 14.59 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002178/0.08702, allocations: 166.8 kB / 0.5 GB, free: 14.41 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002234/0.08725, allocations: 211.6 kB / 0.5002 GB, free: 14.21 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009143/0.08817, allocations: 0.7797 MB / 0.501 GB, free: 13.38 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.583e-05/0.08825, allocations: 78.44 kB / 0.5011 GB, free: 13.3 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001178/0.08837, allocations: 108.4 kB / 0.5012 GB, free: 13.2 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001714/0.09009, allocations: 1.178 MB / 0.5023 GB, free: 11.95 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.545e-05/0.09013, allocations: 3.938 kB / 0.5023 GB, free: 11.95 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.75e-05/0.0902, allocations: 44 kB / 0.5024 GB, free: 11.9 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.24e-05/0.09023, allocations: 24 kB / 0.5024 GB, free: 11.88 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001654/0.09189, allocations: 1.109 MB / 0.5035 GB, free: 10.76 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004339/0.09624, allocations: 3.694 MB / 0.5071 GB, free: 6.957 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001676/0.09793, allocations: 1.337 MB / 0.5084 GB, free: 5.609 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005983/0.09853, allocations: 482.3 kB / 0.5089 GB, free: 5.137 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.235e-05/0.09863, allocations: 28.77 kB / 0.5089 GB, free: 5.109 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.299e-05/0.09867, allocations: 43.12 kB / 0.5089 GB, free: 5.059 MB / 382.1 MB Notification: Performance of pre-optimization done (n=68): time 1.944e-06/0.09868, allocations: 3.938 kB / 0.5089 GB, free: 5.055 MB / 382.1 MB Notification: Performance of matching and sorting (n=68): time 0.002102/0.1008, allocations: 1.525 MB / 0.5104 GB, free: 3.523 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.376e-05/0.1008, allocations: 63.91 kB / 0.5105 GB, free: 3.449 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001463/0.1023, allocations: 1.288 MB / 0.5117 GB, free: 2.152 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.882e-05/0.1024, allocations: 41.7 kB / 0.5118 GB, free: 2.105 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006599/0.103, allocations: 0.7843 MB / 0.5125 GB, free: 1.312 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002063/0.1032, allocations: 245.9 kB / 0.5128 GB, free: 1.07 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001658/0.1034, allocations: 122.6 kB / 0.5129 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.1036, allocations: 330 kB / 0.5132 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005812/0.1042, allocations: 437.8 kB / 0.5136 GB, free: 192 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007133/0.1049, allocations: 0.5389 MB / 0.5141 GB, free: 15.61 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001266/0.1062, allocations: 0.9939 MB / 0.5151 GB, free: 14.58 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.1062, allocations: 4 kB / 0.5151 GB, free: 14.58 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001578/0.1078, allocations: 1.195 MB / 0.5163 GB, free: 13.38 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.819e-05/0.1078, allocations: 11.98 kB / 0.5163 GB, free: 13.36 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.1078, allocations: 0 / 0.5163 GB, free: 13.36 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.77e-05/0.1078, allocations: 8.312 kB / 0.5163 GB, free: 13.36 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004625/0.1083, allocations: 135.8 kB / 0.5164 GB, free: 13.22 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.411e-05/0.1083, allocations: 11.92 kB / 0.5165 GB, free: 13.21 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002623/0.1086, allocations: 59.52 kB / 0.5165 GB, free: 13.15 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.158e-05/0.1086, allocations: 24 kB / 0.5165 GB, free: 13.13 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 (83): * Single equations (assignments): 83 * 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.0004725/0.1091, allocations: 381.3 kB / 0.5169 GB, free: 12.75 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001656/0.1093, allocations: 147 kB / 0.517 GB, free: 12.6 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00166/0.1109, allocations: 1.201 MB / 0.5182 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.114e-05/0.111, allocations: 19.86 kB / 0.5182 GB, free: 11.37 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.111, allocations: 0 / 0.5182 GB, free: 11.37 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.111, allocations: 0 / 0.5182 GB, free: 11.37 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002842/0.1138, allocations: 2.368 MB / 0.5205 GB, free: 8.949 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.1138, allocations: 0 / 0.5205 GB, free: 8.949 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004674/0.1143, allocations: 119.8 kB / 0.5207 GB, free: 8.832 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.159e-06/0.1143, allocations: 3.938 kB / 0.5207 GB, free: 8.828 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.521e-05/0.1144, allocations: 16 kB / 0.5207 GB, free: 8.812 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.1144, allocations: 4 kB / 0.5207 GB, free: 8.809 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.1144, allocations: 0 / 0.5207 GB, free: 8.809 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002271/0.1167, allocations: 1.888 MB / 0.5225 GB, free: 6.902 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000199/0.1169, allocations: 219.9 kB / 0.5227 GB, free: 6.668 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.862e-05/0.117, allocations: 12 kB / 0.5227 GB, free: 6.656 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002282/0.1172, allocations: 19.98 kB / 0.5228 GB, free: 6.637 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.948e-05/0.1173, allocations: 36.52 kB / 0.5228 GB, free: 6.602 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.217e-05/0.1173, allocations: 19.98 kB / 0.5228 GB, free: 6.582 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00112/0.1184, allocations: 0.8926 MB / 0.5237 GB, free: 5.691 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.064e-06/0.1185, allocations: 0 / 0.5237 GB, free: 5.691 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005198/0.119, allocations: 215.2 kB / 0.5239 GB, free: 5.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 (68): * Single equations (assignments): 68 * 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.002632/0.1216, allocations: 2.468 MB / 0.5263 GB, free: 2.977 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001298/0.1229, allocations: 0.988 MB / 0.5273 GB, free: 1.992 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.1229, allocations: 0.625 kB / 0.5273 GB, free: 1.992 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006436/0.1236, allocations: 0.5185 MB / 0.5278 GB, free: 1.473 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005566/0.1242, allocations: 90.16 kB / 0.5279 GB, free: 1.391 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01477/0.1389, allocations: 11.56 MB / 0.5391 GB, free: 5.652 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001018/0.14, allocations: 1.315 MB / 0.5404 GB, free: 4.309 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002287/0.1402, allocations: 72.39 kB / 0.5405 GB, free: 4.238 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006546/0.1409, allocations: 0.5891 MB / 0.5411 GB, free: 3.648 MB / 414.1 MB Notification: Performance of SimCode: time 2.174e-06/0.1409, allocations: 0 / 0.5411 GB, free: 3.648 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.735/1.876, allocations: 18.73 MB / 0.5594 GB, free: 0.9727 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.6/17.48, allocations: 14.58 kB / 0.5594 GB, free: 0.9609 MB / 430.1 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/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)