Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.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.001245/0.001245, allocations: 115.6 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.001334/0.001334, 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.383/1.383, 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.1766/0.1766, allocations: 29.23 MB / 338.8 MB, free: 11.78 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_5,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_5",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_5,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_5",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.00184/0.00184, allocations: 67.38 kB / 474 MB, free: 27.14 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1055, allocations: 60.75 MB / 0.5222 GB, free: 4.711 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.004493/0.11, allocations: 3.255 MB / 0.5254 GB, free: 1.445 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001194/0.1112, allocations: 0.5377 MB / 0.5259 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002535/0.1115, allocations: 12 kB / 0.5259 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002835/0.1118, allocations: 146.6 kB / 0.526 GB, free: 0.75 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002867/0.1121, allocations: 126.9 kB / 0.5261 GB, free: 0.625 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005737/0.1126, allocations: 283.6 kB / 0.5264 GB, free: 356 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006711/0.1133, allocations: 0.7202 MB / 0.5271 GB, free: 15.62 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005474/0.1139, allocations: 385.4 kB / 0.5275 GB, free: 15.22 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002629/0.1141, allocations: 322.5 kB / 0.5278 GB, free: 14.91 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003271/0.1144, allocations: 397.8 kB / 0.5282 GB, free: 14.52 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001062/0.1145, allocations: 76 kB / 0.5282 GB, free: 14.44 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001726/0.1147, allocations: 104 kB / 0.5283 GB, free: 14.34 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003699/0.1151, allocations: 442.3 kB / 0.5288 GB, free: 13.91 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004049/0.1155, allocations: 0.5698 MB / 0.5293 GB, free: 13.33 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001097/0.1166, allocations: 1.146 MB / 0.5304 GB, free: 12.18 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.1166, allocations: 0 / 0.5304 GB, free: 12.18 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1166, allocations: 0 / 0.5304 GB, free: 12.18 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.128e-05/0.1166, allocations: 0 / 0.5304 GB, free: 12.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: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.002132/0.1187, allocations: 1.775 MB / 0.5322 GB, free: 10.34 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.1188, allocations: 8.031 kB / 0.5322 GB, free: 10.34 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.325e-05/0.1188, allocations: 45.12 kB / 0.5322 GB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002063/0.1191, allocations: 183 kB / 0.5324 GB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002114/0.1193, allocations: 203.6 kB / 0.5326 GB, free: 9.898 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005109/0.1198, allocations: 0.5715 MB / 0.5332 GB, free: 9.277 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.578e-05/0.1199, allocations: 82.44 kB / 0.5332 GB, free: 9.195 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001205/0.12, allocations: 104.3 kB / 0.5333 GB, free: 9.094 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001634/0.1216, allocations: 1.114 MB / 0.5344 GB, free: 7.949 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.873e-05/0.1216, allocations: 7.953 kB / 0.5344 GB, free: 7.941 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.401e-05/0.1217, allocations: 40 kB / 0.5345 GB, free: 7.902 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.319e-05/0.1218, allocations: 58.22 kB / 0.5345 GB, free: 7.844 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001748/0.1235, allocations: 1.239 MB / 0.5357 GB, free: 6.598 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003847/0.1274, allocations: 2.911 MB / 0.5386 GB, free: 3.605 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001367/0.1287, allocations: 1.001 MB / 0.5396 GB, free: 2.594 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006917/0.1294, allocations: 0.4986 MB / 0.54 GB, free: 2.094 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.869e-05/0.1295, allocations: 32.62 kB / 0.5401 GB, free: 2.062 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.122e-05/0.1295, allocations: 43.16 kB / 0.5401 GB, free: 2.012 MB / 398.1 MB Notification: Performance of pre-optimization done (n=74): time 2.635e-06/0.1295, allocations: 0 / 0.5401 GB, free: 2.012 MB / 398.1 MB Notification: Performance of matching and sorting (n=96): time 0.009301/0.1388, allocations: 5.549 MB / 0.5455 GB, free: 12.38 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.676e-05/0.1389, allocations: 64.41 kB / 0.5456 GB, free: 12.3 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001334/0.1402, allocations: 1.258 MB / 0.5468 GB, free: 11.04 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.067e-05/0.1403, allocations: 41.7 kB / 0.5469 GB, free: 10.99 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006017/0.1409, allocations: 0.7994 MB / 0.5476 GB, free: 10.18 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002624/0.1411, allocations: 345 kB / 0.548 GB, free: 9.84 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002343/0.1414, allocations: 174.6 kB / 0.5481 GB, free: 9.664 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.1415, allocations: 341.9 kB / 0.5485 GB, free: 9.324 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008942/0.1424, allocations: 0.6461 MB / 0.5491 GB, free: 8.676 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001053/0.1435, allocations: 0.8399 MB / 0.5499 GB, free: 7.762 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008074/0.1515, allocations: 3.715 MB / 0.5535 GB, free: 3.973 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.1515, allocations: 4 kB / 0.5535 GB, free: 3.969 MB / 414.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002468/0.154, allocations: 1.773 MB / 0.5553 GB, free: 2.184 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.333e-05/0.154, allocations: 11.94 kB / 0.5553 GB, free: 2.172 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.4e-05/0.154, allocations: 7.984 kB / 0.5553 GB, free: 2.164 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.153e-05/0.1541, allocations: 12.75 kB / 0.5553 GB, free: 2.152 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007677/0.1548, allocations: 239.6 kB / 0.5555 GB, free: 1.918 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.825e-05/0.1549, allocations: 15.94 kB / 0.5556 GB, free: 1.902 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003456/0.1552, allocations: 39.97 kB / 0.5556 GB, free: 1.863 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.844e-05/0.1553, allocations: 64 kB / 0.5557 GB, free: 1.801 MB / 414.1 MB Warning: Assuming fixed start value for the following 6 variables: years:VARIABLE(start = 1900.0 fixed = true ) \"Time in calendar years\" type: Real $outputAlias_Pop:VARIABLE(start = Population.x0 fixed = true ) \"World population\" type: Real $outputAlias_Pol:VARIABLE(start = Pollution.x0 fixed = true ) \"Pollution\" type: Real $outputAlias_Cap_inv:VARIABLE(start = Capital_Investment.x0 unit = \"dollar\" fixed = true ) \"Capital investment\" type: Real $outputAlias_Nat_res:VARIABLE(start = Natural_Resources.x0 unit = \"ton\" fixed = true ) \"Natural unrecoverable resources\" type: Real CIAF.level:VARIABLE(start = CIAF.x0 fixed = true ) \"Reversible state variable\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (126): * Single equations (assignments): 126 * 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.0006014/0.1559, allocations: 415.3 kB / 0.556 GB, free: 1.387 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001721/0.1561, allocations: 158.8 kB / 0.5562 GB, free: 1.23 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002689/0.1587, allocations: 1.806 MB / 0.558 GB, free: 15.41 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.538e-06/0.1588, allocations: 8 kB / 0.558 GB, free: 15.4 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.734e-06/0.1588, allocations: 4 kB / 0.558 GB, free: 15.39 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.527e-06/0.1588, allocations: 3.984 kB / 0.558 GB, free: 15.39 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004033/0.1628, allocations: 3.154 MB / 0.5611 GB, free: 12.18 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.1628, allocations: 0 / 0.5611 GB, free: 12.18 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007212/0.1635, allocations: 183.8 kB / 0.5612 GB, free: 12 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.053e-06/0.1635, allocations: 4 kB / 0.5612 GB, free: 11.99 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.6e-05/0.1636, allocations: 31.98 kB / 0.5613 GB, free: 11.96 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.24e-06/0.1636, allocations: 4 kB / 0.5613 GB, free: 11.96 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.1636, allocations: 7.938 kB / 0.5613 GB, free: 11.95 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003406/0.167, allocations: 2.7 MB / 0.5639 GB, free: 9.234 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001726/0.1672, allocations: 196.1 kB / 0.5641 GB, free: 9.023 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.608e-05/0.1673, allocations: 16.06 kB / 0.5641 GB, free: 9.008 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003162/0.1676, allocations: 31.97 kB / 0.5641 GB, free: 8.977 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001447/0.1677, allocations: 68.91 kB / 0.5642 GB, free: 8.906 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.038e-05/0.1678, allocations: 48 kB / 0.5643 GB, free: 8.859 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0009737/0.1688, allocations: 0.8677 MB / 0.5651 GB, free: 7.992 MB / 430.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1688, allocations: 0 / 0.5651 GB, free: 7.992 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005665/0.1693, allocations: 195.9 kB / 0.5653 GB, free: 7.801 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (years,$outputAlias_Pop,$outputAlias_Pol,$outputAlias_Cap_inv,$outputAlias_Nat_res,CIAF.level) * 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 (97): * Single equations (assignments): 97 * 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.003813/0.1732, allocations: 3.287 MB / 0.5685 GB, free: 4.488 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002074/0.1752, allocations: 1.47 MB / 0.5699 GB, free: 3.02 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.1752, allocations: 4 kB / 0.5699 GB, free: 3.016 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009692/0.1762, allocations: 0.7513 MB / 0.5707 GB, free: 2.266 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004731/0.1767, allocations: 73.7 kB / 0.5707 GB, free: 2.191 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01745/0.1941, allocations: 13.57 MB / 0.584 GB, free: 4.363 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001022/0.1951, allocations: 1.335 MB / 0.5853 GB, free: 2.996 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005333/0.1957, allocations: 197.2 kB / 0.5855 GB, free: 2.805 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007981/0.1965, allocations: 0.6477 MB / 0.5861 GB, free: 2.156 MB / 446.1 MB Notification: Performance of SimCode: time 7.51e-07/0.1965, allocations: 0 / 0.5861 GB, free: 2.156 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2558/0.4523, allocations: 21.31 MB / 0.6069 GB, free: 57.45 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.11/10.56, allocations: 9.859 kB / 0.6069 GB, free: 57.45 MB / 446.1 MB " [Timeout remaining time 649] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_5_fmu --startTime=0 --stopTime=233 --stepSize=0.0932 --timeout=50 --tolerance=1e-10 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_5.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.604183980962262] Failed to read output from testmodel.py, exit status != 0: 10.697090118017513 10.713036683 10.593450153 Calling exit ...