Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.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.001485/0.001485, allocations: 115.4 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.001553/0.001553, allocations: 210.2 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.365/1.365, 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.1729/0.1729, allocations: 29.23 MB / 338.8 MB, free: 11.8 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_4,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_4,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4",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.001897/0.001897, allocations: 63.7 kB / 474 MB, free: 27.22 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1051, allocations: 60.75 MB / 0.5222 GB, free: 4.742 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.004801/0.11, allocations: 3.666 MB / 0.5258 GB, free: 1.062 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001407/0.1114, allocations: 0.6818 MB / 0.5264 GB, free: 388 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003089/0.1117, allocations: 19.94 kB / 0.5264 GB, free: 368 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003902/0.1121, allocations: 178.3 kB / 0.5266 GB, free: 188 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002856/0.1123, allocations: 138.8 kB / 0.5267 GB, free: 48 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006723/0.113, allocations: 355.6 kB / 0.5271 GB, free: 15.7 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008029/0.1138, allocations: 0.8485 MB / 0.5279 GB, free: 14.85 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006717/0.1145, allocations: 0.5 MB / 0.5284 GB, free: 14.31 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002817/0.1148, allocations: 346.4 kB / 0.5287 GB, free: 13.97 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003468/0.1151, allocations: 429.5 kB / 0.5291 GB, free: 13.55 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001166/0.1152, allocations: 88 kB / 0.5292 GB, free: 13.46 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001799/0.1154, allocations: 116 kB / 0.5293 GB, free: 13.35 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003614/0.1158, allocations: 458.3 kB / 0.5298 GB, free: 12.9 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004392/0.1162, allocations: 0.6319 MB / 0.5304 GB, free: 12.27 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001225/0.1174, allocations: 1.282 MB / 0.5316 GB, free: 10.98 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1174, allocations: 3.938 kB / 0.5316 GB, free: 10.97 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.1174, allocations: 4 kB / 0.5316 GB, free: 10.97 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.708e-05/0.1175, allocations: 0 / 0.5316 GB, free: 10.97 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: 290 * Number of variables: 290 Notification: Performance of Generate backend data structure: time 0.002201/0.1197, allocations: 1.884 MB / 0.5335 GB, free: 9.02 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.1197, allocations: 12.03 kB / 0.5335 GB, free: 9.008 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.511e-05/0.1198, allocations: 37.52 kB / 0.5335 GB, free: 8.969 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002162/0.12, allocations: 191.7 kB / 0.5337 GB, free: 8.77 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002274/0.1202, allocations: 223.4 kB / 0.5339 GB, free: 8.551 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009023/0.1211, allocations: 0.7756 MB / 0.5347 GB, free: 7.727 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.256e-05/0.1212, allocations: 82.58 kB / 0.5348 GB, free: 7.645 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000132/0.1213, allocations: 116.4 kB / 0.5349 GB, free: 7.531 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001751/0.1231, allocations: 1.318 MB / 0.5362 GB, free: 6.145 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.26e-05/0.1231, allocations: 3.953 kB / 0.5362 GB, free: 6.141 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.352e-05/0.1232, allocations: 48 kB / 0.5362 GB, free: 6.094 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.764e-05/0.1232, allocations: 43.98 kB / 0.5363 GB, free: 6.051 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001667/0.1249, allocations: 1.254 MB / 0.5375 GB, free: 4.789 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004419/0.1293, allocations: 3.923 MB / 0.5413 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001325/0.1306, allocations: 1.028 MB / 0.5423 GB, free: 15.7 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006213/0.1313, allocations: 0.4994 MB / 0.5428 GB, free: 15.2 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.076e-05/0.1313, allocations: 32.7 kB / 0.5428 GB, free: 15.17 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.505e-05/0.1314, allocations: 51.2 kB / 0.5429 GB, free: 15.11 MB / 414.1 MB Notification: Performance of pre-optimization done (n=82): time 2.334e-06/0.1314, allocations: 0 / 0.5429 GB, free: 15.11 MB / 414.1 MB Notification: Performance of matching and sorting (n=108): time 0.009874/0.1412, allocations: 6.087 MB / 0.5488 GB, free: 8.93 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.161e-05/0.1413, allocations: 94.05 kB / 0.5489 GB, free: 8.82 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001494/0.1428, allocations: 1.37 MB / 0.5503 GB, free: 7.441 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.301e-05/0.1429, allocations: 41.7 kB / 0.5503 GB, free: 7.395 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006308/0.1435, allocations: 0.8624 MB / 0.5511 GB, free: 6.523 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002815/0.1438, allocations: 384.7 kB / 0.5515 GB, free: 6.145 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002683/0.144, allocations: 206.9 kB / 0.5517 GB, free: 5.938 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.1442, allocations: 345.9 kB / 0.552 GB, free: 5.594 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008513/0.145, allocations: 0.6546 MB / 0.5527 GB, free: 4.938 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001056/0.1461, allocations: 0.9225 MB / 0.5536 GB, free: 3.906 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002166/0.1483, allocations: 1.689 MB / 0.5552 GB, free: 2.105 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.691e-06/0.1483, allocations: 4 kB / 0.5552 GB, free: 2.102 MB / 414.1 MB Notification: Performance of matching and sorting (n=147) (initialization): time 0.00246/0.1507, allocations: 1.867 MB / 0.557 GB, free: 232 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.427e-05/0.1508, allocations: 15.94 kB / 0.5571 GB, free: 216 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.283e-05/0.1508, allocations: 8 kB / 0.5571 GB, free: 208 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.654e-05/0.1508, allocations: 12 kB / 0.5571 GB, free: 196 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008304/0.1516, allocations: 259.6 kB / 0.5573 GB, free: 15.94 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.227e-05/0.1516, allocations: 19.94 kB / 0.5573 GB, free: 15.92 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003621/0.152, allocations: 32.34 kB / 0.5574 GB, free: 15.89 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.531e-05/0.1521, allocations: 75.98 kB / 0.5574 GB, free: 15.81 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * 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 (147): * Single equations (assignments): 147 * 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.0005347/0.1526, allocations: 425.3 kB / 0.5579 GB, free: 15.39 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000201/0.1528, allocations: 170.8 kB / 0.558 GB, free: 15.22 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00264/0.1555, allocations: 1.842 MB / 0.5598 GB, free: 13.36 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.119e-05/0.1555, allocations: 12 kB / 0.5598 GB, free: 13.35 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.1555, allocations: 0 / 0.5598 GB, free: 13.35 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/0.1555, allocations: 3.984 kB / 0.5598 GB, free: 13.35 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004186/0.1597, allocations: 3.319 MB / 0.5631 GB, free: 9.957 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.1597, allocations: 0 / 0.5631 GB, free: 9.957 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007332/0.1604, allocations: 207.7 kB / 0.5633 GB, free: 9.754 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.106e-06/0.1604, allocations: 4 kB / 0.5633 GB, free: 9.75 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.628e-05/0.1605, allocations: 28 kB / 0.5633 GB, free: 9.723 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.318e-06/0.1605, allocations: 11.92 kB / 0.5633 GB, free: 9.711 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/0.1605, allocations: 4.125 kB / 0.5633 GB, free: 9.707 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003355/0.1639, allocations: 2.837 MB / 0.5661 GB, free: 6.84 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001838/0.164, allocations: 208 kB / 0.5663 GB, free: 6.617 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001002/0.1641, allocations: 20.06 kB / 0.5663 GB, free: 6.598 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000349/0.1645, allocations: 27.92 kB / 0.5663 GB, free: 6.57 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001353/0.1646, allocations: 68.91 kB / 0.5664 GB, free: 6.504 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.53e-05/0.1647, allocations: 55.98 kB / 0.5665 GB, free: 6.449 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001099/0.1658, allocations: 0.9375 MB / 0.5674 GB, free: 5.516 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1658, allocations: 0 / 0.5674 GB, free: 5.516 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007155/0.1665, allocations: 211.9 kB / 0.5676 GB, free: 5.309 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (109): * Single equations (assignments): 109 * 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.00376/0.1703, allocations: 3.42 MB / 0.5709 GB, free: 1.852 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002/0.1723, allocations: 1.504 MB / 0.5724 GB, free: 356 kB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.1723, allocations: 1.75 kB / 0.5724 GB, free: 356 kB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009212/0.1732, allocations: 0.7435 MB / 0.5731 GB, free: 15.61 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006991/0.1739, allocations: 117.1 kB / 0.5732 GB, free: 15.49 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01788/0.1918, allocations: 14.54 MB / 0.5874 GB, free: 0.5156 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2154/0.4072, allocations: 1.369 MB / 0.5887 GB, free: 62.77 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0006895/0.4079, allocations: 206.1 kB / 0.5889 GB, free: 62.76 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007403/0.4086, allocations: 0.6871 MB / 0.5896 GB, free: 62.75 MB / 446.1 MB Notification: Performance of SimCode: time 1.532e-06/0.4086, allocations: 3.344 kB / 0.5896 GB, free: 62.75 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04972/0.4584, allocations: 23 MB / 0.6121 GB, free: 54.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.39/10.85, allocations: 11.94 kB / 0.6121 GB, free: 54.09 MB / 446.1 MB " [Timeout remaining time 649] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4_fmu --startTime=1900 --stopTime=2000 --stepSize=0.04 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.695537587977014] Failed to read output from testmodel.py, exit status != 0: 10.982175696000922 10.991019941 10.871697928 Calling exit ...