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.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.001173/0.001173, allocations: 106.7 kB / 16.45 MB, free: 6.488 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.001796/0.001796, allocations: 196.6 kB / 19.41 MB, free: 3.68 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.384/1.384, allocations: 225.6 MB / 247.8 MB, free: 13.95 MB / 206.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.1928/0.1928, allocations: 29.24 MB / 331.9 MB, free: 12.48 MB / 270.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_4,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_4,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001985/0.001985, allocations: 63.89 kB / 464.7 MB, free: 9.699 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3612/0.3632, allocations: 59.55 MB / 0.512 GB, free: 8.84 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.004239/0.3674, allocations: 3.689 MB / 0.5156 GB, free: 6.359 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001783/0.3692, allocations: 0.6824 MB / 0.5163 GB, free: 5.859 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005799/0.3698, allocations: 18.94 kB / 0.5163 GB, free: 5.855 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004729/0.3703, allocations: 169.1 kB / 0.5164 GB, free: 5.758 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004128/0.3707, allocations: 149.2 kB / 0.5166 GB, free: 5.664 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008422/0.3715, allocations: 362.9 kB / 0.5169 GB, free: 5.473 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001024/0.3726, allocations: 0.8574 MB / 0.5178 GB, free: 5.078 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007287/0.3733, allocations: 0.4987 MB / 0.5183 GB, free: 4.758 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003405/0.3736, allocations: 337.3 kB / 0.5186 GB, free: 4.566 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003853/0.374, allocations: 437.4 kB / 0.519 GB, free: 4.305 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001688/0.3742, allocations: 86.72 kB / 0.5191 GB, free: 4.305 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002412/0.3744, allocations: 119.6 kB / 0.5192 GB, free: 4.293 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003868/0.3748, allocations: 455.7 kB / 0.5196 GB, free: 4.082 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003988/0.3752, allocations: 0.633 MB / 0.5202 GB, free: 3.59 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001555/0.3768, allocations: 1.299 MB / 0.5215 GB, free: 2.902 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.3768, allocations: 1.062 kB / 0.5215 GB, free: 2.902 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.3768, allocations: 0 / 0.5215 GB, free: 2.902 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.08e-05/0.3768, allocations: 4 kB / 0.5215 GB, free: 2.898 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: 290 * Number of variables: 290 Notification: Performance of Generate backend data structure: time 0.002683/0.3795, allocations: 1.891 MB / 0.5234 GB, free: 1.551 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.042e-05/0.3796, allocations: 10.44 kB / 0.5234 GB, free: 1.551 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002391/0.3798, allocations: 179 kB / 0.5235 GB, free: 1.43 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003055/0.3801, allocations: 217.3 kB / 0.5238 GB, free: 1.309 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001058/0.3812, allocations: 0.779 MB / 0.5245 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.111e-05/0.3812, allocations: 78.47 kB / 0.5246 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001313/0.3814, allocations: 107.5 kB / 0.5247 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001969/0.3833, allocations: 1.297 MB / 0.526 GB, free: 132 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.823e-05/0.3834, allocations: 5.953 kB / 0.526 GB, free: 128 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.168e-05/0.3834, allocations: 45.06 kB / 0.526 GB, free: 92 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-05/0.3835, allocations: 47.27 kB / 0.5261 GB, free: 92 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002125/0.3856, allocations: 1.241 MB / 0.5273 GB, free: 15.78 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006668/0.3923, allocations: 3.916 MB / 0.5311 GB, free: 13.62 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00199/0.3943, allocations: 1.33 MB / 0.5324 GB, free: 13.27 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006516/0.3949, allocations: 478.2 kB / 0.5328 GB, free: 13.14 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.977e-05/0.395, allocations: 33.67 kB / 0.5329 GB, free: 13.14 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.946e-05/0.395, allocations: 38.58 kB / 0.5329 GB, free: 13.09 MB / 398.1 MB Notification: Performance of pre-optimization done (n=70): time 3.186e-06/0.395, allocations: 0 / 0.5329 GB, free: 13.09 MB / 398.1 MB Notification: Performance of matching and sorting (n=70): time 0.002515/0.3976, allocations: 1.571 MB / 0.5344 GB, free: 12.66 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.623e-05/0.3976, allocations: 87.8 kB / 0.5345 GB, free: 12.56 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00226/0.3999, allocations: 1.369 MB / 0.5359 GB, free: 12.09 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.445e-05/0.4, allocations: 36.64 kB / 0.5359 GB, free: 12.05 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008656/0.4008, allocations: 0.8631 MB / 0.5367 GB, free: 11.37 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002817/0.4011, allocations: 260.2 kB / 0.537 GB, free: 11.16 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002586/0.4014, allocations: 154.8 kB / 0.5371 GB, free: 11.09 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001877/0.4016, allocations: 345 kB / 0.5375 GB, free: 10.76 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007335/0.4023, allocations: 472.7 kB / 0.5379 GB, free: 10.66 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009433/0.4032, allocations: 0.7178 MB / 0.5386 GB, free: 10.24 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001681/0.4049, allocations: 1.238 MB / 0.5398 GB, free: 9.629 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.216e-06/0.4049, allocations: 6.156 kB / 0.5398 GB, free: 9.625 MB / 398.1 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.002218/0.4072, allocations: 1.395 MB / 0.5412 GB, free: 9.055 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.143e-05/0.4072, allocations: 12.31 kB / 0.5412 GB, free: 9.051 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.229e-05/0.4072, allocations: 13.77 kB / 0.5412 GB, free: 9.047 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.351e-05/0.4072, allocations: 15.88 kB / 0.5412 GB, free: 9.043 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006249/0.4079, allocations: 182.6 kB / 0.5414 GB, free: 9.004 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.804e-05/0.4079, allocations: 16.69 kB / 0.5414 GB, free: 9 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005696/0.4085, allocations: 90.84 kB / 0.5415 GB, free: 8.934 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.504e-05/0.4085, allocations: 42.5 kB / 0.5416 GB, free: 8.926 MB / 398.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 (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 prepare postOptimizeDAE: time 0.0008912/0.4094, allocations: 407.4 kB / 0.5419 GB, free: 8.648 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000251/0.4097, allocations: 157.2 kB / 0.5421 GB, free: 8.559 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001866/0.4115, allocations: 1.242 MB / 0.5433 GB, free: 8.035 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.106e-05/0.4116, allocations: 6.594 kB / 0.5433 GB, free: 8.035 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.685e-06/0.4116, allocations: 1.125 kB / 0.5433 GB, free: 8.035 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.002e-05/0.4116, allocations: 5.109 kB / 0.5433 GB, free: 8.031 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003571/0.4151, allocations: 2.413 MB / 0.5457 GB, free: 6.781 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.099e-06/0.4151, allocations: 5.406 kB / 0.5457 GB, free: 6.777 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004826/0.4156, allocations: 121.3 kB / 0.5458 GB, free: 6.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.646e-06/0.4156, allocations: 2.656 kB / 0.5458 GB, free: 6.75 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.148e-05/0.4157, allocations: 14.94 kB / 0.5458 GB, free: 6.742 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.156e-06/0.4157, allocations: 2.812 kB / 0.5458 GB, free: 6.742 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.4157, allocations: 1.594 kB / 0.5458 GB, free: 6.742 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002642/0.4183, allocations: 2.006 MB / 0.5478 GB, free: 5.449 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003603/0.4187, allocations: 208 kB / 0.548 GB, free: 5.227 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000102/0.4188, allocations: 16.06 kB / 0.548 GB, free: 5.211 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000274/0.4191, allocations: 15.98 kB / 0.548 GB, free: 5.195 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001038/0.4192, allocations: 44.5 kB / 0.548 GB, free: 5.152 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.931e-05/0.4192, allocations: 20 kB / 0.5481 GB, free: 5.133 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001401/0.4206, allocations: 0.9414 MB / 0.549 GB, free: 4.195 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4206, allocations: 0 / 0.549 GB, free: 4.195 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008602/0.4215, allocations: 227.2 kB / 0.5492 GB, free: 3.973 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (70): * Single equations (assignments): 70 * 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.00285/0.4243, allocations: 2.562 MB / 0.5517 GB, free: 1.375 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001593/0.4259, allocations: 1.06 MB / 0.5527 GB, free: 328 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.4259, allocations: 3.938 kB / 0.5527 GB, free: 324 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006712/0.4266, allocations: 0.5068 MB / 0.5532 GB, free: 15.8 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008254/0.4274, allocations: 92.86 kB / 0.5533 GB, free: 15.71 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01868/0.4461, allocations: 12.45 MB / 0.5655 GB, free: 2.844 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001109/0.4472, allocations: 1.331 MB / 0.5668 GB, free: 1.484 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004387/0.4476, allocations: 128.8 kB / 0.5669 GB, free: 1.355 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007102/0.4484, allocations: 0.6203 MB / 0.5675 GB, free: 0.7344 MB / 414.1 MB Notification: Performance of SimCode: time 1.313e-06/0.4484, allocations: 0 / 0.5675 GB, free: 0.7344 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05822/0.5066, allocations: 19.73 MB / 0.5868 GB, free: 13.07 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/11.53, allocations: 11.88 kB / 0.5868 GB, free: 13.06 MB / 446.1 MB " [Timeout remaining time 648] (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 os._exit(0), Time elapsed: 14.528696324676275] Failed to read output from testmodel.py, exit status != 0: 11.621590667869896 11.644944395 11.263789394 Calling exit ...