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.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.001282/0.001282, allocations: 105.4 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.001273/0.001273, 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.394/1.394, allocations: 225.6 MB / 247.8 MB, free: 3.734 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.1893/0.1893, allocations: 29.22 MB / 331.9 MB, free: 0.9062 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_3,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_3,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001895/0.001895, allocations: 66.45 kB / 464.7 MB, free: 35.51 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1122, allocations: 59.57 MB / 0.512 GB, free: 14.55 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_3): time 0.005151/0.1173, allocations: 3.657 MB / 0.5156 GB, free: 10.89 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001752/0.1191, allocations: 0.6857 MB / 0.5162 GB, free: 10.2 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000376/0.1195, allocations: 15.94 kB / 0.5163 GB, free: 10.19 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004199/0.1199, allocations: 174.3 kB / 0.5164 GB, free: 10.02 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003216/0.1202, allocations: 138.8 kB / 0.5166 GB, free: 9.879 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007498/0.121, allocations: 363.5 kB / 0.5169 GB, free: 9.523 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008678/0.1218, allocations: 0.8406 MB / 0.5177 GB, free: 8.68 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007282/0.1226, allocations: 0.4999 MB / 0.5182 GB, free: 8.141 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003125/0.1229, allocations: 338.4 kB / 0.5185 GB, free: 7.809 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003858/0.1232, allocations: 437.5 kB / 0.519 GB, free: 7.379 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001259/0.1234, allocations: 88 kB / 0.519 GB, free: 7.293 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001964/0.1236, allocations: 116 kB / 0.5191 GB, free: 7.18 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003766/0.1239, allocations: 434.4 kB / 0.5196 GB, free: 6.754 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004643/0.1244, allocations: 0.6164 MB / 0.5202 GB, free: 6.133 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001348/0.1258, allocations: 1.263 MB / 0.5214 GB, free: 4.859 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.1258, allocations: 0 / 0.5214 GB, free: 4.859 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.522e-06/0.1258, allocations: 4 kB / 0.5214 GB, free: 4.855 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.494e-05/0.1258, allocations: 0 / 0.5214 GB, free: 4.855 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: 263 * Number of variables: 263 Notification: Performance of Generate backend data structure: time 0.0023/0.1281, allocations: 1.849 MB / 0.5232 GB, free: 2.941 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.1281, allocations: 8.031 kB / 0.5232 GB, free: 2.934 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002171/0.1283, allocations: 174.8 kB / 0.5234 GB, free: 2.75 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002367/0.1286, allocations: 207.6 kB / 0.5236 GB, free: 2.547 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001043/0.1296, allocations: 0.7719 MB / 0.5243 GB, free: 1.727 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.925e-05/0.1297, allocations: 78.5 kB / 0.5244 GB, free: 1.648 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001241/0.1298, allocations: 104.4 kB / 0.5245 GB, free: 1.547 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001685/0.1315, allocations: 1.178 MB / 0.5257 GB, free: 308 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.962e-05/0.1315, allocations: 7.938 kB / 0.5257 GB, free: 300 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.681e-05/0.1316, allocations: 44 kB / 0.5257 GB, free: 256 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.926e-05/0.1316, allocations: 28 kB / 0.5257 GB, free: 228 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001632/0.1333, allocations: 1.113 MB / 0.5268 GB, free: 15.1 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004919/0.1382, allocations: 3.686 MB / 0.5304 GB, free: 11.3 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001774/0.1399, allocations: 1.303 MB / 0.5317 GB, free: 9.984 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006237/0.1406, allocations: 478.3 kB / 0.5321 GB, free: 9.516 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.262e-05/0.1407, allocations: 28.77 kB / 0.5322 GB, free: 9.488 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.38e-05/0.1407, allocations: 35.12 kB / 0.5322 GB, free: 9.445 MB / 398.1 MB Notification: Performance of pre-optimization done (n=68): time 2.746e-06/0.1407, allocations: 0 / 0.5322 GB, free: 9.445 MB / 398.1 MB Notification: Performance of matching and sorting (n=68): time 0.002227/0.1429, allocations: 1.529 MB / 0.5337 GB, free: 7.91 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.971e-05/0.143, allocations: 63.91 kB / 0.5338 GB, free: 7.836 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001586/0.1446, allocations: 1.296 MB / 0.535 GB, free: 6.531 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.357e-05/0.1446, allocations: 37.7 kB / 0.5351 GB, free: 6.488 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006419/0.1453, allocations: 0.7882 MB / 0.5358 GB, free: 5.691 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002049/0.1455, allocations: 241.9 kB / 0.5361 GB, free: 5.453 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001651/0.1456, allocations: 122.6 kB / 0.5362 GB, free: 5.328 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001689/0.1458, allocations: 330 kB / 0.5365 GB, free: 5 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005551/0.1464, allocations: 437.8 kB / 0.5369 GB, free: 4.57 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006519/0.147, allocations: 0.535 MB / 0.5374 GB, free: 4 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00137/0.1484, allocations: 1.002 MB / 0.5384 GB, free: 2.965 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.1484, allocations: 0 / 0.5384 GB, free: 2.965 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001549/0.1499, allocations: 1.191 MB / 0.5396 GB, free: 1.766 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.543e-05/0.15, allocations: 7.984 kB / 0.5396 GB, free: 1.758 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.246e-05/0.15, allocations: 4.312 kB / 0.5396 GB, free: 1.754 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.017e-05/0.15, allocations: 8 kB / 0.5396 GB, free: 1.746 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004762/0.1505, allocations: 135.7 kB / 0.5397 GB, free: 1.613 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.983e-05/0.1505, allocations: 11.98 kB / 0.5397 GB, free: 1.602 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002504/0.1507, allocations: 59.52 kB / 0.5398 GB, free: 1.543 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.766e-05/0.1508, allocations: 24 kB / 0.5398 GB, free: 1.52 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 (83): * Single equations (assignments): 83 * 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.0005314/0.1513, allocations: 373.5 kB / 0.5402 GB, free: 1.145 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001671/0.1515, allocations: 147 kB / 0.5403 GB, free: 1 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001687/0.1532, allocations: 1.205 MB / 0.5415 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-05/0.1532, allocations: 11.92 kB / 0.5415 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.1532, allocations: 4 kB / 0.5415 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.1532, allocations: 3.984 kB / 0.5415 GB, free: 15.76 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002848/0.156, allocations: 2.372 MB / 0.5438 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.156, allocations: 0 / 0.5438 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004551/0.1565, allocations: 111.8 kB / 0.5439 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.233e-06/0.1565, allocations: 11.94 kB / 0.5439 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.463e-05/0.1565, allocations: 12 kB / 0.544 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/0.1565, allocations: 4 kB / 0.544 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.1565, allocations: 0 / 0.544 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002254/0.1588, allocations: 1.891 MB / 0.5458 GB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002449/0.159, allocations: 215.8 kB / 0.546 GB, free: 11.06 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.145e-05/0.1591, allocations: 8.062 kB / 0.546 GB, free: 11.05 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002116/0.1593, allocations: 19.98 kB / 0.546 GB, free: 11.03 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.597e-05/0.1594, allocations: 40.52 kB / 0.5461 GB, free: 10.99 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.841e-05/0.1594, allocations: 23.98 kB / 0.5461 GB, free: 10.97 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001053/0.1605, allocations: 0.8848 MB / 0.547 GB, free: 10.09 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1605, allocations: 0 / 0.547 GB, free: 10.09 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005615/0.1611, allocations: 215.2 kB / 0.5472 GB, free: 9.875 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 (68): * Single equations (assignments): 68 * 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.002576/0.1636, allocations: 2.461 MB / 0.5496 GB, free: 7.379 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001326/0.165, allocations: 0.9691 MB / 0.5505 GB, free: 6.414 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.165, allocations: 0 / 0.5505 GB, free: 6.414 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006175/0.1656, allocations: 0.4951 MB / 0.551 GB, free: 5.918 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005991/0.1662, allocations: 96.83 kB / 0.5511 GB, free: 5.828 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0164/0.1826, allocations: 11.56 MB / 0.5624 GB, free: 10.09 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001373/0.184, allocations: 1.315 MB / 0.5637 GB, free: 8.742 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002675/0.1842, allocations: 76.39 kB / 0.5637 GB, free: 8.668 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007116/0.1849, allocations: 0.5852 MB / 0.5643 GB, free: 8.082 MB / 430.1 MB Notification: Performance of SimCode: time 1.112e-06/0.1849, allocations: 0 / 0.5643 GB, free: 8.082 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07401/0.2589, allocations: 18.82 MB / 0.5827 GB, free: 5.32 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.93/11.18, allocations: 18.3 kB / 0.5827 GB, free: 5.309 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 os._exit(0), Time elapsed: 14.417668569367379] Failed to read output from testmodel.py, exit status != 0: 11.266706771217287 11.281062933 11.152472431 Calling exit ...