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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001424/0.001424, allocations: 106 kB / 18.84 MB, free: 3.023 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002042/0.002042, allocations: 190.8 kB / 22.11 MB, free: 4.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.608/1.608, allocations: 225.6 MB / 250.8 MB, free: 2.895 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2222/0.2222, allocations: 29.24 MB / 335.3 MB, free: 15.85 MB / 270.1 MB " [Timeout remaining time 180] Using package SystemDynamics with version 2.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.001972/0.001972, allocations: 69.89 kB / 469.6 MB, free: 35.38 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1252, allocations: 59.62 MB / 0.5168 GB, free: 13.06 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.005492/0.1307, allocations: 3.694 MB / 0.5204 GB, free: 9.352 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002233/0.133, allocations: 0.7791 MB / 0.5211 GB, free: 8.57 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005147/0.1335, allocations: 19.94 kB / 0.5212 GB, free: 8.551 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004896/0.134, allocations: 174.3 kB / 0.5213 GB, free: 8.379 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003492/0.1343, allocations: 134.8 kB / 0.5215 GB, free: 8.246 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008792/0.1352, allocations: 391.3 kB / 0.5218 GB, free: 7.863 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009915/0.1362, allocations: 0.8601 MB / 0.5227 GB, free: 7 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007763/0.137, allocations: 0.5005 MB / 0.5232 GB, free: 6.461 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003959/0.1374, allocations: 362.4 kB / 0.5235 GB, free: 6.105 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004819/0.1378, allocations: 449.5 kB / 0.5239 GB, free: 5.664 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001367/0.138, allocations: 84 kB / 0.524 GB, free: 5.582 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002311/0.1382, allocations: 119.9 kB / 0.5241 GB, free: 5.465 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004132/0.1386, allocations: 446.4 kB / 0.5246 GB, free: 5.023 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005393/0.1392, allocations: 0.6241 MB / 0.5252 GB, free: 4.395 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001529/0.1407, allocations: 1.278 MB / 0.5264 GB, free: 3.109 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.1407, allocations: 0 / 0.5264 GB, free: 3.109 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1407, allocations: 0 / 0.5264 GB, free: 3.109 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.588e-05/0.1407, allocations: 0 / 0.5264 GB, free: 3.109 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.002547/0.1433, allocations: 1.864 MB / 0.5282 GB, free: 1.18 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.685e-05/0.1433, allocations: 12.03 kB / 0.5282 GB, free: 1.168 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002302/0.1435, allocations: 170.8 kB / 0.5284 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000256/0.1438, allocations: 219.5 kB / 0.5286 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001034/0.1448, allocations: 0.7721 MB / 0.5294 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.169e-05/0.1449, allocations: 78.52 kB / 0.5294 GB, free: 15.87 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001495/0.145, allocations: 116.3 kB / 0.5296 GB, free: 15.76 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001694/0.1467, allocations: 1.186 MB / 0.5307 GB, free: 14.5 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.464e-05/0.1468, allocations: 7.938 kB / 0.5307 GB, free: 14.5 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.494e-05/0.1468, allocations: 51.98 kB / 0.5308 GB, free: 14.45 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.623e-05/0.1469, allocations: 24 kB / 0.5308 GB, free: 14.42 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001586/0.1485, allocations: 1.113 MB / 0.5319 GB, free: 13.3 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004999/0.1535, allocations: 3.695 MB / 0.5355 GB, free: 9.5 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001707/0.1552, allocations: 1.323 MB / 0.5368 GB, free: 8.168 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005915/0.1558, allocations: 478.6 kB / 0.5372 GB, free: 7.699 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.674e-05/0.1558, allocations: 20.64 kB / 0.5373 GB, free: 7.676 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000793/0.1566, allocations: 0.5511 MB / 0.5378 GB, free: 7.113 MB / 398.1 MB Notification: Performance of pre-optimization done (n=72): time 3.747e-06/0.1566, allocations: 0 / 0.5378 GB, free: 7.113 MB / 398.1 MB Notification: Performance of matching and sorting (n=72): time 0.002248/0.1589, allocations: 1.579 MB / 0.5393 GB, free: 5.527 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.467e-05/0.1589, allocations: 71.97 kB / 0.5394 GB, free: 5.445 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001656/0.1606, allocations: 1.3 MB / 0.5407 GB, free: 4.137 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.177e-05/0.1606, allocations: 41.7 kB / 0.5407 GB, free: 4.09 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000717/0.1614, allocations: 0.7806 MB / 0.5415 GB, free: 3.301 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002507/0.1616, allocations: 253.8 kB / 0.5417 GB, free: 3.051 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001889/0.1618, allocations: 130.6 kB / 0.5418 GB, free: 2.918 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001632/0.162, allocations: 326 kB / 0.5422 GB, free: 2.594 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005903/0.1626, allocations: 449.8 kB / 0.5426 GB, free: 2.156 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006883/0.1632, allocations: 0.5484 MB / 0.5431 GB, free: 1.566 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001398/0.1646, allocations: 1.05 MB / 0.5441 GB, free: 488 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/0.1646, allocations: 4 kB / 0.5442 GB, free: 484 kB / 398.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.00171/0.1664, allocations: 1.23 MB / 0.5454 GB, free: 15.23 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.165e-05/0.1664, allocations: 4 kB / 0.5454 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.1664, allocations: 4 kB / 0.5454 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.38e-05/0.1664, allocations: 8 kB / 0.5454 GB, free: 15.22 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005008/0.1669, allocations: 139.8 kB / 0.5455 GB, free: 15.08 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.176e-05/0.1669, allocations: 4.344 kB / 0.5455 GB, free: 15.08 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002869/0.1672, allocations: 67.48 kB / 0.5456 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.085e-05/0.1672, allocations: 28 kB / 0.5456 GB, free: 14.98 MB / 414.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.0007037/0.168, allocations: 383.2 kB / 0.546 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001717/0.1681, allocations: 151 kB / 0.5461 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00176/0.1699, allocations: 1.235 MB / 0.5473 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.544e-05/0.1699, allocations: 19.88 kB / 0.5473 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.1699, allocations: 0 / 0.5473 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.238e-06/0.1699, allocations: 3.984 kB / 0.5473 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003079/0.173, allocations: 2.421 MB / 0.5497 GB, free: 10.7 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.913e-06/0.173, allocations: 3.984 kB / 0.5497 GB, free: 10.7 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004615/0.1735, allocations: 115.8 kB / 0.5498 GB, free: 10.58 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.877e-05/0.1735, allocations: 7.938 kB / 0.5498 GB, free: 10.57 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.761e-05/0.1735, allocations: 12 kB / 0.5498 GB, free: 10.56 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.121e-06/0.1735, allocations: 4 kB / 0.5498 GB, free: 10.56 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.1735, allocations: 4 kB / 0.5498 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002366/0.1759, allocations: 1.941 MB / 0.5517 GB, free: 8.598 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003107/0.1762, allocations: 251.9 kB / 0.552 GB, free: 8.332 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.713e-05/0.1763, allocations: 16 kB / 0.552 GB, free: 8.316 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002214/0.1765, allocations: 15.98 kB / 0.552 GB, free: 8.301 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.999e-05/0.1766, allocations: 40.58 kB / 0.552 GB, free: 8.262 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.158e-05/0.1766, allocations: 23.98 kB / 0.5521 GB, free: 8.238 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001173/0.1778, allocations: 0.8969 MB / 0.5529 GB, free: 7.344 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1778, allocations: 4 kB / 0.5529 GB, free: 7.34 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006402/0.1784, allocations: 219.2 kB / 0.5532 GB, free: 7.125 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.002825/0.1813, allocations: 2.522 MB / 0.5556 GB, free: 4.566 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001476/0.1827, allocations: 0.9972 MB / 0.5566 GB, free: 3.57 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.1828, allocations: 0 / 0.5566 GB, free: 3.57 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006654/0.1834, allocations: 0.5034 MB / 0.5571 GB, free: 3.066 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006333/0.1841, allocations: 90.7 kB / 0.5572 GB, free: 2.977 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01665/0.2007, allocations: 11.74 MB / 0.5686 GB, free: 7.051 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001146/0.2018, allocations: 1.315 MB / 0.5699 GB, free: 5.711 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.00027/0.2021, allocations: 80.8 kB / 0.57 GB, free: 5.629 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007278/0.2028, allocations: 0.593 MB / 0.5706 GB, free: 5.035 MB / 430.1 MB Notification: Performance of SimCode: time 2.434e-06/0.2028, allocations: 0 / 0.5706 GB, free: 5.035 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1146/0.3175, allocations: 19.51 MB / 0.5896 GB, free: 1.57 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 51.29/51.61, allocations: 2.5 kB / 0.5896 GB, free: 1.57 MB / 446.1 MB " [Timeout remaining time 608] (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: 55.01245501101948] Failed to read output from testmodel.py, exit status != 0: 51.71595605509356 51.730404007 51.586710007 Calling exit ...