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.001306/0.001306, allocations: 110.5 kB / 16.41 MB, free: 6.508 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.001256/0.001256, allocations: 181.2 kB / 17.34 MB, free: 5.738 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.419/1.419, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2046/0.2046, allocations: 28.78 MB / 320 MB, free: 1.914 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002118/0.002118, allocations: 59.91 kB / 445 MB, free: 2.535 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1057, allocations: 56.42 MB / 0.4897 GB, free: 10.06 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_1): time 0.004932/0.1107, allocations: 3.642 MB / 0.4932 GB, free: 6.41 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001501/0.1122, allocations: 0.6585 MB / 0.4939 GB, free: 5.75 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002617/0.1124, allocations: 19.94 kB / 0.4939 GB, free: 5.73 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003649/0.1128, allocations: 174.3 kB / 0.4941 GB, free: 5.559 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002816/0.1131, allocations: 122.8 kB / 0.4942 GB, free: 5.438 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006664/0.1137, allocations: 355.5 kB / 0.4945 GB, free: 5.09 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008884/0.1146, allocations: 0.8522 MB / 0.4954 GB, free: 4.234 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00069/0.1153, allocations: 499.8 kB / 0.4958 GB, free: 3.707 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002966/0.1156, allocations: 338.4 kB / 0.4962 GB, free: 3.375 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003559/0.116, allocations: 417.6 kB / 0.4965 GB, free: 2.965 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001166/0.1161, allocations: 84 kB / 0.4966 GB, free: 2.883 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001846/0.1163, allocations: 120 kB / 0.4967 GB, free: 2.766 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003676/0.1166, allocations: 438.3 kB / 0.4972 GB, free: 2.336 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004434/0.1171, allocations: 0.6009 MB / 0.4977 GB, free: 1.73 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001212/0.1183, allocations: 1.224 MB / 0.4989 GB, free: 0.5 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1183, allocations: 4 kB / 0.4989 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1183, allocations: 0 / 0.4989 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.279e-05/0.1183, allocations: 0 / 0.4989 GB, free: 0.4961 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: 259 * Number of variables: 259 Notification: Performance of Generate backend data structure: time 0.002249/0.1206, allocations: 1.798 MB / 0.5007 GB, free: 14.63 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.1206, allocations: 8.031 kB / 0.5007 GB, free: 14.62 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002433/0.1208, allocations: 199.6 kB / 0.5009 GB, free: 14.43 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009753/0.1218, allocations: 0.7593 MB / 0.5016 GB, free: 13.62 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.987e-05/0.1219, allocations: 78.36 kB / 0.5017 GB, free: 13.54 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001293/0.122, allocations: 100.4 kB / 0.5018 GB, free: 13.45 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001593/0.1236, allocations: 1.13 MB / 0.5029 GB, free: 12.25 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.183e-05/0.1236, allocations: 3.938 kB / 0.5029 GB, free: 12.25 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.456e-05/0.1237, allocations: 44 kB / 0.503 GB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.179e-05/0.1237, allocations: 24 kB / 0.503 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001397/0.1251, allocations: 1.05 MB / 0.504 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004487/0.1296, allocations: 3.591 MB / 0.5075 GB, free: 7.43 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001624/0.1313, allocations: 1.24 MB / 0.5087 GB, free: 6.18 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005331/0.1318, allocations: 442.4 kB / 0.5092 GB, free: 5.746 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.394e-05/0.1319, allocations: 28.77 kB / 0.5092 GB, free: 5.719 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.625e-05/0.1319, allocations: 47.05 kB / 0.5092 GB, free: 5.664 MB / 398.1 MB Notification: Performance of pre-optimization done (n=66): time 2.224e-06/0.1319, allocations: 0 / 0.5092 GB, free: 5.664 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.001887/0.1338, allocations: 1.451 MB / 0.5106 GB, free: 4.207 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.589e-05/0.1338, allocations: 55.97 kB / 0.5107 GB, free: 4.141 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001547/0.1354, allocations: 1.23 MB / 0.5119 GB, free: 2.898 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.081e-05/0.1354, allocations: 41.7 kB / 0.5119 GB, free: 2.852 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006615/0.1361, allocations: 0.7566 MB / 0.5127 GB, free: 2.086 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002172/0.1363, allocations: 238 kB / 0.5129 GB, free: 1.852 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001664/0.1365, allocations: 106.3 kB / 0.513 GB, free: 1.742 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001713/0.1367, allocations: 337.9 kB / 0.5133 GB, free: 1.406 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005159/0.1372, allocations: 413.1 kB / 0.5137 GB, free: 1.004 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006054/0.1378, allocations: 0.5082 MB / 0.5142 GB, free: 472 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2079/0.3457, allocations: 0.9482 MB / 0.5151 GB, free: 26.53 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.835e-06/0.3457, allocations: 1.656 kB / 0.5151 GB, free: 26.53 MB / 398.1 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001419/0.3471, allocations: 1.142 MB / 0.5163 GB, free: 26.48 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.989e-05/0.3471, allocations: 5.156 kB / 0.5163 GB, free: 26.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.769e-06/0.3471, allocations: 6.469 kB / 0.5163 GB, free: 26.48 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.246e-05/0.3471, allocations: 5.531 kB / 0.5163 GB, free: 26.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004416/0.3476, allocations: 124.1 kB / 0.5164 GB, free: 26.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.252e-05/0.3476, allocations: 12.69 kB / 0.5164 GB, free: 26.48 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002475/0.3478, allocations: 54.33 kB / 0.5165 GB, free: 26.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.669e-05/0.3479, allocations: 24.89 kB / 0.5165 GB, free: 26.48 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.0004149/0.3483, allocations: 367.1 kB / 0.5168 GB, free: 26.36 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00012/0.3484, allocations: 140.5 kB / 0.517 GB, free: 26.36 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001306/0.3497, allocations: 1.144 MB / 0.5181 GB, free: 26.3 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.045e-06/0.3497, allocations: 6.062 kB / 0.5181 GB, free: 26.3 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.022e-06/0.3497, allocations: 4.312 kB / 0.5181 GB, free: 26.3 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.3497, allocations: 3.516 kB / 0.5181 GB, free: 26.3 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002344/0.3521, allocations: 2.275 MB / 0.5203 GB, free: 25.98 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.3521, allocations: 0 / 0.5203 GB, free: 25.98 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00048/0.3526, allocations: 113.8 kB / 0.5204 GB, free: 25.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.077e-06/0.3526, allocations: 3.812 kB / 0.5204 GB, free: 25.98 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.13e-05/0.3526, allocations: 18.17 kB / 0.5204 GB, free: 25.98 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.197e-06/0.3526, allocations: 7.172 kB / 0.5205 GB, free: 25.98 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3526, allocations: 3.531 kB / 0.5205 GB, free: 25.98 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002102/0.3547, allocations: 1.793 MB / 0.5222 GB, free: 25.78 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002203/0.3549, allocations: 205 kB / 0.5224 GB, free: 25.6 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001046/0.355, allocations: 11.75 kB / 0.5224 GB, free: 25.6 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002772/0.3553, allocations: 15.19 kB / 0.5224 GB, free: 25.6 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.669e-05/0.3554, allocations: 40.97 kB / 0.5225 GB, free: 25.59 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.957e-05/0.3554, allocations: 18.5 kB / 0.5225 GB, free: 25.59 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001191/0.3566, allocations: 0.8514 MB / 0.5233 GB, free: 25.48 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3566, allocations: 3.438 kB / 0.5233 GB, free: 25.48 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000579/0.3572, allocations: 207.9 kB / 0.5235 GB, free: 25.46 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.0001532/0.3574, allocations: 122.5 kB / 0.5236 GB, free: 25.37 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001217/0.3586, allocations: 0.9184 MB / 0.5245 GB, free: 25.36 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.3586, allocations: 1.438 kB / 0.5245 GB, free: 25.36 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005066/0.3591, allocations: 479 kB / 0.525 GB, free: 25.35 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005708/0.3597, allocations: 87.95 kB / 0.5251 GB, free: 25.34 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003601/0.3633, allocations: 2.708 MB / 0.5277 GB, free: 24.33 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009238/0.3642, allocations: 1.287 MB / 0.529 GB, free: 23.61 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003062/0.3645, allocations: 69.22 kB / 0.529 GB, free: 23.6 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001439/0.3646, allocations: 47.77 kB / 0.5291 GB, free: 23.59 MB / 398.1 MB Notification: Performance of SimCode: time 8.52e-07/0.3646, allocations: 0.5312 kB / 0.5291 GB, free: 23.59 MB / 398.1 MB Notification: Performance of Templates: time 0.01349/0.3781, allocations: 5.225 MB / 0.5342 GB, free: 23.21 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 -s cvode -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe 2>&1)