Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo", uses=false) Using package SystemDynamics with version 2.1.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009656/0.0009657, allocations: 173.3 kB / 15.42 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.314/1.314, allocations: 225.7 MB / 241.9 MB, free: 372 kB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007718/0.0007718, allocations: 94.3 kB / 293.1 MB, free: 12.88 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo): time 0.1579/0.1579, allocations: 28.83 MB / 373 MB, free: 12.79 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003013/0.0003017, allocations: 8 kB / 441.2 MB, free: 69.54 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07732/0.07764, allocations: 57.49 MB / 498.7 MB, free: 11.94 MB / 330.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_1): time 0.003108/0.08081, allocations: 2.917 MB / 0.4899 GB, free: 9.016 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.00148/0.08232, allocations: 0.7221 MB / 0.4906 GB, free: 8.273 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005232/0.08287, allocations: 15.94 kB / 0.4906 GB, free: 8.258 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000342/0.08323, allocations: 123 kB / 0.4907 GB, free: 8.137 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003638/0.08361, allocations: 79.5 kB / 0.4908 GB, free: 8.059 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006064/0.08422, allocations: 303.7 kB / 0.4911 GB, free: 7.762 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006876/0.08493, allocations: 0.8014 MB / 0.4918 GB, free: 6.957 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000675/0.08561, allocations: 0.5974 MB / 0.4924 GB, free: 6.328 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001852/0.0858, allocations: 230.4 kB / 0.4926 GB, free: 6.102 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000256/0.08607, allocations: 309.6 kB / 0.4929 GB, free: 5.797 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 7.886e-05/0.08616, allocations: 20 kB / 0.493 GB, free: 5.777 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000135/0.0863, allocations: 43.98 kB / 0.493 GB, free: 5.734 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002352/0.08654, allocations: 346.5 kB / 0.4933 GB, free: 5.395 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002737/0.08682, allocations: 0.5206 MB / 0.4938 GB, free: 4.863 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006946/0.08752, allocations: 1.054 MB / 0.4949 GB, free: 3.805 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.08754, allocations: 0 / 0.4949 GB, free: 3.805 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.08755, allocations: 0 / 0.4949 GB, free: 3.805 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.435e-05/0.08759, allocations: 0 / 0.4949 GB, free: 3.805 MB / 330.7 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.001552/0.08915, allocations: 1.469 MB / 0.4963 GB, free: 2.273 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.08919, allocations: 11.97 kB / 0.4963 GB, free: 2.262 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002062/0.0894, allocations: 194.5 kB / 0.4965 GB, free: 2.07 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006999/0.09011, allocations: 0.7269 MB / 0.4972 GB, free: 1.293 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.205e-05/0.09016, allocations: 78.42 kB / 0.4973 GB, free: 1.215 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001045/0.09027, allocations: 100.4 kB / 0.4974 GB, free: 1.117 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001343/0.09162, allocations: 1.127 MB / 0.4985 GB, free: 15.92 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.164e-05/0.09166, allocations: 4.125 kB / 0.4985 GB, free: 15.92 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.557e-05/0.09173, allocations: 43.94 kB / 0.4985 GB, free: 15.88 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.657e-05/0.09176, allocations: 28 kB / 0.4985 GB, free: 15.85 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001369/0.09314, allocations: 1.038 MB / 0.4996 GB, free: 14.8 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004569/0.09772, allocations: 3.617 MB / 0.5031 GB, free: 11.08 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001498/0.09925, allocations: 1.264 MB / 0.5043 GB, free: 9.812 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004978/0.09976, allocations: 458.3 kB / 0.5048 GB, free: 9.359 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.392e-05/0.09985, allocations: 28.77 kB / 0.5048 GB, free: 9.328 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.571e-05/0.09989, allocations: 43.12 kB / 0.5048 GB, free: 9.277 MB / 346.7 MB Notification: Performance of pre-optimization done (n=66): time 2.805e-06/0.0999, allocations: 0 / 0.5048 GB, free: 9.277 MB / 346.7 MB Notification: Performance of matching and sorting (n=66): time 0.001635/0.1015, allocations: 1.442 MB / 0.5062 GB, free: 7.832 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.066e-05/0.1016, allocations: 59.97 kB / 0.5063 GB, free: 7.762 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001374/0.103, allocations: 1.215 MB / 0.5075 GB, free: 6.535 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.775e-05/0.103, allocations: 37.7 kB / 0.5075 GB, free: 6.492 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005194/0.1035, allocations: 0.7517 MB / 0.5083 GB, free: 5.73 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001643/0.1037, allocations: 228.6 kB / 0.5085 GB, free: 5.504 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.571e-05/0.1038, allocations: 20 kB / 0.5085 GB, free: 5.484 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001039/0.1039, allocations: 329.9 kB / 0.5088 GB, free: 5.156 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004571/0.1043, allocations: 413.1 kB / 0.5092 GB, free: 4.75 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005056/0.1048, allocations: 0.5004 MB / 0.5097 GB, free: 4.215 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001028/0.1059, allocations: 0.9509 MB / 0.5106 GB, free: 3.23 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.1059, allocations: 3.938 kB / 0.5106 GB, free: 3.227 MB / 346.7 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001285/0.1072, allocations: 1.124 MB / 0.5117 GB, free: 2.094 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.056e-05/0.1072, allocations: 12 kB / 0.5117 GB, free: 2.082 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.121e-05/0.1072, allocations: 7.984 kB / 0.5117 GB, free: 2.074 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.829e-05/0.1073, allocations: 4 kB / 0.5117 GB, free: 2.07 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004528/0.1077, allocations: 127.8 kB / 0.5119 GB, free: 1.945 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.229e-05/0.1077, allocations: 7.938 kB / 0.5119 GB, free: 1.938 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002419/0.108, allocations: 47.44 kB / 0.5119 GB, free: 1.891 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.281e-05/0.108, allocations: 28 kB / 0.5119 GB, free: 1.863 MB / 346.7 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.0004463/0.1085, allocations: 365.4 kB / 0.5123 GB, free: 1.496 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001374/0.1086, allocations: 130.3 kB / 0.5124 GB, free: 1.367 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00137/0.11, allocations: 1.138 MB / 0.5135 GB, free: 220 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.276e-06/0.11, allocations: 8 kB / 0.5135 GB, free: 212 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.11, allocations: 0 / 0.5135 GB, free: 212 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.614e-06/0.1101, allocations: 3.984 kB / 0.5135 GB, free: 208 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00244/0.1125, allocations: 2.284 MB / 0.5158 GB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.037e-06/0.1125, allocations: 0 / 0.5158 GB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000467/0.113, allocations: 111.8 kB / 0.5159 GB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.506e-06/0.113, allocations: 4 kB / 0.5159 GB, free: 13.74 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.661e-05/0.1131, allocations: 12 kB / 0.5159 GB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.35e-06/0.1131, allocations: 4 kB / 0.5159 GB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.1131, allocations: 0 / 0.5159 GB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001812/0.1149, allocations: 1.785 MB / 0.5176 GB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001792/0.1151, allocations: 195.2 kB / 0.5178 GB, free: 11.71 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.758e-05/0.1152, allocations: 16.05 kB / 0.5178 GB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002121/0.1154, allocations: 16 kB / 0.5179 GB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.656e-05/0.1155, allocations: 40.45 kB / 0.5179 GB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.308e-05/0.1155, allocations: 19.94 kB / 0.5179 GB, free: 11.62 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0009633/0.1165, allocations: 0.8441 MB / 0.5187 GB, free: 10.78 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1165, allocations: 0 / 0.5187 GB, free: 10.78 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005229/0.117, allocations: 203 kB / 0.5189 GB, free: 10.58 MB / 362.7 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.0001764/0.1172, allocations: 115.2 kB / 0.519 GB, free: 10.46 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001116/0.1183, allocations: 0.949 MB / 0.52 GB, free: 9.508 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.1183, allocations: 0 / 0.52 GB, free: 9.508 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004944/0.1188, allocations: 491 kB / 0.5204 GB, free: 9.023 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006488/0.1195, allocations: 90.25 kB / 0.5205 GB, free: 8.938 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004132/0.1236, allocations: 3.266 MB / 0.5237 GB, free: 5.641 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008215/0.1245, allocations: 1.28 MB / 0.525 GB, free: 4.336 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002638/0.1248, allocations: 76.42 kB / 0.525 GB, free: 4.258 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001187/0.1249, allocations: 47.44 kB / 0.5251 GB, free: 4.211 MB / 362.7 MB Notification: Performance of SimCode: time 9.22e-07/0.1249, allocations: 0 / 0.5251 GB, free: 4.211 MB / 362.7 MB Notification: Performance of Templates: time 0.1716/0.2965, allocations: 4.713 MB / 0.5297 GB, free: 47.84 MB / 362.7 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)