Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.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.001465/0.001465, allocations: 116.8 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.00156/0.00156, allocations: 209.5 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.373/1.373, allocations: 230.6 MB / 253.5 MB, free: 15.11 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.1753/0.1753, allocations: 29.22 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_3,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_3,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3",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.001845/0.001845, allocations: 65.17 kB / 473.9 MB, free: 27.23 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1023, allocations: 60.75 MB / 0.5222 GB, free: 4.73 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_3): time 0.004769/0.1071, allocations: 3.659 MB / 0.5257 GB, free: 1.059 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001369/0.1084, allocations: 0.6702 MB / 0.5264 GB, free: 396 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003034/0.1087, allocations: 15.94 kB / 0.5264 GB, free: 380 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003857/0.1091, allocations: 182.3 kB / 0.5266 GB, free: 196 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002757/0.1094, allocations: 130.8 kB / 0.5267 GB, free: 64 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006724/0.1101, allocations: 355.6 kB / 0.527 GB, free: 15.71 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000787/0.1108, allocations: 0.8328 MB / 0.5279 GB, free: 14.88 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006687/0.1115, allocations: 0.496 MB / 0.5283 GB, free: 14.35 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002821/0.1118, allocations: 354.4 kB / 0.5287 GB, free: 14 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003463/0.1121, allocations: 425.5 kB / 0.5291 GB, free: 13.58 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001151/0.1123, allocations: 84 kB / 0.5292 GB, free: 13.5 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001827/0.1124, allocations: 123.9 kB / 0.5293 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003539/0.1128, allocations: 434.5 kB / 0.5297 GB, free: 12.95 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004266/0.1132, allocations: 0.6125 MB / 0.5303 GB, free: 12.34 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001198/0.1144, allocations: 1.251 MB / 0.5315 GB, free: 11.08 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.1144, allocations: 3.984 kB / 0.5315 GB, free: 11.07 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1144, allocations: 0 / 0.5315 GB, free: 11.07 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.251e-05/0.1144, allocations: 4 kB / 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: 263 * Number of variables: 263 Notification: Performance of Generate backend data structure: time 0.002116/0.1166, allocations: 1.841 MB / 0.5333 GB, free: 9.164 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.1166, allocations: 12.03 kB / 0.5333 GB, free: 9.152 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.708e-05/0.1167, allocations: 33.2 kB / 0.5334 GB, free: 9.117 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002039/0.1169, allocations: 171 kB / 0.5335 GB, free: 8.938 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002213/0.1171, allocations: 215.5 kB / 0.5337 GB, free: 8.727 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008614/0.1179, allocations: 0.7757 MB / 0.5345 GB, free: 7.902 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.383e-05/0.118, allocations: 82.55 kB / 0.5346 GB, free: 7.82 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001207/0.1181, allocations: 112.3 kB / 0.5347 GB, free: 7.711 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001579/0.1197, allocations: 1.199 MB / 0.5359 GB, free: 6.445 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.329e-05/0.1197, allocations: 11.94 kB / 0.5359 GB, free: 6.434 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.607e-05/0.1198, allocations: 44 kB / 0.5359 GB, free: 6.391 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.396e-05/0.1198, allocations: 28 kB / 0.5359 GB, free: 6.363 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001479/0.1213, allocations: 1.125 MB / 0.537 GB, free: 5.23 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004154/0.1255, allocations: 3.698 MB / 0.5406 GB, free: 1.422 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001234/0.1267, allocations: 0.9985 MB / 0.5416 GB, free: 416 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005981/0.1273, allocations: 0.4911 MB / 0.5421 GB, free: 15.91 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.384e-05/0.1274, allocations: 28.55 kB / 0.5421 GB, free: 15.89 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.879e-05/0.1274, allocations: 51.14 kB / 0.5422 GB, free: 15.83 MB / 414.1 MB Notification: Performance of pre-optimization done (n=80): time 2.715e-06/0.1274, allocations: 0 / 0.5422 GB, free: 15.83 MB / 414.1 MB Notification: Performance of matching and sorting (n=106): time 0.009479/0.1369, allocations: 5.758 MB / 0.5478 GB, free: 9.98 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.099e-05/0.1369, allocations: 68.34 kB / 0.5479 GB, free: 9.902 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001403/0.1383, allocations: 1.288 MB / 0.5491 GB, free: 8.605 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.655e-05/0.1384, allocations: 45.7 kB / 0.5492 GB, free: 8.555 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005786/0.139, allocations: 0.7732 MB / 0.5499 GB, free: 7.773 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002765/0.1393, allocations: 376.8 kB / 0.5503 GB, free: 7.402 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002316/0.1395, allocations: 166.6 kB / 0.5504 GB, free: 7.234 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.1396, allocations: 345.9 kB / 0.5508 GB, free: 6.891 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007858/0.1404, allocations: 0.6188 MB / 0.5514 GB, free: 6.27 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008622/0.1413, allocations: 0.7422 MB / 0.5521 GB, free: 5.496 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001896/0.1432, allocations: 1.45 MB / 0.5535 GB, free: 4.016 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.1432, allocations: 0 / 0.5535 GB, free: 4.016 MB / 414.1 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002167/0.1454, allocations: 1.664 MB / 0.5551 GB, free: 2.34 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.172e-05/0.1454, allocations: 8 kB / 0.5551 GB, free: 2.332 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.1454, allocations: 320 / 0.5551 GB, free: 2.332 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.198e-05/0.1454, allocations: 15.94 kB / 0.5552 GB, free: 2.316 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007126/0.1461, allocations: 211.7 kB / 0.5554 GB, free: 2.109 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.245e-05/0.1461, allocations: 4 kB / 0.5554 GB, free: 2.105 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000282/0.1464, allocations: 24 kB / 0.5554 GB, free: 2.082 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.533e-05/0.1465, allocations: 59.97 kB / 0.5554 GB, free: 2.023 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 (121): * Single equations (assignments): 121 * 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.0005054/0.147, allocations: 393.4 kB / 0.5558 GB, free: 1.629 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001747/0.1472, allocations: 158.9 kB / 0.556 GB, free: 1.473 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002484/0.1497, allocations: 1.803 MB / 0.5577 GB, free: 15.66 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.069e-05/0.1497, allocations: 11.94 kB / 0.5577 GB, free: 15.64 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.1497, allocations: 0 / 0.5577 GB, free: 15.64 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.392e-05/0.1497, allocations: 7.984 kB / 0.5578 GB, free: 15.64 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00404/0.1537, allocations: 3.279 MB / 0.561 GB, free: 12.29 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.1537, allocations: 0 / 0.561 GB, free: 12.29 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007214/0.1545, allocations: 195.7 kB / 0.5611 GB, free: 12.09 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.394e-06/0.1545, allocations: 4 kB / 0.5611 GB, free: 12.09 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.453e-05/0.1545, allocations: 27.98 kB / 0.5612 GB, free: 12.06 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.616e-06/0.1545, allocations: 12.12 kB / 0.5612 GB, free: 12.05 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.1545, allocations: 4 kB / 0.5612 GB, free: 12.05 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003205/0.1577, allocations: 2.731 MB / 0.5639 GB, free: 9.289 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001801/0.1579, allocations: 208 kB / 0.5641 GB, free: 9.066 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.392e-05/0.158, allocations: 28 kB / 0.5641 GB, free: 9.039 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002919/0.1583, allocations: 16 kB / 0.5641 GB, free: 9.023 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001291/0.1584, allocations: 76.78 kB / 0.5642 GB, free: 8.945 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.245e-05/0.1585, allocations: 51.98 kB / 0.5642 GB, free: 8.895 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00102/0.1595, allocations: 0.8887 MB / 0.5651 GB, free: 8.008 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1595, allocations: 0 / 0.5651 GB, free: 8.008 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005738/0.1601, allocations: 195.9 kB / 0.5653 GB, free: 7.816 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 (107): * Single equations (assignments): 107 * 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.003622/0.1637, allocations: 3.318 MB / 0.5685 GB, free: 4.461 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001821/0.1655, allocations: 1.406 MB / 0.5699 GB, free: 3.051 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.1655, allocations: 4 kB / 0.5699 GB, free: 3.047 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008707/0.1664, allocations: 0.7326 MB / 0.5706 GB, free: 2.32 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006172/0.167, allocations: 106.5 kB / 0.5707 GB, free: 2.219 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01658/0.1836, allocations: 13.65 MB / 0.584 GB, free: 4.281 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009844/0.1846, allocations: 1.347 MB / 0.5854 GB, free: 2.902 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004319/0.185, allocations: 153.5 kB / 0.5855 GB, free: 2.754 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007891/0.1858, allocations: 0.6594 MB / 0.5861 GB, free: 2.094 MB / 446.1 MB Notification: Performance of SimCode: time 9.11e-07/0.1858, allocations: 0 / 0.5861 GB, free: 2.094 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2586/0.4444, allocations: 22.07 MB / 0.6077 GB, free: 57.05 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.19/10.63, allocations: 12.75 kB / 0.6077 GB, free: 57.05 MB / 446.1 MB " [Timeout remaining time 649] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3_fmu --startTime=1900 --stopTime=2100 --stepSize=0.08 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.505646598991007] Failed to read output from testmodel.py, exit status != 0: 10.779070328979287 10.788448433 10.672045542 Calling exit ...