Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.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_2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001476/0.001476, allocations: 180.6 kB / 15.43 MB, free: 5.777 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.356/1.356, allocations: 225.7 MB / 241.9 MB, free: 14.65 MB / 202.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.0007994/0.0007994, allocations: 91.66 kB / 293 MB, free: 4.824 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.1619/0.1619, allocations: 28.83 MB / 373 MB, free: 14.92 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003139/0.000314, allocations: 8 kB / 441.2 MB, free: 87.38 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07847/0.0788, allocations: 57.48 MB / 498.7 MB, free: 30.36 MB / 346.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_2): time 0.002581/0.08141, allocations: 2.925 MB / 0.4899 GB, free: 27.42 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001274/0.08272, allocations: 0.7338 MB / 0.4906 GB, free: 26.67 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003788/0.08312, allocations: 19.94 kB / 0.4906 GB, free: 26.65 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002657/0.08339, allocations: 119 kB / 0.4907 GB, free: 26.53 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002872/0.08369, allocations: 99.42 kB / 0.4908 GB, free: 26.43 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005343/0.08423, allocations: 299.7 kB / 0.4911 GB, free: 26.14 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005795/0.08482, allocations: 0.8131 MB / 0.4919 GB, free: 25.32 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000605/0.08544, allocations: 0.5935 MB / 0.4925 GB, free: 24.7 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001958/0.08564, allocations: 250.3 kB / 0.4927 GB, free: 24.45 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002188/0.08587, allocations: 313.6 kB / 0.493 GB, free: 24.14 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 6.565e-05/0.08594, allocations: 24 kB / 0.493 GB, free: 24.12 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001271/0.08608, allocations: 43.97 kB / 0.4931 GB, free: 24.08 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002184/0.0863, allocations: 342.5 kB / 0.4934 GB, free: 23.74 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002322/0.08654, allocations: 0.5283 MB / 0.4939 GB, free: 23.2 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000657/0.08721, allocations: 1.085 MB / 0.495 GB, free: 22.11 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.08722, allocations: 4 kB / 0.495 GB, free: 22.11 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.08723, allocations: 0 / 0.495 GB, free: 22.11 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.982e-05/0.08726, allocations: 0 / 0.495 GB, free: 22.11 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.001392/0.08865, allocations: 1.516 MB / 0.4965 GB, free: 20.53 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.397e-05/0.0887, allocations: 11.97 kB / 0.4965 GB, free: 20.52 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001433/0.08885, allocations: 202.5 kB / 0.4967 GB, free: 20.32 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005811/0.08943, allocations: 0.7433 MB / 0.4974 GB, free: 19.53 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.578e-05/0.0895, allocations: 74.44 kB / 0.4975 GB, free: 19.45 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.595e-05/0.08959, allocations: 108.3 kB / 0.4976 GB, free: 19.35 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001245/0.09084, allocations: 1.15 MB / 0.4987 GB, free: 18.13 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.107e-05/0.09088, allocations: 192 / 0.4987 GB, free: 18.13 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.175e-05/0.09094, allocations: 47.94 kB / 0.4987 GB, free: 18.09 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.899e-05/0.09096, allocations: 28 kB / 0.4988 GB, free: 18.06 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001129/0.0921, allocations: 1.077 MB / 0.4998 GB, free: 16.98 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003696/0.0958, allocations: 3.681 MB / 0.5034 GB, free: 13.19 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001213/0.09705, allocations: 1.326 MB / 0.5047 GB, free: 11.86 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004396/0.0975, allocations: 478.3 kB / 0.5051 GB, free: 11.39 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.857e-05/0.09759, allocations: 28.77 kB / 0.5052 GB, free: 11.36 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.757e-05/0.09761, allocations: 43.12 kB / 0.5052 GB, free: 11.3 MB / 346.7 MB Notification: Performance of pre-optimization done (n=67): time 2.494e-06/0.09762, allocations: 0 / 0.5052 GB, free: 11.3 MB / 346.7 MB Notification: Performance of matching and sorting (n=67): time 0.001376/0.099, allocations: 1.516 MB / 0.5067 GB, free: 9.785 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.351e-05/0.09904, allocations: 63.95 kB / 0.5068 GB, free: 9.711 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001064/0.1001, allocations: 1.269 MB / 0.508 GB, free: 8.434 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.914e-05/0.1001, allocations: 41.7 kB / 0.508 GB, free: 8.387 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000363/0.1005, allocations: 0.7754 MB / 0.5088 GB, free: 7.602 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001141/0.1006, allocations: 224.7 kB / 0.509 GB, free: 7.379 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.174e-05/0.1007, allocations: 16 kB / 0.509 GB, free: 7.363 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.994e-05/0.1007, allocations: 333.9 kB / 0.5093 GB, free: 7.031 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004023/0.1011, allocations: 433.1 kB / 0.5098 GB, free: 6.605 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004538/0.1016, allocations: 0.52 MB / 0.5103 GB, free: 6.051 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008551/0.1025, allocations: 0.9938 MB / 0.5112 GB, free: 5.023 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.1025, allocations: 4 kB / 0.5112 GB, free: 5.02 MB / 346.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.00108/0.1036, allocations: 1.175 MB / 0.5124 GB, free: 3.836 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.1036, allocations: 4 kB / 0.5124 GB, free: 3.832 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.126e-06/0.1036, allocations: 4 kB / 0.5124 GB, free: 3.828 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.845e-05/0.1036, allocations: 11.88 kB / 0.5124 GB, free: 3.816 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004191/0.104, allocations: 131.8 kB / 0.5125 GB, free: 3.688 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.068e-05/0.1041, allocations: 4 kB / 0.5125 GB, free: 3.684 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002334/0.1043, allocations: 55.38 kB / 0.5126 GB, free: 3.629 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.37e-05/0.1043, allocations: 24 kB / 0.5126 GB, free: 3.605 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 (82): * Single equations (assignments): 82 * 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.0003829/0.1047, allocations: 385.5 kB / 0.513 GB, free: 3.219 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001046/0.1048, allocations: 134.2 kB / 0.5131 GB, free: 3.086 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001242/0.1061, allocations: 1.193 MB / 0.5143 GB, free: 1.879 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.1061, allocations: 8 kB / 0.5143 GB, free: 1.871 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.1061, allocations: 0 / 0.5143 GB, free: 1.871 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.1061, allocations: 3.984 kB / 0.5143 GB, free: 1.867 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002152/0.1083, allocations: 2.36 MB / 0.5166 GB, free: 15.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.1083, allocations: 0 / 0.5166 GB, free: 15.45 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004461/0.1088, allocations: 107.9 kB / 0.5167 GB, free: 15.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.1088, allocations: 0 / 0.5167 GB, free: 15.34 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.598e-05/0.1088, allocations: 23.98 kB / 0.5167 GB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.859e-06/0.1088, allocations: 0 / 0.5167 GB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.1088, allocations: 3.938 kB / 0.5167 GB, free: 15.31 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001972/0.1108, allocations: 1.875 MB / 0.5185 GB, free: 13.42 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001908/0.111, allocations: 203.1 kB / 0.5187 GB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.818e-05/0.1111, allocations: 12.06 kB / 0.5188 GB, free: 13.19 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002172/0.1113, allocations: 12 kB / 0.5188 GB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.062e-05/0.1114, allocations: 40.45 kB / 0.5188 GB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.374e-05/0.1115, allocations: 23.98 kB / 0.5188 GB, free: 13.12 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001023/0.1125, allocations: 0.8772 MB / 0.5197 GB, free: 12.24 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1125, allocations: 0 / 0.5197 GB, free: 12.24 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005312/0.1131, allocations: 210.9 kB / 0.5199 GB, free: 12.04 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 (67): * Single equations (assignments): 67 * 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.0001647/0.1132, allocations: 127.1 kB / 0.52 GB, free: 11.9 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001258/0.1145, allocations: 0.9763 MB / 0.521 GB, free: 10.92 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.1145, allocations: 4 kB / 0.521 GB, free: 10.92 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000573/0.1151, allocations: 0.5107 MB / 0.5215 GB, free: 10.4 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006117/0.1157, allocations: 90.03 kB / 0.5215 GB, free: 10.32 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004149/0.1199, allocations: 3.384 MB / 0.5249 GB, free: 6.902 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009181/0.1208, allocations: 1.307 MB / 0.5261 GB, free: 5.57 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002602/0.1211, allocations: 72.36 kB / 0.5262 GB, free: 5.496 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001236/0.1212, allocations: 51.44 kB / 0.5262 GB, free: 5.445 MB / 362.7 MB Notification: Performance of SimCode: time 7.72e-07/0.1212, allocations: 0 / 0.5262 GB, free: 5.445 MB / 362.7 MB Notification: Performance of Templates: time 0.01182/0.1331, allocations: 4.793 MB / 0.5309 GB, free: 0.6562 MB / 362.7 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe 2>&1)