Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.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: translateModel(SystemDynamics.WorldDynamics.World2.Scenario_1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001517/0.001517, allocations: 108.7 kB / 16.41 MB, free: 6.027 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.001445/0.001445, allocations: 186.2 kB / 17.34 MB, free: 5.633 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.319/1.319, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1843/0.1843, allocations: 28.78 MB / 320 MB, free: 1.902 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 63.91 kB / 445 MB, free: 2.531 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1051, allocations: 56.41 MB / 0.4897 GB, free: 10.06 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_1): time 0.004504/0.1097, allocations: 3.635 MB / 0.4932 GB, free: 6.418 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001575/0.1113, allocations: 0.6702 MB / 0.4939 GB, free: 5.746 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003386/0.1117, allocations: 23.81 kB / 0.4939 GB, free: 5.723 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004097/0.1121, allocations: 166.3 kB / 0.4941 GB, free: 5.559 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002643/0.1124, allocations: 122.8 kB / 0.4942 GB, free: 5.438 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006685/0.1131, allocations: 347.6 kB / 0.4945 GB, free: 5.098 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007621/0.1138, allocations: 0.856 MB / 0.4953 GB, free: 4.238 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007888/0.1146, allocations: 0.6364 MB / 0.496 GB, free: 3.562 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003055/0.1149, allocations: 342.4 kB / 0.4963 GB, free: 3.227 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003367/0.1153, allocations: 409.6 kB / 0.4967 GB, free: 2.824 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001142/0.1154, allocations: 91.94 kB / 0.4968 GB, free: 2.734 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001975/0.1156, allocations: 115.9 kB / 0.4969 GB, free: 2.621 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003188/0.1159, allocations: 426.6 kB / 0.4973 GB, free: 2.203 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004002/0.1163, allocations: 0.6009 MB / 0.4979 GB, free: 1.598 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00103/0.1174, allocations: 1.217 MB / 0.4991 GB, free: 384 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.1174, allocations: 4 kB / 0.4991 GB, free: 380 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1174, allocations: 0 / 0.4991 GB, free: 380 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.216e-05/0.1174, allocations: 0 / 0.4991 GB, free: 380 kB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 259 * Number of variables: 259 Notification: Performance of Generate backend data structure: time 0.001881/0.1193, allocations: 1.737 MB / 0.5008 GB, free: 14.57 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.1194, allocations: 8.031 kB / 0.5008 GB, free: 14.56 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002059/0.1196, allocations: 198.5 kB / 0.501 GB, free: 14.37 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008553/0.1204, allocations: 0.7386 MB / 0.5017 GB, free: 13.58 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.182e-05/0.1205, allocations: 78.42 kB / 0.5018 GB, free: 13.5 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001069/0.1206, allocations: 96.38 kB / 0.5018 GB, free: 13.41 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001443/0.1221, allocations: 1.138 MB / 0.503 GB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.966e-05/0.1221, allocations: 192 / 0.503 GB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.452e-05/0.1222, allocations: 43.94 kB / 0.503 GB, free: 12.16 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.979e-05/0.1222, allocations: 24 kB / 0.503 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001267/0.1235, allocations: 1.05 MB / 0.504 GB, free: 11.08 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003847/0.1273, allocations: 3.582 MB / 0.5075 GB, free: 7.395 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001379/0.1287, allocations: 1.271 MB / 0.5088 GB, free: 6.113 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004612/0.1292, allocations: 458.4 kB / 0.5092 GB, free: 5.664 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.514e-05/0.1293, allocations: 32.77 kB / 0.5093 GB, free: 5.633 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.576e-05/0.1293, allocations: 39.11 kB / 0.5093 GB, free: 5.586 MB / 398.1 MB Notification: Performance of pre-optimization done (n=66): time 2.285e-06/0.1293, allocations: 0 / 0.5093 GB, free: 5.586 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.001601/0.1309, allocations: 1.446 MB / 0.5107 GB, free: 4.133 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.946e-05/0.131, allocations: 63.91 kB / 0.5108 GB, free: 4.059 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00125/0.1322, allocations: 1.23 MB / 0.512 GB, free: 2.816 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.537e-05/0.1323, allocations: 33.7 kB / 0.512 GB, free: 2.777 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005266/0.1328, allocations: 0.7518 MB / 0.5127 GB, free: 2.016 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001627/0.133, allocations: 232.6 kB / 0.513 GB, free: 1.785 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001497/0.1331, allocations: 110.3 kB / 0.5131 GB, free: 1.672 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000121/0.1332, allocations: 337.9 kB / 0.5134 GB, free: 1.336 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000436/0.1337, allocations: 409.1 kB / 0.5138 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004978/0.1342, allocations: 0.5121 MB / 0.5143 GB, free: 400 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2333/0.3675, allocations: 0.9471 MB / 0.5152 GB, free: 26.54 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.673e-06/0.3676, allocations: 1.109 kB / 0.5152 GB, free: 26.54 MB / 398.1 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001463/0.369, allocations: 1.131 MB / 0.5163 GB, free: 26.49 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.283e-05/0.3691, allocations: 9.672 kB / 0.5163 GB, free: 26.49 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/0.3691, allocations: 0 / 0.5163 GB, free: 26.49 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.921e-05/0.3691, allocations: 5.125 kB / 0.5163 GB, free: 26.49 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004183/0.3695, allocations: 130.2 kB / 0.5164 GB, free: 26.49 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.149e-05/0.3696, allocations: 4.625 kB / 0.5164 GB, free: 26.49 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002278/0.3698, allocations: 50.45 kB / 0.5165 GB, free: 26.49 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.523e-05/0.3698, allocations: 23.16 kB / 0.5165 GB, free: 26.49 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 (81): * Single equations (assignments): 81 * 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.0004404/0.3703, allocations: 374.4 kB / 0.5169 GB, free: 26.38 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001322/0.3704, allocations: 134 kB / 0.517 GB, free: 26.38 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001373/0.3718, allocations: 1.143 MB / 0.5181 GB, free: 26.32 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.296e-06/0.3718, allocations: 9.062 kB / 0.5181 GB, free: 26.32 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.3718, allocations: 1.031 kB / 0.5181 GB, free: 26.32 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.875e-06/0.3718, allocations: 3.562 kB / 0.5181 GB, free: 26.32 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002451/0.3743, allocations: 2.269 MB / 0.5203 GB, free: 26 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.3743, allocations: 3.875 kB / 0.5203 GB, free: 26 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004219/0.3747, allocations: 110 kB / 0.5205 GB, free: 26 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.572e-06/0.3748, allocations: 2.188 kB / 0.5205 GB, free: 26 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.362e-05/0.3748, allocations: 19.03 kB / 0.5205 GB, free: 26 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.191e-06/0.3748, allocations: 2.375 kB / 0.5205 GB, free: 26 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.3748, allocations: 3.938 kB / 0.5205 GB, free: 25.99 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00192/0.3767, allocations: 1.784 MB / 0.5222 GB, free: 25.79 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001344/0.3769, allocations: 199 kB / 0.5224 GB, free: 25.62 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.594e-05/0.377, allocations: 13.02 kB / 0.5224 GB, free: 25.62 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001934/0.3772, allocations: 15.8 kB / 0.5224 GB, free: 25.62 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.441e-05/0.3772, allocations: 41.84 kB / 0.5225 GB, free: 25.61 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.919e-05/0.3773, allocations: 18.84 kB / 0.5225 GB, free: 25.61 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001052/0.3783, allocations: 0.8545 MB / 0.5233 GB, free: 25.5 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3783, allocations: 3.828 kB / 0.5233 GB, free: 25.5 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005777/0.3789, allocations: 206.5 kB / 0.5235 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 (66): * Single equations (assignments): 66 * 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.0001689/0.3791, allocations: 117.6 kB / 0.5236 GB, free: 25.39 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001238/0.3803, allocations: 0.9431 MB / 0.5246 GB, free: 25.38 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3804, allocations: 0 / 0.5246 GB, free: 25.38 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005552/0.3809, allocations: 0.4892 MB / 0.525 GB, free: 25.38 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005793/0.3815, allocations: 94.42 kB / 0.5251 GB, free: 25.37 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003455/0.385, allocations: 2.726 MB / 0.5278 GB, free: 24.38 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009628/0.386, allocations: 1.285 MB / 0.529 GB, free: 23.66 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001599/0.3861, allocations: 57.66 kB / 0.5291 GB, free: 23.65 MB / 398.1 MB Notification: Performance of SimCode: time 6.82e-07/0.3861, allocations: 1.156 kB / 0.5291 GB, free: 23.65 MB / 398.1 MB Notification: Performance of Templates: time 0.01821/0.4043, allocations: 10.77 MB / 0.5396 GB, free: 20.32 MB / 398.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe 2>&1)