Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.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_6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009283/0.0009321, allocations: 175.8 kB / 15.43 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.26/1.26, allocations: 225.7 MB / 241.9 MB, free: 200 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.0007858/0.0007858, allocations: 89.83 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.2586/0.2586, allocations: 28.84 MB / 373 MB, free: 12.78 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002858/0.0002859, allocations: 8 kB / 441.2 MB, free: 69.55 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07639/0.07669, allocations: 57.49 MB / 498.7 MB, free: 11.95 MB / 330.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.002566/0.07929, allocations: 2.956 MB / 0.4899 GB, free: 8.988 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001495/0.0808, allocations: 0.8194 MB / 0.4907 GB, free: 8.148 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004373/0.08126, allocations: 19.94 kB / 0.4907 GB, free: 8.129 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002516/0.08152, allocations: 131 kB / 0.4908 GB, free: 8 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002586/0.08179, allocations: 91.5 kB / 0.4909 GB, free: 7.91 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005267/0.08232, allocations: 323.6 kB / 0.4912 GB, free: 7.594 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005096/0.08284, allocations: 0.8211 MB / 0.492 GB, free: 6.77 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005783/0.08343, allocations: 0.5935 MB / 0.4926 GB, free: 6.145 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001323/0.08357, allocations: 254.3 kB / 0.4929 GB, free: 5.895 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002055/0.08378, allocations: 333.6 kB / 0.4932 GB, free: 5.566 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 6.087e-05/0.08385, allocations: 20 kB / 0.4932 GB, free: 5.547 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000107/0.08396, allocations: 51.91 kB / 0.4932 GB, free: 5.496 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002043/0.08418, allocations: 354.4 kB / 0.4936 GB, free: 5.148 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002206/0.0844, allocations: 0.5361 MB / 0.4941 GB, free: 4.602 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005703/0.08498, allocations: 1.101 MB / 0.4952 GB, free: 3.496 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.08499, allocations: 0 / 0.4952 GB, free: 3.496 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.502e-06/0.085, allocations: 4 kB / 0.4952 GB, free: 3.492 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.373e-05/0.08502, allocations: 0 / 0.4952 GB, free: 3.492 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: 265 * Number of variables: 265 Notification: Performance of Generate backend data structure: time 0.001344/0.08637, allocations: 1.531 MB / 0.4967 GB, free: 1.898 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.965e-05/0.08641, allocations: 11.97 kB / 0.4967 GB, free: 1.887 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001431/0.08656, allocations: 202.4 kB / 0.4969 GB, free: 1.688 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005766/0.08714, allocations: 0.7434 MB / 0.4976 GB, free: 0.8945 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.456e-05/0.08719, allocations: 82.47 kB / 0.4977 GB, free: 0.8125 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.987e-05/0.08729, allocations: 100.4 kB / 0.4978 GB, free: 0.7148 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001339/0.08864, allocations: 1.174 MB / 0.4989 GB, free: 15.47 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.953e-05/0.08867, allocations: 8.062 kB / 0.4989 GB, free: 15.46 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.298e-05/0.08874, allocations: 43.94 kB / 0.499 GB, free: 15.42 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.923e-05/0.08876, allocations: 28 kB / 0.499 GB, free: 15.39 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00132/0.09009, allocations: 1.093 MB / 0.5001 GB, free: 14.29 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003788/0.09389, allocations: 3.713 MB / 0.5037 GB, free: 10.46 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00145/0.09535, allocations: 1.358 MB / 0.505 GB, free: 9.098 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004952/0.09586, allocations: 490.6 kB / 0.5055 GB, free: 8.617 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.613e-05/0.09594, allocations: 32.86 kB / 0.5055 GB, free: 8.582 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006678/0.09661, allocations: 0.5432 MB / 0.5061 GB, free: 8.027 MB / 346.7 MB Notification: Performance of pre-optimization done (n=72): time 2.685e-06/0.09663, allocations: 0 / 0.5061 GB, free: 8.027 MB / 346.7 MB Notification: Performance of matching and sorting (n=72): time 0.001708/0.09834, allocations: 1.566 MB / 0.5076 GB, free: 6.453 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.098e-05/0.09839, allocations: 60.06 kB / 0.5076 GB, free: 6.383 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001244/0.09964, allocations: 1.281 MB / 0.5089 GB, free: 5.094 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.666e-05/0.09969, allocations: 41.7 kB / 0.5089 GB, free: 5.047 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005097/0.1002, allocations: 0.7717 MB / 0.5097 GB, free: 4.266 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001538/0.1004, allocations: 248.4 kB / 0.5099 GB, free: 4.02 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.567e-05/0.1004, allocations: 12 kB / 0.5099 GB, free: 4.008 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.899e-05/0.1005, allocations: 337.9 kB / 0.5103 GB, free: 3.672 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004804/0.101, allocations: 441.8 kB / 0.5107 GB, free: 3.238 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005389/0.1015, allocations: 0.5484 MB / 0.5112 GB, free: 2.652 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001135/0.1027, allocations: 1.031 MB / 0.5122 GB, free: 1.586 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.1027, allocations: 4 kB / 0.5122 GB, free: 1.582 MB / 346.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001334/0.104, allocations: 1.218 MB / 0.5134 GB, free: 364 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.1041, allocations: 8 kB / 0.5134 GB, free: 356 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.744e-06/0.1041, allocations: 4 kB / 0.5134 GB, free: 352 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.1041, allocations: 4 kB / 0.5134 GB, free: 348 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000465/0.1046, allocations: 135.8 kB / 0.5136 GB, free: 212 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.557e-05/0.1046, allocations: 20.27 kB / 0.5136 GB, free: 192 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002393/0.1048, allocations: 67.28 kB / 0.5136 GB, free: 124 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.95e-05/0.1049, allocations: 24 kB / 0.5137 GB, free: 100 kB / 346.7 MB Warning: Assuming fixed start value for the following 2 variables: min_QL:DISCRETE(start = 1.0 fixed = true ) "Minimum quality of life" type: Real min_dPop:DISCRETE(unit = "1/yr" fixed = true ) "Minimal derivative of population" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$PRE.min_QL,$PRE.min_dPop,min_dPop,min_QL,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 (89): * Single equations (assignments): 89 * 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.0004621/0.1054, allocations: 385.4 kB / 0.514 GB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001157/0.1055, allocations: 146.1 kB / 0.5142 GB, free: 15.56 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001469/0.107, allocations: 1.227 MB / 0.5154 GB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.155e-06/0.107, allocations: 8 kB / 0.5154 GB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.107, allocations: 4 kB / 0.5154 GB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.498e-06/0.107, allocations: 3.984 kB / 0.5154 GB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002609/0.1096, allocations: 2.409 MB / 0.5177 GB, free: 11.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.1096, allocations: 0 / 0.5177 GB, free: 11.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004475/0.1101, allocations: 123.8 kB / 0.5179 GB, free: 11.72 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.11e-06/0.1101, allocations: 4 kB / 0.5179 GB, free: 11.72 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.53e-05/0.1101, allocations: 16 kB / 0.5179 GB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.1102, allocations: 4 kB / 0.5179 GB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.1102, allocations: 3.938 kB / 0.5179 GB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001862/0.112, allocations: 1.925 MB / 0.5198 GB, free: 9.75 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002297/0.1123, allocations: 247.1 kB / 0.52 GB, free: 9.488 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.801e-05/0.1124, allocations: 16 kB / 0.52 GB, free: 9.473 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002214/0.1126, allocations: 16 kB / 0.52 GB, free: 9.457 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.789e-05/0.1127, allocations: 44.53 kB / 0.5201 GB, free: 9.414 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.539e-05/0.1127, allocations: 23.98 kB / 0.5201 GB, free: 9.391 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0009047/0.1136, allocations: 0.8812 MB / 0.521 GB, free: 8.512 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1136, allocations: 0 / 0.521 GB, free: 8.512 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004803/0.1141, allocations: 219 kB / 0.5212 GB, free: 8.297 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: 3 ($whenCondition1,min_dPop,min_QL) * Number of discrete states: 2 (min_dPop,min_QL) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001496/0.1143, allocations: 127.1 kB / 0.5213 GB, free: 8.16 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001111/0.1154, allocations: 1.017 MB / 0.5223 GB, free: 7.145 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1154, allocations: 0 / 0.5223 GB, free: 7.145 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00053/0.1159, allocations: 0.5191 MB / 0.5228 GB, free: 6.625 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005401/0.1165, allocations: 90.7 kB / 0.5229 GB, free: 6.535 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003434/0.1199, allocations: 3.44 MB / 0.5262 GB, free: 3.062 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008318/0.1208, allocations: 1.311 MB / 0.5275 GB, free: 1.723 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002494/0.121, allocations: 72.48 kB / 0.5276 GB, free: 1.648 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001195/0.1212, allocations: 47.44 kB / 0.5276 GB, free: 1.602 MB / 362.7 MB Notification: Performance of SimCode: time 6.21e-07/0.1212, allocations: 4 kB / 0.5276 GB, free: 1.598 MB / 362.7 MB Notification: Performance of Templates: time 0.162/0.2832, allocations: 4.971 MB / 0.5325 GB, free: 46.48 MB / 362.7 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe 2>&1)