Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.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_4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001148/0.001148, allocations: 179.5 kB / 15.43 MB, free: 6.203 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.292/1.292, allocations: 225.7 MB / 241.9 MB, free: 400 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.0007803/0.0007804, allocations: 93.8 kB / 293.1 MB, free: 12.91 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.1574/0.1574, allocations: 28.85 MB / 373 MB, free: 12.82 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003247/0.0003247, allocations: 8 kB / 441.2 MB, free: 69.56 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07604/0.07638, allocations: 57.49 MB / 498.7 MB, free: 11.96 MB / 330.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.002496/0.07891, allocations: 2.937 MB / 0.4899 GB, free: 9.02 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001321/0.08026, allocations: 0.7454 MB / 0.4906 GB, free: 8.254 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003803/0.08066, allocations: 15.94 kB / 0.4906 GB, free: 8.238 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002774/0.08094, allocations: 127 kB / 0.4907 GB, free: 8.113 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002849/0.08124, allocations: 99.5 kB / 0.4908 GB, free: 8.016 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005752/0.08182, allocations: 307.7 kB / 0.4911 GB, free: 7.715 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005866/0.08242, allocations: 0.8172 MB / 0.4919 GB, free: 6.895 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006375/0.08307, allocations: 0.5974 MB / 0.4925 GB, free: 6.266 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001887/0.08327, allocations: 254.4 kB / 0.4927 GB, free: 6.016 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002415/0.08352, allocations: 317.6 kB / 0.4931 GB, free: 5.703 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 6.88e-05/0.08359, allocations: 20 kB / 0.4931 GB, free: 5.684 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001345/0.08373, allocations: 51.91 kB / 0.4931 GB, free: 5.633 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002392/0.08398, allocations: 366.4 kB / 0.4935 GB, free: 5.273 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002476/0.08424, allocations: 0.5515 MB / 0.494 GB, free: 4.711 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006658/0.08491, allocations: 1.12 MB / 0.4951 GB, free: 3.586 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.08493, allocations: 0 / 0.4951 GB, free: 3.586 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.08494, allocations: 0 / 0.4951 GB, free: 3.586 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.826e-05/0.08496, allocations: 0 / 0.4951 GB, free: 3.586 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: 290 * Number of variables: 290 Notification: Performance of Generate backend data structure: time 0.001518/0.08648, allocations: 1.551 MB / 0.4966 GB, free: 1.973 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.551e-05/0.08653, allocations: 11.97 kB / 0.4966 GB, free: 1.961 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001603/0.0867, allocations: 202.3 kB / 0.4968 GB, free: 1.762 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006023/0.08731, allocations: 0.7509 MB / 0.4976 GB, free: 0.9609 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.611e-05/0.08737, allocations: 82.48 kB / 0.4976 GB, free: 0.8789 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.939e-05/0.08747, allocations: 104.3 kB / 0.4977 GB, free: 0.7773 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001524/0.089, allocations: 1.27 MB / 0.499 GB, free: 15.43 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.268e-05/0.08904, allocations: 4.125 kB / 0.499 GB, free: 15.43 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.719e-05/0.08911, allocations: 51.94 kB / 0.499 GB, free: 15.38 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-05/0.08917, allocations: 47.97 kB / 0.4991 GB, free: 15.33 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001542/0.09072, allocations: 1.218 MB / 0.5003 GB, free: 14.11 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004542/0.09528, allocations: 3.921 MB / 0.5041 GB, free: 10.07 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001542/0.09685, allocations: 1.358 MB / 0.5054 GB, free: 8.695 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005504/0.09742, allocations: 495.2 kB / 0.5059 GB, free: 8.203 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.947e-05/0.09751, allocations: 32.77 kB / 0.5059 GB, free: 8.168 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.646e-05/0.09756, allocations: 47.06 kB / 0.506 GB, free: 8.113 MB / 346.7 MB Notification: Performance of pre-optimization done (n=70): time 2.595e-06/0.09757, allocations: 0 / 0.506 GB, free: 8.113 MB / 346.7 MB Notification: Performance of matching and sorting (n=70): time 0.001894/0.09947, allocations: 1.547 MB / 0.5075 GB, free: 6.562 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.116e-05/0.09953, allocations: 93.78 kB / 0.5076 GB, free: 6.453 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001516/0.1011, allocations: 1.354 MB / 0.5089 GB, free: 5.09 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.704e-05/0.1011, allocations: 37.7 kB / 0.5089 GB, free: 5.047 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005822/0.1017, allocations: 0.8409 MB / 0.5097 GB, free: 4.195 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001929/0.1019, allocations: 244.4 kB / 0.51 GB, free: 3.953 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.41e-05/0.1019, allocations: 16 kB / 0.51 GB, free: 3.938 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.1021, allocations: 338 kB / 0.5103 GB, free: 3.602 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000612/0.1027, allocations: 473.8 kB / 0.5108 GB, free: 3.137 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007511/0.1034, allocations: 0.7198 MB / 0.5115 GB, free: 2.305 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001375/0.1048, allocations: 1.237 MB / 0.5127 GB, free: 0.957 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.671e-06/0.1049, allocations: 0 / 0.5127 GB, free: 0.957 MB / 346.7 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.00175/0.1066, allocations: 1.378 MB / 0.514 GB, free: 15.57 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.222e-05/0.1066, allocations: 8 kB / 0.514 GB, free: 15.56 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.428e-05/0.1067, allocations: 11.98 kB / 0.514 GB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.541e-05/0.1067, allocations: 12 kB / 0.5141 GB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005865/0.1073, allocations: 187.7 kB / 0.5142 GB, free: 15.36 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.165e-05/0.1073, allocations: 15.94 kB / 0.5142 GB, free: 15.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000409/0.1078, allocations: 87.45 kB / 0.5143 GB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.679e-05/0.1078, allocations: 51.94 kB / 0.5144 GB, free: 15.2 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * 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 (109): * Single equations (assignments): 109 * 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.0004968/0.1083, allocations: 409.2 kB / 0.5148 GB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001889/0.1085, allocations: 154 kB / 0.5149 GB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001616/0.1102, allocations: 1.233 MB / 0.5161 GB, free: 13.4 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.303e-05/0.1102, allocations: 8 kB / 0.5161 GB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.1102, allocations: 0 / 0.5161 GB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.076e-05/0.1102, allocations: 11.92 kB / 0.5161 GB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002831/0.113, allocations: 2.396 MB / 0.5185 GB, free: 10.92 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.1131, allocations: 0 / 0.5185 GB, free: 10.92 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004901/0.1136, allocations: 123.8 kB / 0.5186 GB, free: 10.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.857e-06/0.1136, allocations: 8.031 kB / 0.5186 GB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.461e-05/0.1137, allocations: 19.92 kB / 0.5186 GB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.913e-06/0.1137, allocations: 4 kB / 0.5186 GB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.1137, allocations: 0 / 0.5186 GB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002126/0.1158, allocations: 1.98 MB / 0.5206 GB, free: 8.773 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000216/0.116, allocations: 207.2 kB / 0.5208 GB, free: 8.551 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001058/0.1162, allocations: 15.94 kB / 0.5208 GB, free: 8.535 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002935/0.1165, allocations: 12 kB / 0.5208 GB, free: 8.523 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.759e-05/0.1166, allocations: 48.5 kB / 0.5208 GB, free: 8.477 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.112e-05/0.1166, allocations: 23.98 kB / 0.5209 GB, free: 8.453 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001145/0.1178, allocations: 0.9141 MB / 0.5217 GB, free: 7.543 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1178, allocations: 0 / 0.5217 GB, free: 7.543 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006829/0.1185, allocations: 230.9 kB / 0.522 GB, free: 7.316 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (70): * Single equations (assignments): 70 * 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.0001887/0.1187, allocations: 127.1 kB / 0.5221 GB, free: 7.18 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001432/0.1201, allocations: 1.084 MB / 0.5231 GB, free: 6.098 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.1201, allocations: 0 / 0.5231 GB, free: 6.098 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006013/0.1207, allocations: 0.5185 MB / 0.5237 GB, free: 5.574 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007845/0.1215, allocations: 102.6 kB / 0.5238 GB, free: 5.473 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004322/0.1259, allocations: 3.522 MB / 0.5272 GB, free: 1.914 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009547/0.1268, allocations: 1.327 MB / 0.5285 GB, free: 0.5586 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0004798/0.1273, allocations: 132.9 kB / 0.5286 GB, free: 436 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000167/0.1275, allocations: 55.44 kB / 0.5287 GB, free: 380 kB / 362.7 MB Notification: Performance of SimCode: time 6.01e-07/0.1275, allocations: 4 kB / 0.5287 GB, free: 376 kB / 362.7 MB Notification: Performance of Templates: time 0.169/0.2965, allocations: 5.217 MB / 0.5338 GB, free: 46.88 MB / 362.7 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe 2>&1)