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.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.001388/0.001388, allocations: 106 kB / 16.45 MB, free: 6.445 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.001541/0.001541, allocations: 187.7 kB / 19.4 MB, free: 3.66 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.499/1.499, allocations: 225.6 MB / 247.8 MB, free: 3.727 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.2334/0.2334, allocations: 29.23 MB / 331.9 MB, free: 0.9023 MB / 254.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_1,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_1,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001889/0.001889, allocations: 59.38 kB / 464.7 MB, free: 35.51 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0989/0.1008, allocations: 59.57 MB / 0.512 GB, free: 14.55 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_1): time 0.005371/0.1062, allocations: 3.65 MB / 0.5156 GB, free: 10.89 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001746/0.1079, allocations: 0.674 MB / 0.5162 GB, free: 10.22 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004561/0.1084, allocations: 19.94 kB / 0.5162 GB, free: 10.2 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004375/0.1088, allocations: 154.4 kB / 0.5164 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003825/0.1092, allocations: 130.8 kB / 0.5165 GB, free: 9.918 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007978/0.11, allocations: 351.6 kB / 0.5168 GB, free: 9.574 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009516/0.1109, allocations: 0.8521 MB / 0.5177 GB, free: 8.719 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007531/0.1117, allocations: 0.5039 MB / 0.5182 GB, free: 8.176 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003229/0.112, allocations: 330.4 kB / 0.5185 GB, free: 7.852 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004231/0.1124, allocations: 441.5 kB / 0.5189 GB, free: 7.418 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001231/0.1125, allocations: 84 kB / 0.519 GB, free: 7.336 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002292/0.1128, allocations: 116 kB / 0.5191 GB, free: 7.223 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003973/0.1132, allocations: 438.4 kB / 0.5195 GB, free: 6.793 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000453/0.1136, allocations: 0.597 MB / 0.5201 GB, free: 6.191 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001382/0.115, allocations: 1.235 MB / 0.5213 GB, free: 4.945 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.115, allocations: 4 kB / 0.5213 GB, free: 4.941 MB / 382.1 MB Notification: Performance of FrontEnd: time 8.61e-07/0.115, allocations: 0 / 0.5213 GB, free: 4.941 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.772e-05/0.115, allocations: 0 / 0.5213 GB, free: 4.941 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: 259 * Number of variables: 259 Notification: Performance of Generate backend data structure: time 0.002345/0.1174, allocations: 1.779 MB / 0.523 GB, free: 3.098 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.1174, allocations: 8.031 kB / 0.5231 GB, free: 3.09 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002223/0.1176, allocations: 178.6 kB / 0.5232 GB, free: 2.906 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002525/0.1179, allocations: 203.6 kB / 0.5234 GB, free: 2.707 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001043/0.1189, allocations: 0.7554 MB / 0.5242 GB, free: 1.902 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.271e-05/0.119, allocations: 82.47 kB / 0.5242 GB, free: 1.82 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001305/0.1191, allocations: 104.3 kB / 0.5243 GB, free: 1.719 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001641/0.1208, allocations: 1.151 MB / 0.5255 GB, free: 0.5 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.773e-05/0.1208, allocations: 7.875 kB / 0.5255 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.164e-05/0.1209, allocations: 48 kB / 0.5255 GB, free: 456 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.495e-05/0.1209, allocations: 24 kB / 0.5255 GB, free: 432 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001439/0.1223, allocations: 1.054 MB / 0.5266 GB, free: 15.36 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004662/0.127, allocations: 3.607 MB / 0.5301 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001588/0.1286, allocations: 1.248 MB / 0.5313 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005231/0.1291, allocations: 446.4 kB / 0.5317 GB, free: 9.941 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.985e-05/0.1292, allocations: 28.48 kB / 0.5318 GB, free: 9.914 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.333e-05/0.1292, allocations: 39.12 kB / 0.5318 GB, free: 9.867 MB / 398.1 MB Notification: Performance of pre-optimization done (n=66): time 2.625e-06/0.1292, allocations: 4 kB / 0.5318 GB, free: 9.863 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.001803/0.131, allocations: 1.451 MB / 0.5332 GB, free: 8.406 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.552e-05/0.1311, allocations: 59.97 kB / 0.5333 GB, free: 8.336 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001406/0.1325, allocations: 1.23 MB / 0.5345 GB, free: 7.094 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.882e-05/0.1325, allocations: 33.7 kB / 0.5345 GB, free: 7.055 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006001/0.1331, allocations: 0.7761 MB / 0.5353 GB, free: 6.27 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001992/0.1333, allocations: 238 kB / 0.5355 GB, free: 6.035 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001694/0.1335, allocations: 122.2 kB / 0.5356 GB, free: 5.91 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.1336, allocations: 326 kB / 0.5359 GB, free: 5.586 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005127/0.1342, allocations: 413.1 kB / 0.5363 GB, free: 5.184 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005633/0.1347, allocations: 0.5043 MB / 0.5368 GB, free: 4.645 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001158/0.1359, allocations: 0.9548 MB / 0.5377 GB, free: 3.656 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.135e-06/0.1359, allocations: 0 / 0.5377 GB, free: 3.656 MB / 398.1 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.00144/0.1373, allocations: 1.133 MB / 0.5388 GB, free: 2.516 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.441e-05/0.1373, allocations: 8 kB / 0.5388 GB, free: 2.508 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.176e-06/0.1374, allocations: 0 / 0.5388 GB, free: 2.508 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.663e-05/0.1374, allocations: 8 kB / 0.5389 GB, free: 2.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004518/0.1378, allocations: 135.8 kB / 0.539 GB, free: 2.367 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.408e-05/0.1379, allocations: 7.938 kB / 0.539 GB, free: 2.359 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002306/0.1381, allocations: 51.56 kB / 0.539 GB, free: 2.309 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.049e-05/0.1381, allocations: 24 kB / 0.5391 GB, free: 2.285 MB / 398.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 (81): * Single equations (assignments): 81 * 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.0004995/0.1386, allocations: 365.7 kB / 0.5394 GB, free: 1.918 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001583/0.1388, allocations: 143 kB / 0.5395 GB, free: 1.777 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001505/0.1403, allocations: 1.146 MB / 0.5407 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.085e-06/0.1403, allocations: 4 kB / 0.5407 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.287e-05/0.1403, allocations: 7.938 kB / 0.5407 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.265e-06/0.1403, allocations: 7.922 kB / 0.5407 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00274/0.1431, allocations: 2.277 MB / 0.5429 GB, free: 14.26 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-06/0.1431, allocations: 0 / 0.5429 GB, free: 14.26 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004357/0.1435, allocations: 103.9 kB / 0.543 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.021e-06/0.1435, allocations: 8 kB / 0.543 GB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.596e-05/0.1435, allocations: 19.92 kB / 0.543 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.52e-06/0.1435, allocations: 4 kB / 0.543 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.1435, allocations: 0 / 0.543 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002062/0.1456, allocations: 1.786 MB / 0.5448 GB, free: 12.32 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002446/0.1458, allocations: 216 kB / 0.545 GB, free: 12.09 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.598e-05/0.1459, allocations: 15.94 kB / 0.545 GB, free: 12.07 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001921/0.1461, allocations: 8 kB / 0.545 GB, free: 12.07 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.77e-05/0.1462, allocations: 44.5 kB / 0.5451 GB, free: 12.02 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.98e-05/0.1462, allocations: 16 kB / 0.5451 GB, free: 12.01 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001176/0.1474, allocations: 0.8519 MB / 0.5459 GB, free: 11.16 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1474, allocations: 0 / 0.5459 GB, free: 11.16 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006124/0.148, allocations: 207.3 kB / 0.5461 GB, free: 10.95 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (66): * Single equations (assignments): 66 * 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.002522/0.1505, allocations: 2.37 MB / 0.5484 GB, free: 8.559 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001208/0.1517, allocations: 0.9138 MB / 0.5493 GB, free: 7.645 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.1517, allocations: 3.938 kB / 0.5493 GB, free: 7.641 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005622/0.1523, allocations: 479 kB / 0.5498 GB, free: 7.172 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006254/0.1529, allocations: 96.94 kB / 0.5499 GB, free: 7.082 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01479/0.1677, allocations: 11.1 MB / 0.5607 GB, free: 11.8 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009946/0.1687, allocations: 1.287 MB / 0.562 GB, free: 10.49 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002434/0.169, allocations: 76.36 kB / 0.562 GB, free: 10.41 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006066/0.1696, allocations: 0.5657 MB / 0.5626 GB, free: 9.844 MB / 430.1 MB Notification: Performance of SimCode: time 1.583e-06/0.1696, allocations: 0 / 0.5626 GB, free: 9.844 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04957/0.2191, allocations: 18.18 MB / 0.5803 GB, free: 7.727 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.51/10.73, allocations: 6.672 kB / 0.5803 GB, free: 7.723 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 os._exit(0), Time elapsed: 14.133402010891587] Failed to read output from testmodel.py, exit status != 0: 10.874102960340679 10.9019116 10.781773166 Calling exit ...