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.00121/0.00121, allocations: 117.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.001263/0.001263, 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.385/1.385, allocations: 230.6 MB / 253.5 MB, free: 15.14 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.1756/0.1756, allocations: 29.23 MB / 338.8 MB, free: 11.81 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_6,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6",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.001848/0.001848, allocations: 70.92 kB / 474 MB, free: 27.14 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.104, allocations: 60.76 MB / 0.5222 GB, free: 4.758 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.004853/0.1088, allocations: 3.668 MB / 0.5258 GB, free: 1.074 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001618/0.1104, allocations: 0.7714 MB / 0.5265 GB, free: 308 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003314/0.1108, allocations: 23.88 kB / 0.5265 GB, free: 284 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003825/0.1111, allocations: 170.3 kB / 0.5267 GB, free: 112 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002992/0.1114, allocations: 142.7 kB / 0.5268 GB, free: 15.97 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007249/0.1122, allocations: 371.5 kB / 0.5272 GB, free: 15.61 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000817/0.113, allocations: 0.8523 MB / 0.528 GB, free: 14.75 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006844/0.1137, allocations: 0.5 MB / 0.5285 GB, free: 14.21 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002963/0.114, allocations: 354.4 kB / 0.5288 GB, free: 13.87 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003765/0.1143, allocations: 453.4 kB / 0.5293 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000117/0.1145, allocations: 88 kB / 0.5294 GB, free: 13.34 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001776/0.1146, allocations: 112 kB / 0.5295 GB, free: 13.23 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003556/0.115, allocations: 442.3 kB / 0.5299 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004299/0.1154, allocations: 0.6203 MB / 0.5305 GB, free: 12.17 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001225/0.1167, allocations: 1.259 MB / 0.5317 GB, free: 10.9 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.1167, allocations: 3.938 kB / 0.5317 GB, free: 10.9 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1167, allocations: 0 / 0.5317 GB, free: 10.9 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.171e-05/0.1167, allocations: 3.938 kB / 0.5317 GB, free: 10.89 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: 265 * Number of variables: 265 Notification: Performance of Generate backend data structure: time 0.002216/0.1189, allocations: 1.868 MB / 0.5336 GB, free: 8.961 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.1189, allocations: 12.03 kB / 0.5336 GB, free: 8.949 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.734e-05/0.119, allocations: 41.23 kB / 0.5336 GB, free: 8.906 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001999/0.1192, allocations: 171.1 kB / 0.5338 GB, free: 8.727 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002269/0.1194, allocations: 215.5 kB / 0.534 GB, free: 8.516 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009186/0.1203, allocations: 0.7837 MB / 0.5347 GB, free: 7.684 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.487e-05/0.1204, allocations: 82.56 kB / 0.5348 GB, free: 7.602 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001272/0.1205, allocations: 112.4 kB / 0.5349 GB, free: 7.492 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001622/0.1222, allocations: 1.21 MB / 0.5361 GB, free: 6.215 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.266e-05/0.1222, allocations: 7.938 kB / 0.5361 GB, free: 6.207 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.552e-05/0.1222, allocations: 40 kB / 0.5362 GB, free: 6.168 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.713e-05/0.1223, allocations: 28 kB / 0.5362 GB, free: 6.141 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001466/0.1237, allocations: 1.129 MB / 0.5373 GB, free: 5.004 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004221/0.128, allocations: 3.719 MB / 0.5409 GB, free: 1.176 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001253/0.1292, allocations: 1.019 MB / 0.5419 GB, free: 156 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006027/0.1298, allocations: 0.4957 MB / 0.5424 GB, free: 15.66 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.363e-05/0.1299, allocations: 37.2 kB / 0.5424 GB, free: 15.62 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007262/0.1306, allocations: 0.5714 MB / 0.543 GB, free: 15.03 MB / 414.1 MB Notification: Performance of pre-optimization done (n=84): time 2.915e-06/0.1306, allocations: 0 / 0.543 GB, free: 15.03 MB / 414.1 MB Notification: Performance of matching and sorting (n=110): time 0.009403/0.14, allocations: 5.826 MB / 0.5487 GB, free: 9.129 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.777e-05/0.1401, allocations: 64.34 kB / 0.5487 GB, free: 9.055 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001427/0.1415, allocations: 1.301 MB / 0.55 GB, free: 7.746 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.404e-05/0.1416, allocations: 41.7 kB / 0.5501 GB, free: 7.699 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006096/0.1422, allocations: 0.7772 MB / 0.5508 GB, free: 6.914 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002897/0.1425, allocations: 384.7 kB / 0.5512 GB, free: 6.535 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002467/0.1427, allocations: 182.6 kB / 0.5514 GB, free: 6.348 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.1428, allocations: 345.9 kB / 0.5517 GB, free: 6.004 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007672/0.1436, allocations: 0.6231 MB / 0.5523 GB, free: 5.383 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000867/0.1445, allocations: 0.7653 MB / 0.553 GB, free: 4.574 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001954/0.1464, allocations: 1.491 MB / 0.5545 GB, free: 3.043 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.1464, allocations: 0 / 0.5545 GB, free: 3.043 MB / 414.1 MB Notification: Performance of matching and sorting (n=127) (initialization): time 0.002155/0.1486, allocations: 1.703 MB / 0.5562 GB, free: 1.332 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.1486, allocations: 8 kB / 0.5562 GB, free: 1.324 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.1486, allocations: 0 / 0.5562 GB, free: 1.324 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.41e-05/0.1486, allocations: 8 kB / 0.5562 GB, free: 1.316 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007289/0.1494, allocations: 219.6 kB / 0.5564 GB, free: 1.102 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.401e-05/0.1494, allocations: 8 kB / 0.5564 GB, free: 1.094 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002824/0.1497, allocations: 24.28 kB / 0.5564 GB, free: 1.07 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.977e-05/0.1497, allocations: 63.98 kB / 0.5565 GB, free: 1.008 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 (127): * Single equations (assignments): 127 * 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.0005694/0.1503, allocations: 401.5 kB / 0.5569 GB, free: 0.6055 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001709/0.1505, allocations: 162.9 kB / 0.557 GB, free: 456 kB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002557/0.153, allocations: 1.826 MB / 0.5588 GB, free: 14.61 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.274e-05/0.1531, allocations: 15.94 kB / 0.5588 GB, free: 14.59 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.1531, allocations: 0 / 0.5588 GB, free: 14.59 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.192e-05/0.1531, allocations: 7.969 kB / 0.5588 GB, free: 14.59 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00408/0.1572, allocations: 3.334 MB / 0.5621 GB, free: 11.18 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.1572, allocations: 0 / 0.5621 GB, free: 11.18 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000714/0.1579, allocations: 199.7 kB / 0.5623 GB, free: 10.98 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.504e-06/0.1579, allocations: 4 kB / 0.5623 GB, free: 10.98 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.819e-05/0.1579, allocations: 27.98 kB / 0.5623 GB, free: 10.95 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.681e-06/0.1579, allocations: 4 kB / 0.5623 GB, free: 10.95 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.1579, allocations: 4 kB / 0.5623 GB, free: 10.94 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003214/0.1612, allocations: 2.774 MB / 0.565 GB, free: 8.137 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000321/0.1615, allocations: 280 kB / 0.5653 GB, free: 7.844 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.829e-05/0.1616, allocations: 20 kB / 0.5653 GB, free: 7.824 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002977/0.1619, allocations: 23.98 kB / 0.5653 GB, free: 7.801 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001358/0.162, allocations: 76.84 kB / 0.5654 GB, free: 7.727 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.168e-05/0.1621, allocations: 47.98 kB / 0.5654 GB, free: 7.68 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001021/0.1631, allocations: 0.8969 MB / 0.5663 GB, free: 6.785 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1631, allocations: 3.938 kB / 0.5663 GB, free: 6.781 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005882/0.1637, allocations: 196 kB / 0.5665 GB, free: 6.59 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: 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 (111): * Single equations (assignments): 109 * 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.003631/0.1673, allocations: 3.361 MB / 0.5698 GB, free: 3.188 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001844/0.1692, allocations: 1.43 MB / 0.5712 GB, free: 1.762 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.1692, allocations: 4.188 kB / 0.5712 GB, free: 1.758 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008699/0.17, allocations: 0.7474 MB / 0.5719 GB, free: 1.008 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000622/0.1707, allocations: 115.9 kB / 0.572 GB, free: 0.8984 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01674/0.1874, allocations: 13.81 MB / 0.5855 GB, free: 2.793 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000992/0.1884, allocations: 1.363 MB / 0.5868 GB, free: 1.402 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004408/0.1888, allocations: 149.3 kB / 0.587 GB, free: 1.254 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007912/0.1896, allocations: 0.6671 MB / 0.5876 GB, free: 0.5859 MB / 446.1 MB Notification: Performance of SimCode: time 9.32e-07/0.1896, allocations: 0 / 0.5876 GB, free: 0.5859 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2532/0.4429, allocations: 22.41 MB / 0.6095 GB, free: 56.12 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.33/10.77, allocations: 10.7 kB / 0.6095 GB, free: 56.12 MB / 446.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6_fmu --startTime=1900 --stopTime=2100 --stepSize=0.08 --timeout=50 --tolerance=1e-06 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: 13.672904715000186] Failed to read output from testmodel.py, exit status != 0: 10.906007694022264 10.914515292 10.795937014 Calling exit ...