Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001796/0.001796, allocations: 80.08 kB / 19.43 MB, free: 344 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002137/0.002137, allocations: 161.7 kB / 22.76 MB, free: 1.664 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.548/1.548, allocations: 177.1 MB / 203.1 MB, free: 5.566 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/package.mo): time 0.2074/0.2074, allocations: 21.81 MB / 281.4 MB, free: 7.184 MB / 266.7 MB " [Timeout remaining time 180] Using package SystemDynamics with version 2.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(SystemDynamics.WorldDynamics.World2.Scenario_6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.386e-06/3.386e-06, allocations: 0 / 358.1 MB, free: 5.375 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.275e-05/4.614e-05, allocations: 6.25 kB / 358.1 MB, free: 5.367 MB / 330.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.007564/0.007611, allocations: 3.118 MB / 361.2 MB, free: 2.234 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003494/0.0111, allocations: 0.7596 MB / 362 MB, free: 1.473 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001105/0.01221, allocations: 23.88 kB / 362 MB, free: 1.449 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001006/0.01322, allocations: 182.3 kB / 362.2 MB, free: 1.27 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009063/0.01412, allocations: 134.8 kB / 362.3 MB, free: 1.137 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001784/0.01591, allocations: 379.4 kB / 362.7 MB, free: 0.7656 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002335/0.01824, allocations: 0.86 MB / 363.5 MB, free: 15.9 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001407/0.01965, allocations: 476.1 kB / 364 MB, free: 15.4 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001081/0.02073, allocations: 0.4949 MB / 364.5 MB, free: 14.91 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006782/0.02141, allocations: 310.7 kB / 364.8 MB, free: 14.6 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002429/0.02165, allocations: 84 kB / 364.9 MB, free: 14.52 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004198/0.02207, allocations: 116 kB / 365 MB, free: 14.41 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000738/0.02281, allocations: 458.3 kB / 365.4 MB, free: 13.96 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005731/0.02338, allocations: 334.6 kB / 365.8 MB, free: 13.63 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002636/0.02602, allocations: 1.225 MB / 367 MB, free: 12.4 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.166e-05/0.02603, allocations: 4 kB / 367 MB, free: 12.39 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.294e-06/0.02603, allocations: 0 / 367 MB, free: 12.39 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.577e-05/0.02606, allocations: 4 kB / 367 MB, free: 12.39 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: 265 * Number of variables: 265 Notification: Performance of Generate backend data structure: time 0.004545/0.0306, allocations: 1.77 MB / 368.8 MB, free: 10.57 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.463e-05/0.03067, allocations: 12.03 kB / 368.8 MB, free: 10.56 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006652/0.03133, allocations: 295.6 kB / 369.1 MB, free: 10.27 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001835/0.03317, allocations: 0.7188 MB / 369.8 MB, free: 9.52 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001301/0.0333, allocations: 78.45 kB / 369.9 MB, free: 9.441 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002387/0.03354, allocations: 112.4 kB / 370 MB, free: 9.332 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003232/0.03677, allocations: 1.17 MB / 371.1 MB, free: 8.094 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.036e-05/0.03681, allocations: 4.125 kB / 371.1 MB, free: 8.09 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001358/0.03694, allocations: 44.38 kB / 371.2 MB, free: 8.047 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.169e-05/0.037, allocations: 24.38 kB / 371.2 MB, free: 8.023 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002987/0.03998, allocations: 1.113 MB / 372.3 MB, free: 6.902 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008817/0.0488, allocations: 3.283 MB / 375.6 MB, free: 3.531 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003315/0.05211, allocations: 1.328 MB / 376.9 MB, free: 2.195 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009222/0.05304, allocations: 470.6 kB / 377.4 MB, free: 1.734 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001019/0.05314, allocations: 36.58 kB / 377.4 MB, free: 1.699 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009027/0.05404, allocations: 0.5471 MB / 378 MB, free: 1.137 MB / 346.7 MB Notification: Performance of pre-optimization done (n=72): time 3.106e-06/0.05404, allocations: 0 / 378 MB, free: 1.137 MB / 346.7 MB Notification: Performance of matching and sorting (n=72): time 0.002625/0.05667, allocations: 1.602 MB / 379.6 MB, free: 15.53 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.72e-05/0.05675, allocations: 60.06 kB / 379.6 MB, free: 15.46 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001767/0.05851, allocations: 1.28 MB / 380.9 MB, free: 14.17 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.476e-05/0.05857, allocations: 37.7 kB / 381 MB, free: 14.12 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008201/0.05939, allocations: 0.7687 MB / 381.7 MB, free: 13.35 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002644/0.05965, allocations: 250.1 kB / 382 MB, free: 13.1 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002152/0.05987, allocations: 118.7 kB / 382.1 MB, free: 12.98 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001959/0.06006, allocations: 337.9 kB / 382.4 MB, free: 12.64 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006808/0.06074, allocations: 441.8 kB / 382.8 MB, free: 12.21 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007682/0.06151, allocations: 0.5601 MB / 383.4 MB, free: 11.61 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001614/0.06313, allocations: 1.051 MB / 384.5 MB, free: 10.53 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.059e-06/0.06313, allocations: 0 / 384.5 MB, free: 10.53 MB / 362.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002002/0.06513, allocations: 1.257 MB / 385.7 MB, free: 9.262 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.353e-05/0.06517, allocations: 4 kB / 385.7 MB, free: 9.258 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.347e-05/0.06518, allocations: 4.344 kB / 385.7 MB, free: 9.254 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.43e-05/0.06522, allocations: 12 kB / 385.7 MB, free: 9.242 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005202/0.06574, allocations: 135.8 kB / 385.9 MB, free: 9.109 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.401e-05/0.06575, allocations: 4 kB / 385.9 MB, free: 9.105 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003322/0.06608, allocations: 59.5 kB / 385.9 MB, free: 9.047 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.487e-05/0.06614, allocations: 24 kB / 386 MB, free: 9.023 MB / 362.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_QL,min_dPop,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.0006842/0.06682, allocations: 385.5 kB / 386.3 MB, free: 8.637 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002318/0.06705, allocations: 171 kB / 386.5 MB, free: 8.469 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001937/0.06899, allocations: 1.242 MB / 387.7 MB, free: 7.215 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.324e-05/0.069, allocations: 8 kB / 387.7 MB, free: 7.207 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.06901, allocations: 0 / 387.7 MB, free: 7.207 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.247e-06/0.06902, allocations: 3.984 kB / 387.7 MB, free: 7.203 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003352/0.07237, allocations: 2.191 MB / 389.9 MB, free: 4.969 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.119e-06/0.07237, allocations: 0 / 389.9 MB, free: 4.969 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005155/0.07289, allocations: 119.8 kB / 390.1 MB, free: 4.852 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.555e-06/0.0729, allocations: 0 / 390.1 MB, free: 4.852 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.6e-05/0.07294, allocations: 19.98 kB / 390.1 MB, free: 4.832 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.224e-06/0.07295, allocations: 8 kB / 390.1 MB, free: 4.824 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.07295, allocations: 0 / 390.1 MB, free: 4.824 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00286/0.07581, allocations: 1.964 MB / 392 MB, free: 2.844 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003916/0.0762, allocations: 174.9 kB / 392.2 MB, free: 2.672 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.935e-05/0.0763, allocations: 16 kB / 392.2 MB, free: 2.656 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00024/0.07654, allocations: 11.98 kB / 392.2 MB, free: 2.645 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/0.07665, allocations: 44.58 kB / 392.3 MB, free: 2.602 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.848e-05/0.07669, allocations: 19.98 kB / 392.3 MB, free: 2.582 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001365/0.07805, allocations: 0.8844 MB / 393.2 MB, free: 1.699 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.07805, allocations: 0 / 393.2 MB, free: 1.699 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006975/0.07875, allocations: 219.2 kB / 393.4 MB, free: 1.484 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.0002888/0.07904, allocations: 115.1 kB / 393.5 MB, free: 1.359 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001671/0.08071, allocations: 0.9855 MB / 394.5 MB, free: 380 kB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.08072, allocations: 0 / 394.5 MB, free: 380 kB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007815/0.0815, allocations: 0.5158 MB / 395 MB, free: 15.86 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006588/0.08216, allocations: 95.39 kB / 395.1 MB, free: 15.77 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005214/0.08737, allocations: 2.84 MB / 398 MB, free: 12.88 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001084/0.08845, allocations: 0.7174 MB / 398.7 MB, free: 12.13 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003293/0.08878, allocations: 76.66 kB / 398.7 MB, free: 12.05 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000161/0.08894, allocations: 56.42 kB / 398.8 MB, free: 12 MB / 378.7 MB Notification: Performance of SimCode: time 1.513e-06/0.08895, allocations: 0 / 398.8 MB, free: 12 MB / 378.7 MB Notification: Performance of Templates: time 0.0153/0.1042, allocations: 4.465 MB / 403.3 MB, free: 7.566 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.makefile [Timeout 660] (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) [Timeout 480] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6_cvode.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6_cvode.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6_cvode.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6_cvode.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6 -abortSlowSimulation -alarm=480 -lv LOG_STATS -s cvode > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6_cvode.pipe 2>&1) [Timeout 480] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6_gbode.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6_gbode.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6_gbode.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6_gbode.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6 -abortSlowSimulation -alarm=480 -lv LOG_STATS -s gbode -gbm=radauIIA3 > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6_gbode.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.141396297025494]