Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.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.001772/0.001772, allocations: 120 kB / 17.17 MB, free: 5.977 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.002042/0.002042, allocations: 214.3 kB / 20.13 MB, free: 3.035 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.36/1.36, allocations: 230.6 MB / 253.5 MB, free: 15.09 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.175/0.175, allocations: 29.22 MB / 338.8 MB, free: 11.77 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_2,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_2,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2",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.001909/0.001909, allocations: 73.23 kB / 473.9 MB, free: 27.19 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1104, allocations: 60.76 MB / 0.5222 GB, free: 4.711 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_2): time 0.005/0.1154, allocations: 3.648 MB / 0.5257 GB, free: 1.051 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001672/0.117, allocations: 0.6702 MB / 0.5264 GB, free: 388 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003477/0.1174, allocations: 19.94 kB / 0.5264 GB, free: 368 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004141/0.1178, allocations: 178.3 kB / 0.5266 GB, free: 188 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002864/0.1181, allocations: 134.8 kB / 0.5267 GB, free: 52 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007264/0.1188, allocations: 351.5 kB / 0.527 GB, free: 15.71 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008179/0.1196, allocations: 0.8328 MB / 0.5279 GB, free: 14.87 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006981/0.1203, allocations: 0.4999 MB / 0.5283 GB, free: 14.34 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002925/0.1206, allocations: 338.5 kB / 0.5287 GB, free: 14 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003552/0.121, allocations: 429.5 kB / 0.5291 GB, free: 13.58 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001211/0.1211, allocations: 84 kB / 0.5292 GB, free: 13.5 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001838/0.1213, allocations: 123.9 kB / 0.5293 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003573/0.1216, allocations: 438.4 kB / 0.5297 GB, free: 12.95 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004338/0.1221, allocations: 0.6125 MB / 0.5303 GB, free: 12.33 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001283/0.1234, allocations: 1.247 MB / 0.5315 GB, free: 11.08 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.1234, allocations: 7.984 kB / 0.5315 GB, free: 11.07 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1234, allocations: 0 / 0.5315 GB, free: 11.07 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.256e-05/0.1234, allocations: 0 / 0.5315 GB, free: 11.07 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.002146/0.1255, allocations: 1.833 MB / 0.5333 GB, free: 9.172 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.031e-05/0.1256, allocations: 8.031 kB / 0.5333 GB, free: 9.164 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.644e-05/0.1256, allocations: 45.09 kB / 0.5334 GB, free: 9.117 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002102/0.1258, allocations: 174.9 kB / 0.5335 GB, free: 8.934 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002248/0.1261, allocations: 207.6 kB / 0.5337 GB, free: 8.73 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000941/0.127, allocations: 0.7798 MB / 0.5345 GB, free: 7.902 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.238e-05/0.1271, allocations: 78.53 kB / 0.5346 GB, free: 7.824 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001296/0.1272, allocations: 116.2 kB / 0.5347 GB, free: 7.711 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001604/0.1288, allocations: 1.194 MB / 0.5358 GB, free: 6.449 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.456e-05/0.1288, allocations: 0 / 0.5358 GB, free: 6.449 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.249e-05/0.1289, allocations: 48 kB / 0.5359 GB, free: 6.402 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.254e-05/0.1289, allocations: 24 kB / 0.5359 GB, free: 6.379 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001452/0.1304, allocations: 1.121 MB / 0.537 GB, free: 5.25 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004304/0.1347, allocations: 3.691 MB / 0.5406 GB, free: 1.449 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001247/0.1359, allocations: 0.9984 MB / 0.5416 GB, free: 444 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000578/0.1365, allocations: 498.9 kB / 0.5421 GB, free: 15.94 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.094e-05/0.1366, allocations: 28.55 kB / 0.5421 GB, free: 15.92 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.086e-05/0.1366, allocations: 39.22 kB / 0.5421 GB, free: 15.87 MB / 414.1 MB Notification: Performance of pre-optimization done (n=79): time 2.736e-06/0.1366, allocations: 0 / 0.5421 GB, free: 15.87 MB / 414.1 MB Notification: Performance of matching and sorting (n=105): time 0.008929/0.1455, allocations: 5.569 MB / 0.5476 GB, free: 10.23 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.388e-05/0.1456, allocations: 72.34 kB / 0.5476 GB, free: 10.15 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001455/0.1471, allocations: 1.281 MB / 0.5489 GB, free: 8.859 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.407e-05/0.1471, allocations: 45.7 kB / 0.5489 GB, free: 8.809 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005954/0.1477, allocations: 0.7771 MB / 0.5497 GB, free: 8.023 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002769/0.148, allocations: 372.8 kB / 0.55 GB, free: 7.656 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002369/0.1482, allocations: 170.6 kB / 0.5502 GB, free: 7.484 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.1484, allocations: 338 kB / 0.5505 GB, free: 7.148 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007656/0.1491, allocations: 0.6149 MB / 0.5511 GB, free: 6.531 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008462/0.15, allocations: 0.7422 MB / 0.5518 GB, free: 5.758 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001899/0.1519, allocations: 1.442 MB / 0.5533 GB, free: 4.285 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.1519, allocations: 0 / 0.5533 GB, free: 4.285 MB / 414.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002162/0.154, allocations: 1.668 MB / 0.5549 GB, free: 2.605 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.103e-05/0.1541, allocations: 4 kB / 0.5549 GB, free: 2.602 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.303e-05/0.1541, allocations: 7.984 kB / 0.5549 GB, free: 2.594 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.789e-05/0.1541, allocations: 8.312 kB / 0.5549 GB, free: 2.586 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006998/0.1548, allocations: 207.7 kB / 0.5551 GB, free: 2.383 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.653e-05/0.1548, allocations: 11.92 kB / 0.5551 GB, free: 2.371 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002972/0.1551, allocations: 20 kB / 0.5551 GB, free: 2.352 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.524e-05/0.1552, allocations: 55.98 kB / 0.5552 GB, free: 2.297 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 (120): * Single equations (assignments): 120 * 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.0005444/0.1557, allocations: 393.4 kB / 0.5556 GB, free: 1.902 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001792/0.1559, allocations: 155 kB / 0.5557 GB, free: 1.75 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002514/0.1584, allocations: 1.795 MB / 0.5575 GB, free: 15.95 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.768e-06/0.1585, allocations: 8 kB / 0.5575 GB, free: 15.94 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.828e-06/0.1585, allocations: 3.938 kB / 0.5575 GB, free: 15.93 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.042e-05/0.1585, allocations: 3.984 kB / 0.5575 GB, free: 15.93 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004112/0.1626, allocations: 3.283 MB / 0.5607 GB, free: 12.57 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.351e-05/0.1626, allocations: 0 / 0.5607 GB, free: 12.57 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007152/0.1633, allocations: 191.7 kB / 0.5609 GB, free: 12.38 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.508e-06/0.1633, allocations: 4 kB / 0.5609 GB, free: 12.38 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.022e-05/0.1634, allocations: 31.98 kB / 0.5609 GB, free: 12.35 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.973e-06/0.1634, allocations: 4 kB / 0.5609 GB, free: 12.34 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.1634, allocations: 7.938 kB / 0.5609 GB, free: 12.34 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003219/0.1666, allocations: 2.716 MB / 0.5636 GB, free: 9.594 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002003/0.1668, allocations: 204.1 kB / 0.5638 GB, free: 9.375 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.433e-05/0.1669, allocations: 20 kB / 0.5638 GB, free: 9.355 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002912/0.1672, allocations: 27.94 kB / 0.5638 GB, free: 9.328 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001371/0.1673, allocations: 76.78 kB / 0.5639 GB, free: 9.25 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.716e-05/0.1674, allocations: 51.98 kB / 0.5639 GB, free: 9.199 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001102/0.1685, allocations: 0.8967 MB / 0.5648 GB, free: 8.305 MB / 430.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1685, allocations: 0 / 0.5648 GB, free: 8.305 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005973/0.1691, allocations: 191.9 kB / 0.565 GB, free: 8.117 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 (106): * Single equations (assignments): 106 * 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.003637/0.1727, allocations: 3.291 MB / 0.5682 GB, free: 4.789 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001847/0.1746, allocations: 1.41 MB / 0.5696 GB, free: 3.375 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.1746, allocations: 0 / 0.5696 GB, free: 3.375 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008494/0.1754, allocations: 0.7279 MB / 0.5703 GB, free: 2.652 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006469/0.1761, allocations: 104.1 kB / 0.5704 GB, free: 2.555 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01713/0.1932, allocations: 13.65 MB / 0.5837 GB, free: 4.613 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009966/0.1942, allocations: 1.347 MB / 0.585 GB, free: 3.234 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004372/0.1947, allocations: 149.3 kB / 0.5852 GB, free: 3.09 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007965/0.1955, allocations: 0.6632 MB / 0.5858 GB, free: 2.426 MB / 446.1 MB Notification: Performance of SimCode: time 7.61e-07/0.1955, allocations: 0 / 0.5858 GB, free: 2.426 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2723/0.4677, allocations: 22.07 MB / 0.6074 GB, free: 57.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.24/10.71, allocations: 10.19 kB / 0.6074 GB, free: 57.09 MB / 446.1 MB " [Timeout remaining time 649] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2_fmu --startTime=1900 --stopTime=2100 --stepSize=0.08 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.594953054969665] Failed to read output from testmodel.py, exit status != 0: 10.839895669021644 10.848685339 10.723327328 Calling exit ...