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.001509/0.001509, allocations: 99.64 kB / 18.95 MB, free: 2.676 MB / 14.72 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.001702/0.001702, allocations: 204.8 kB / 22.24 MB, free: 5.262 MB / 14.72 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.332/1.332, allocations: 230.6 MB / 256 MB, free: 7.789 MB / 206.1 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.1741/0.1741, allocations: 29.23 MB / 341.7 MB, free: 5.598 MB / 270.1 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: "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_6,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_6,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: SystemDynamics requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002194/0.002194, allocations: 71.89 kB / 478.4 MB, free: 364 kB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3043/0.3065, allocations: 60.79 MB / 0.5265 GB, free: 7.836 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.004209/0.3107, allocations: 3.104 MB / 0.5296 GB, free: 5.758 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001599/0.3123, allocations: 0.7626 MB / 0.5303 GB, free: 5.203 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003828/0.3127, allocations: 22.44 kB / 0.5303 GB, free: 5.195 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004171/0.3131, allocations: 172.6 kB / 0.5305 GB, free: 5.094 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003078/0.3134, allocations: 137.6 kB / 0.5306 GB, free: 5.008 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007698/0.3142, allocations: 380.2 kB / 0.531 GB, free: 4.809 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008158/0.315, allocations: 0.8503 MB / 0.5318 GB, free: 4.422 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005979/0.3156, allocations: 471.2 kB / 0.5323 GB, free: 4.133 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002896/0.3159, allocations: 355.9 kB / 0.5326 GB, free: 3.938 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003541/0.3162, allocations: 392.7 kB / 0.533 GB, free: 3.727 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001346/0.3164, allocations: 90.64 kB / 0.5331 GB, free: 3.723 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002048/0.3166, allocations: 114.2 kB / 0.5332 GB, free: 3.719 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003404/0.3169, allocations: 444.2 kB / 0.5336 GB, free: 3.512 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003035/0.3172, allocations: 479.5 kB / 0.534 GB, free: 3.184 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001177/0.3184, allocations: 1.289 MB / 0.5353 GB, free: 2.484 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.3184, allocations: 1.312 kB / 0.5353 GB, free: 2.484 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3184, allocations: 3.938 kB / 0.5353 GB, free: 2.48 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.34e-05/0.3184, allocations: 0 / 0.5353 GB, free: 2.48 MB / 382.1 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.001894/0.3203, allocations: 1.79 MB / 0.5371 GB, free: 1.09 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.3203, allocations: 9.625 kB / 0.5371 GB, free: 1.09 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001608/0.3205, allocations: 173.2 kB / 0.5372 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002011/0.3207, allocations: 213.7 kB / 0.5374 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007806/0.3215, allocations: 0.7135 MB / 0.5381 GB, free: 252 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.511e-05/0.3215, allocations: 78.61 kB / 0.5382 GB, free: 216 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001073/0.3217, allocations: 106.1 kB / 0.5383 GB, free: 180 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001576/0.3232, allocations: 1.192 MB / 0.5395 GB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.125e-05/0.3233, allocations: 5.062 kB / 0.5395 GB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.906e-05/0.3233, allocations: 49.88 kB / 0.5395 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.526e-05/0.3234, allocations: 26.06 kB / 0.5396 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001443/0.3248, allocations: 1.116 MB / 0.5406 GB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004381/0.3292, allocations: 3.429 MB / 0.544 GB, free: 12.65 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001592/0.3308, allocations: 1.335 MB / 0.5453 GB, free: 12.17 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005427/0.3313, allocations: 474.7 kB / 0.5457 GB, free: 12 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.234e-05/0.3314, allocations: 25.11 kB / 0.5458 GB, free: 11.99 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006893/0.3321, allocations: 0.5433 MB / 0.5463 GB, free: 11.74 MB / 398.1 MB Notification: Performance of pre-optimization done (n=72): time 3.006e-06/0.3321, allocations: 0 / 0.5463 GB, free: 11.74 MB / 398.1 MB Notification: Performance of matching and sorting (n=72): time 0.002003/0.3341, allocations: 1.582 MB / 0.5478 GB, free: 11.02 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.264e-05/0.3341, allocations: 68 kB / 0.5479 GB, free: 10.94 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001509/0.3356, allocations: 1.301 MB / 0.5492 GB, free: 9.629 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.306e-05/0.3357, allocations: 37.7 kB / 0.5492 GB, free: 9.586 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006138/0.3363, allocations: 0.7845 MB / 0.55 GB, free: 8.793 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001931/0.3365, allocations: 258 kB / 0.5502 GB, free: 8.539 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001653/0.3367, allocations: 122.7 kB / 0.5503 GB, free: 8.414 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.3368, allocations: 333.9 kB / 0.5507 GB, free: 8.082 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005313/0.3373, allocations: 445.8 kB / 0.5511 GB, free: 7.645 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006149/0.3379, allocations: 0.5523 MB / 0.5516 GB, free: 7.051 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001282/0.3392, allocations: 1.043 MB / 0.5526 GB, free: 5.969 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.3392, allocations: 4 kB / 0.5527 GB, free: 5.965 MB / 398.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001485/0.3407, allocations: 1.23 MB / 0.5539 GB, free: 4.727 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.917e-05/0.3407, allocations: 8 kB / 0.5539 GB, free: 4.719 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.3407, allocations: 0 / 0.5539 GB, free: 4.719 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.92e-05/0.3408, allocations: 8 kB / 0.5539 GB, free: 4.711 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004619/0.3412, allocations: 148.1 kB / 0.554 GB, free: 4.566 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.277e-05/0.3412, allocations: 7.938 kB / 0.554 GB, free: 4.559 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002646/0.3415, allocations: 59.58 kB / 0.5541 GB, free: 4.5 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.956e-05/0.3415, allocations: 27.94 kB / 0.5541 GB, free: 4.473 MB / 398.1 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.0005415/0.3421, allocations: 381.4 kB / 0.5545 GB, free: 4.09 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001464/0.3422, allocations: 147 kB / 0.5546 GB, free: 3.945 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001587/0.3438, allocations: 1.239 MB / 0.5558 GB, free: 2.699 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.119e-05/0.3438, allocations: 15.94 kB / 0.5558 GB, free: 2.684 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.393e-06/0.3438, allocations: 3.984 kB / 0.5558 GB, free: 2.68 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.3438, allocations: 0 / 0.5558 GB, free: 2.68 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002758/0.3466, allocations: 2.319 MB / 0.5581 GB, free: 312 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.3466, allocations: 0 / 0.5581 GB, free: 312 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004441/0.347, allocations: 123.8 kB / 0.5582 GB, free: 188 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.682e-06/0.3471, allocations: 3.938 kB / 0.5582 GB, free: 184 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.627e-05/0.3471, allocations: 16 kB / 0.5582 GB, free: 168 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.287e-06/0.3471, allocations: 0 / 0.5582 GB, free: 168 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.3471, allocations: 0 / 0.5582 GB, free: 168 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002152/0.3492, allocations: 1.949 MB / 0.5601 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003082/0.3496, allocations: 186.7 kB / 0.5603 GB, free: 14.01 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.348e-05/0.3496, allocations: 16 kB / 0.5603 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002176/0.3499, allocations: 12 kB / 0.5603 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.709e-05/0.3499, allocations: 44.56 kB / 0.5604 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.255e-05/0.35, allocations: 20 kB / 0.5604 GB, free: 13.92 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001212/0.3512, allocations: 0.8969 MB / 0.5613 GB, free: 13.03 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3512, allocations: 4 kB / 0.5613 GB, free: 13.02 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005882/0.3518, allocations: 215.2 kB / 0.5615 GB, free: 12.81 MB / 414.1 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.00255/0.3543, allocations: 2.514 MB / 0.5639 GB, free: 10.27 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001275/0.3556, allocations: 0.9932 MB / 0.5649 GB, free: 9.277 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3556, allocations: 0 / 0.5649 GB, free: 9.277 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005894/0.3562, allocations: 0.5073 MB / 0.5654 GB, free: 8.773 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006005/0.3568, allocations: 97.75 kB / 0.5655 GB, free: 8.688 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01501/0.3718, allocations: 11.71 MB / 0.5769 GB, free: 12.79 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007743/0.3726, allocations: 0.7297 MB / 0.5776 GB, free: 12.02 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002535/0.3728, allocations: 76.53 kB / 0.5777 GB, free: 11.95 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006316/0.3735, allocations: 0.593 MB / 0.5783 GB, free: 11.36 MB / 430.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3735, allocations: 0 / 0.5783 GB, free: 11.36 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05272/0.4262, allocations: 19.37 MB / 0.5972 GB, free: 8.098 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.64/12.06, allocations: 4 kB / 0.5972 GB, free: 8.094 MB / 446.1 MB " [Timeout remaining time 648] (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 & python3 -m fmpy simulate --output-file SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6_res.csv --start-time 1900 --stop-time 2100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.08 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.763191927224398] Failed to read output from testmodel.py, exit status != 0: 12.179984653834254 12.196360572 11.874786735 Calling exit ...