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.001263/0.001263, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001391/0.001391, allocations: 214.4 kB / 22.24 MB, free: 5.262 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.354/1.354, allocations: 230.6 MB / 256 MB, free: 7.773 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.1808/0.1808, allocations: 29.22 MB / 341.6 MB, free: 5.66 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="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: 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.00213/0.00213, allocations: 71.88 kB / 478.4 MB, free: 348 kB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3276/0.3297, allocations: 60.8 MB / 0.5265 GB, free: 8.043 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.004226/0.3339, allocations: 3.09 MB / 0.5295 GB, free: 5.977 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001242/0.3352, allocations: 0.6798 MB / 0.5302 GB, free: 5.477 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003044/0.3355, allocations: 18.69 kB / 0.5302 GB, free: 5.473 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003934/0.3359, allocations: 173.2 kB / 0.5304 GB, free: 5.371 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000294/0.3362, allocations: 138.2 kB / 0.5305 GB, free: 5.285 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000671/0.3369, allocations: 363.4 kB / 0.5309 GB, free: 5.094 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007767/0.3376, allocations: 0.8482 MB / 0.5317 GB, free: 4.703 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006288/0.3383, allocations: 470.6 kB / 0.5321 GB, free: 4.414 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002709/0.3385, allocations: 351.4 kB / 0.5325 GB, free: 4.219 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003325/0.3389, allocations: 373.1 kB / 0.5328 GB, free: 4.02 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000139/0.339, allocations: 86.25 kB / 0.5329 GB, free: 4.02 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002172/0.3392, allocations: 123.3 kB / 0.533 GB, free: 4.004 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003779/0.3396, allocations: 463.9 kB / 0.5335 GB, free: 3.789 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000294/0.3399, allocations: 483.3 kB / 0.5339 GB, free: 3.457 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00116/0.3411, allocations: 1.312 MB / 0.5352 GB, free: 2.707 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.3411, allocations: 1.875 kB / 0.5352 GB, free: 2.707 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.3411, allocations: 4 kB / 0.5352 GB, free: 2.703 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.6e-05/0.3411, allocations: 0 / 0.5352 GB, free: 2.703 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.001761/0.3428, allocations: 1.81 MB / 0.537 GB, free: 1.297 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.3429, allocations: 9.625 kB / 0.537 GB, free: 1.297 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001743/0.343, allocations: 180.6 kB / 0.5372 GB, free: 1.145 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001831/0.3432, allocations: 214.3 kB / 0.5374 GB, free: 1.027 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007992/0.344, allocations: 0.7251 MB / 0.5381 GB, free: 448 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.344e-05/0.3441, allocations: 80.03 kB / 0.5382 GB, free: 412 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001084/0.3442, allocations: 105.8 kB / 0.5383 GB, free: 376 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001666/0.3459, allocations: 1.289 MB / 0.5395 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.075e-05/0.3459, allocations: 9.344 kB / 0.5395 GB, free: 15.65 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.891e-05/0.346, allocations: 45.78 kB / 0.5396 GB, free: 15.61 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.024e-05/0.346, allocations: 46.27 kB / 0.5396 GB, free: 15.61 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001728/0.3478, allocations: 1.234 MB / 0.5408 GB, free: 15.15 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004674/0.3524, allocations: 3.65 MB / 0.5444 GB, free: 12.6 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001659/0.3541, allocations: 1.322 MB / 0.5457 GB, free: 12.11 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005913/0.3547, allocations: 478.5 kB / 0.5461 GB, free: 11.94 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.901e-05/0.3548, allocations: 38.12 kB / 0.5462 GB, free: 11.92 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.413e-05/0.3548, allocations: 38.91 kB / 0.5462 GB, free: 11.88 MB / 398.1 MB Notification: Performance of pre-optimization done (n=70): time 2.444e-06/0.3548, allocations: 0 / 0.5462 GB, free: 11.88 MB / 398.1 MB Notification: Performance of matching and sorting (n=70): time 0.002118/0.3569, allocations: 1.573 MB / 0.5477 GB, free: 11.2 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.485e-05/0.357, allocations: 85.77 kB / 0.5478 GB, free: 11.1 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001564/0.3585, allocations: 1.374 MB / 0.5492 GB, free: 9.719 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.244e-05/0.3586, allocations: 37.83 kB / 0.5492 GB, free: 9.676 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006564/0.3592, allocations: 0.8619 MB / 0.55 GB, free: 8.805 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001943/0.3594, allocations: 257.8 kB / 0.5503 GB, free: 8.551 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001898/0.3596, allocations: 154.6 kB / 0.5504 GB, free: 8.395 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.3598, allocations: 341.9 kB / 0.5508 GB, free: 8.055 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006071/0.3604, allocations: 477.8 kB / 0.5512 GB, free: 7.586 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008039/0.3612, allocations: 0.7161 MB / 0.5519 GB, free: 6.758 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001456/0.3626, allocations: 1.241 MB / 0.5531 GB, free: 5.406 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/0.3627, allocations: 0 / 0.5531 GB, free: 5.406 MB / 398.1 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.001753/0.3644, allocations: 1.398 MB / 0.5545 GB, free: 4 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.591e-05/0.3644, allocations: 15.94 kB / 0.5545 GB, free: 3.984 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.394e-05/0.3644, allocations: 8 kB / 0.5545 GB, free: 3.977 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.751e-05/0.3645, allocations: 12 kB / 0.5545 GB, free: 3.965 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005613/0.365, allocations: 184.3 kB / 0.5547 GB, free: 3.785 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.657e-05/0.3651, allocations: 23.94 kB / 0.5547 GB, free: 3.762 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003518/0.3654, allocations: 95.28 kB / 0.5548 GB, free: 3.668 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.928e-05/0.3655, allocations: 36 kB / 0.5549 GB, free: 3.633 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.0005129/0.366, allocations: 404.6 kB / 0.5552 GB, free: 3.23 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001788/0.3662, allocations: 154.9 kB / 0.5554 GB, free: 3.078 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001666/0.3678, allocations: 1.251 MB / 0.5566 GB, free: 1.812 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.313e-06/0.3678, allocations: 8.031 kB / 0.5566 GB, free: 1.805 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.017e-06/0.3678, allocations: 4 kB / 0.5566 GB, free: 1.801 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.445e-06/0.3678, allocations: 3.984 kB / 0.5566 GB, free: 1.797 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002893/0.3707, allocations: 2.308 MB / 0.5589 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.534e-06/0.3707, allocations: 0 / 0.5589 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004638/0.3712, allocations: 119.8 kB / 0.559 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/0.3712, allocations: 0 / 0.559 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.95e-05/0.3712, allocations: 23.98 kB / 0.559 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.939e-06/0.3713, allocations: 8 kB / 0.559 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.3713, allocations: 0 / 0.559 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002239/0.3735, allocations: 1.992 MB / 0.561 GB, free: 13.27 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001939/0.3737, allocations: 142.8 kB / 0.5611 GB, free: 13.13 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.348e-05/0.3738, allocations: 16.06 kB / 0.5611 GB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002577/0.374, allocations: 12 kB / 0.5611 GB, free: 13.11 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.136e-05/0.3741, allocations: 48.55 kB / 0.5612 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.434e-05/0.3742, allocations: 24 kB / 0.5612 GB, free: 13.04 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001085/0.3752, allocations: 0.9375 MB / 0.5621 GB, free: 12.1 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3752, allocations: 0 / 0.5621 GB, free: 12.1 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006666/0.3759, allocations: 235.1 kB / 0.5623 GB, free: 11.87 MB / 414.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.002634/0.3785, allocations: 2.564 MB / 0.5648 GB, free: 9.281 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001425/0.38, allocations: 1.061 MB / 0.5659 GB, free: 8.219 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.38, allocations: 0 / 0.5659 GB, free: 8.219 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006157/0.3806, allocations: 0.5076 MB / 0.5664 GB, free: 7.715 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006928/0.3813, allocations: 104.8 kB / 0.5665 GB, free: 7.617 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01536/0.3966, allocations: 12.42 MB / 0.5786 GB, free: 10.77 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008151/0.3974, allocations: 0.7537 MB / 0.5793 GB, free: 9.988 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003878/0.3978, allocations: 132.9 kB / 0.5795 GB, free: 9.855 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006772/0.3985, allocations: 0.6203 MB / 0.5801 GB, free: 9.234 MB / 430.1 MB Notification: Performance of SimCode: time 8.62e-07/0.3985, allocations: 4 kB / 0.5801 GB, free: 9.23 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05264/0.4512, allocations: 19.88 MB / 0.5995 GB, free: 5.465 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.65/12.11, allocations: 4 kB / 0.5995 GB, free: 5.461 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.82015508087352] Failed to read output from testmodel.py, exit status != 0: 12.225972031243145 12.252206908 11.906342669 Calling exit ...