Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.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.00126/0.00126, allocations: 114.1 kB / 17.16 MB, free: 5.895 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.001312/0.001312, allocations: 215 kB / 20.13 MB, free: 2.949 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.368/1.368, allocations: 230.6 MB / 253.5 MB, free: 15.1 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.1775/0.1775, allocations: 29.23 MB / 338.8 MB, free: 11.79 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_1,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_1,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1",fmuType="cs",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.001831/0.001831, allocations: 64.12 kB / 473.9 MB, free: 27.11 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1022, allocations: 60.75 MB / 0.5222 GB, free: 4.738 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_1): time 0.004726/0.1069, allocations: 3.641 MB / 0.5257 GB, free: 1.082 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001345/0.1082, allocations: 0.6584 MB / 0.5264 GB, free: 432 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003134/0.1086, allocations: 19.94 kB / 0.5264 GB, free: 412 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003626/0.1089, allocations: 166.3 kB / 0.5265 GB, free: 244 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002639/0.1092, allocations: 118.8 kB / 0.5267 GB, free: 124 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00066/0.1098, allocations: 359.5 kB / 0.527 GB, free: 15.77 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000781/0.1106, allocations: 0.825 MB / 0.5278 GB, free: 14.94 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006846/0.1113, allocations: 0.5039 MB / 0.5283 GB, free: 14.4 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002751/0.1116, allocations: 342.5 kB / 0.5286 GB, free: 14.07 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003432/0.1119, allocations: 433.5 kB / 0.529 GB, free: 13.64 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001095/0.112, allocations: 84 kB / 0.5291 GB, free: 13.56 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001782/0.1122, allocations: 116 kB / 0.5292 GB, free: 13.45 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003536/0.1126, allocations: 438.3 kB / 0.5296 GB, free: 13.02 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004198/0.113, allocations: 0.6009 MB / 0.5302 GB, free: 12.41 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001186/0.1142, allocations: 1.22 MB / 0.5314 GB, free: 11.18 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.1142, allocations: 8 kB / 0.5314 GB, free: 11.18 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.1142, allocations: 0 / 0.5314 GB, free: 11.18 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.579e-05/0.1142, allocations: 0 / 0.5314 GB, free: 11.18 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 259 * Number of variables: 259 Notification: Performance of Generate backend data structure: time 0.002026/0.1162, allocations: 1.782 MB / 0.5332 GB, free: 9.328 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/0.1163, allocations: 8.031 kB / 0.5332 GB, free: 9.32 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.273e-05/0.1163, allocations: 48.98 kB / 0.5332 GB, free: 9.27 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001995/0.1165, allocations: 174.9 kB / 0.5334 GB, free: 9.086 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002107/0.1167, allocations: 199.6 kB / 0.5336 GB, free: 8.891 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008708/0.1176, allocations: 0.7555 MB / 0.5343 GB, free: 8.086 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.669e-05/0.1177, allocations: 78.52 kB / 0.5344 GB, free: 8.008 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001252/0.1178, allocations: 112.3 kB / 0.5345 GB, free: 7.898 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001532/0.1193, allocations: 1.174 MB / 0.5356 GB, free: 6.656 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.407e-05/0.1194, allocations: 0 / 0.5356 GB, free: 6.656 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.734e-05/0.1194, allocations: 44 kB / 0.5357 GB, free: 6.613 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.104e-05/0.1194, allocations: 24 kB / 0.5357 GB, free: 6.59 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00138/0.1208, allocations: 1.074 MB / 0.5368 GB, free: 5.508 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004181/0.125, allocations: 3.623 MB / 0.5403 GB, free: 1.773 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001232/0.1262, allocations: 0.9633 MB / 0.5412 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005617/0.1268, allocations: 477 kB / 0.5417 GB, free: 340 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.419e-05/0.1269, allocations: 28.62 kB / 0.5417 GB, free: 312 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.572e-05/0.1269, allocations: 43.2 kB / 0.5418 GB, free: 260 kB / 398.1 MB Notification: Performance of pre-optimization done (n=78): time 1.743e-06/0.1269, allocations: 0 / 0.5418 GB, free: 260 kB / 398.1 MB Notification: Performance of matching and sorting (n=104): time 0.009253/0.1362, allocations: 5.555 MB / 0.5472 GB, free: 10.61 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.016e-05/0.1362, allocations: 64.41 kB / 0.5472 GB, free: 10.54 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001371/0.1376, allocations: 1.234 MB / 0.5485 GB, free: 9.289 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.369e-05/0.1376, allocations: 45.7 kB / 0.5485 GB, free: 9.238 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005829/0.1382, allocations: 0.765 MB / 0.5492 GB, free: 8.465 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002698/0.1385, allocations: 364.8 kB / 0.5496 GB, free: 8.105 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002583/0.1387, allocations: 170.6 kB / 0.5498 GB, free: 7.934 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.1389, allocations: 341.9 kB / 0.5501 GB, free: 7.594 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007258/0.1396, allocations: 0.5876 MB / 0.5507 GB, free: 7.004 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008162/0.1404, allocations: 0.711 MB / 0.5514 GB, free: 6.262 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001793/0.1422, allocations: 1.384 MB / 0.5527 GB, free: 4.848 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.1422, allocations: 0 / 0.5527 GB, free: 4.848 MB / 414.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002004/0.1442, allocations: 1.605 MB / 0.5543 GB, free: 3.23 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.079e-05/0.1443, allocations: 8 kB / 0.5543 GB, free: 3.223 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.1443, allocations: 0 / 0.5543 GB, free: 3.223 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.31e-05/0.1443, allocations: 8 kB / 0.5543 GB, free: 3.215 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006753/0.145, allocations: 203.7 kB / 0.5545 GB, free: 3.016 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.468e-05/0.145, allocations: 11.92 kB / 0.5545 GB, free: 3.004 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002575/0.1452, allocations: 20 kB / 0.5545 GB, free: 2.984 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.27e-05/0.1453, allocations: 56.3 kB / 0.5546 GB, free: 2.93 MB / 414.1 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 (119): * Single equations (assignments): 119 * 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.0004802/0.1458, allocations: 385.4 kB / 0.5549 GB, free: 2.543 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001746/0.146, allocations: 158.9 kB / 0.5551 GB, free: 2.387 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002339/0.1483, allocations: 1.72 MB / 0.5568 GB, free: 0.6562 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.338e-06/0.1483, allocations: 8 kB / 0.5568 GB, free: 0.6484 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.485e-06/0.1483, allocations: 3.938 kB / 0.5568 GB, free: 0.6445 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.858e-06/0.1483, allocations: 7.984 kB / 0.5568 GB, free: 0.6367 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00387/0.1522, allocations: 3.173 MB / 0.5599 GB, free: 13.39 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/0.1522, allocations: 7.984 kB / 0.5599 GB, free: 13.38 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006786/0.1529, allocations: 183.8 kB / 0.5601 GB, free: 13.2 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.912e-06/0.1529, allocations: 4 kB / 0.5601 GB, free: 13.2 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.453e-05/0.153, allocations: 27.98 kB / 0.5601 GB, free: 13.17 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.751e-06/0.153, allocations: 8.125 kB / 0.5601 GB, free: 13.16 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.153, allocations: 7.938 kB / 0.5601 GB, free: 13.15 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002986/0.156, allocations: 2.61 MB / 0.5627 GB, free: 10.52 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001702/0.1561, allocations: 204.1 kB / 0.5629 GB, free: 10.3 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.005e-05/0.1562, allocations: 24.06 kB / 0.5629 GB, free: 10.27 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002677/0.1565, allocations: 16.12 kB / 0.5629 GB, free: 10.26 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001158/0.1566, allocations: 80.78 kB / 0.563 GB, free: 10.18 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.634e-05/0.1567, allocations: 47.98 kB / 0.563 GB, free: 10.13 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0009768/0.1576, allocations: 0.8558 MB / 0.5638 GB, free: 9.273 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1576, allocations: 0 / 0.5638 GB, free: 9.273 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005324/0.1582, allocations: 187.9 kB / 0.564 GB, free: 9.09 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 5 ($outputAlias_Pop,$outputAlias_Pol,$outputAlias_Cap_inv,$outputAlias_Nat_res,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 (105): * Single equations (assignments): 105 * 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.003391/0.1616, allocations: 3.197 MB / 0.5671 GB, free: 5.855 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001647/0.1632, allocations: 1.352 MB / 0.5685 GB, free: 4.5 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.1632, allocations: 4 kB / 0.5685 GB, free: 4.496 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007939/0.164, allocations: 0.6967 MB / 0.5692 GB, free: 3.805 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006099/0.1646, allocations: 110.8 kB / 0.5693 GB, free: 3.703 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01561/0.1802, allocations: 13.13 MB / 0.5821 GB, free: 6.371 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009549/0.1812, allocations: 1.32 MB / 0.5834 GB, free: 5.02 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004043/0.1816, allocations: 145.3 kB / 0.5835 GB, free: 4.875 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007694/0.1824, allocations: 0.6399 MB / 0.5841 GB, free: 4.234 MB / 446.1 MB Notification: Performance of SimCode: time 8.51e-07/0.1824, allocations: 0 / 0.5841 GB, free: 4.234 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.253/0.4354, allocations: 21.4 MB / 0.605 GB, free: 58.53 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.08/10.52, allocations: 15.16 kB / 0.6051 GB, free: 58.52 MB / 446.1 MB " [Timeout remaining time 649] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1_fmu --startTime=1900 --stopTime=2100 --stepSize=0.08 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.365237324964255] Failed to read output from testmodel.py, exit status != 0: 10.647126761963591 10.655694404 10.53963615 Calling exit ...