Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.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.0008739/0.0008739, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.001189/0.001189, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.898/0.898, allocations: 177.1 MB / 202.8 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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.1268/0.1268, allocations: 21.79 MB / 281 MB, free: 7.383 MB / 266.7 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_6,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_6,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.286e-06/3.286e-06, allocations: 0 / 417.8 MB, free: 9.359 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.464e-05/2.792e-05, allocations: 2.844 kB / 417.8 MB, free: 9.355 MB / 394.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.004515/0.004543, allocations: 3.11 MB / 420.9 MB, free: 6.238 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.002321/0.006865, allocations: 0.7635 MB / 421.6 MB, free: 5.473 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006882/0.007553, allocations: 23.88 kB / 421.7 MB, free: 5.449 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004755/0.008029, allocations: 178.3 kB / 421.8 MB, free: 5.273 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004173/0.008446, allocations: 142.7 kB / 422 MB, free: 5.133 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008862/0.009332, allocations: 379.4 kB / 422.3 MB, free: 4.762 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009902/0.01032, allocations: 0.8561 MB / 423.2 MB, free: 3.902 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008175/0.01114, allocations: 480.2 kB / 423.7 MB, free: 3.398 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005435/0.01168, allocations: 0.4987 MB / 424.2 MB, free: 2.898 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003497/0.01203, allocations: 306.8 kB / 424.5 MB, free: 2.598 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001258/0.01216, allocations: 92 kB / 424.6 MB, free: 2.508 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002246/0.01238, allocations: 119.9 kB / 424.7 MB, free: 2.391 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003438/0.01273, allocations: 450.3 kB / 425.1 MB, free: 1.949 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002319/0.01296, allocations: 334.6 kB / 425.4 MB, free: 1.621 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001098/0.01406, allocations: 1.237 MB / 426.7 MB, free: 388 kB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.01406, allocations: 0 / 426.7 MB, free: 388 kB / 394.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.01406, allocations: 3.938 kB / 426.7 MB, free: 384 kB / 394.7 MB Notification: Performance of Transformations before backend: time 4.006e-05/0.0141, allocations: 0 / 426.7 MB, free: 384 kB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 265 * Number of variables: 265 Notification: Performance of Generate backend data structure: time 0.001978/0.01608, allocations: 1.77 MB / 428.5 MB, free: 14.55 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.198e-05/0.01613, allocations: 8.031 kB / 428.5 MB, free: 14.55 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001788/0.01631, allocations: 170.9 kB / 428.6 MB, free: 14.37 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002162/0.01653, allocations: 215.5 kB / 428.8 MB, free: 14.16 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007155/0.01724, allocations: 0.7187 MB / 429.6 MB, free: 13.4 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.212e-05/0.0173, allocations: 78.52 kB / 429.6 MB, free: 13.32 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.569e-05/0.01738, allocations: 108.4 kB / 429.7 MB, free: 13.22 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001087/0.01847, allocations: 1.186 MB / 430.9 MB, free: 11.96 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.849e-05/0.01849, allocations: 4.125 kB / 430.9 MB, free: 11.96 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.624e-05/0.01853, allocations: 48.38 kB / 431 MB, free: 11.91 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.611e-05/0.01855, allocations: 28.12 kB / 431 MB, free: 11.89 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009832/0.01953, allocations: 1.113 MB / 432.1 MB, free: 10.77 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003196/0.02273, allocations: 3.426 MB / 435.5 MB, free: 7.23 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001133/0.02386, allocations: 1.324 MB / 436.9 MB, free: 5.895 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003761/0.02424, allocations: 470.6 kB / 437.3 MB, free: 5.434 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.635e-05/0.0243, allocations: 28.62 kB / 437.4 MB, free: 5.406 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005031/0.02481, allocations: 0.551 MB / 437.9 MB, free: 4.84 MB / 410.7 MB Notification: Performance of pre-optimization done (n=72): time 2.224e-06/0.02481, allocations: 0 / 437.9 MB, free: 4.84 MB / 410.7 MB Notification: Performance of matching and sorting (n=72): time 0.001319/0.02613, allocations: 1.571 MB / 439.5 MB, free: 3.266 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.275e-05/0.02617, allocations: 64.06 kB / 439.5 MB, free: 3.188 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009683/0.02714, allocations: 1.297 MB / 440.8 MB, free: 1.883 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.849e-05/0.02717, allocations: 41.64 kB / 440.9 MB, free: 1.836 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004235/0.02759, allocations: 0.7883 MB / 441.7 MB, free: 1.039 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001298/0.02772, allocations: 250 kB / 441.9 MB, free: 0.793 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004197/0.02814, allocations: 126.6 kB / 442 MB, free: 0.6602 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.343e-05/0.02823, allocations: 341.9 kB / 442.4 MB, free: 328 kB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1844/0.2127, allocations: 440.4 kB / 442.8 MB, free: 63.88 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000452/0.2131, allocations: 0.5556 MB / 443.4 MB, free: 63.77 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000776/0.2139, allocations: 1.039 MB / 444.4 MB, free: 63.66 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.2139, allocations: 3.625 kB / 444.4 MB, free: 63.66 MB / 410.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.0009166/0.2148, allocations: 1.228 MB / 445.6 MB, free: 63.56 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.911e-05/0.2148, allocations: 6.812 kB / 445.6 MB, free: 63.56 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.607e-06/0.2148, allocations: 2.969 kB / 445.6 MB, free: 63.56 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.754e-05/0.2149, allocations: 6.406 kB / 445.6 MB, free: 63.56 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002561/0.2151, allocations: 143.9 kB / 445.8 MB, free: 63.54 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.156e-05/0.2151, allocations: 9.625 kB / 445.8 MB, free: 63.54 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001476/0.2153, allocations: 57.66 kB / 445.8 MB, free: 63.53 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.321e-05/0.2153, allocations: 26.44 kB / 445.9 MB, free: 63.53 MB / 410.7 MB Warning: Assuming fixed start value for the following 2 variables: min_QL:DISCRETE(start = 1.0 fixed = true ) \"Minimum quality of life\" type: Real min_dPop:DISCRETE(unit = \"1/yr\" fixed = true ) \"Minimal derivative of population\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$PRE.min_QL,$PRE.min_dPop,min_QL,min_dPop,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 (89): * Single equations (assignments): 89 * 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.000434/0.2157, allocations: 386.1 kB / 446.2 MB, free: 63.32 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.684e-05/0.2158, allocations: 149.9 kB / 446.4 MB, free: 63.32 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009192/0.2167, allocations: 1.241 MB / 447.6 MB, free: 62.96 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.662e-06/0.2167, allocations: 6.25 kB / 447.6 MB, free: 62.96 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.2167, allocations: 0 / 447.6 MB, free: 62.96 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.2167, allocations: 3.516 kB / 447.6 MB, free: 62.96 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00154/0.2183, allocations: 2.324 MB / 450 MB, free: 62.16 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.2183, allocations: 0 / 450 MB, free: 62.16 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000248/0.2185, allocations: 118.6 kB / 450.1 MB, free: 62.15 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.919e-06/0.2185, allocations: 3.188 kB / 450.1 MB, free: 62.15 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.129e-05/0.2186, allocations: 17.23 kB / 450.1 MB, free: 62.14 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-06/0.2186, allocations: 3.25 kB / 450.1 MB, free: 62.14 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.2186, allocations: 0 / 450.1 MB, free: 62.14 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001235/0.2198, allocations: 1.946 MB / 452.1 MB, free: 61.54 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000154/0.22, allocations: 183.7 kB / 452.2 MB, free: 61.43 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.594e-05/0.22, allocations: 11.41 kB / 452.2 MB, free: 61.43 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001133/0.2201, allocations: 12.53 kB / 452.3 MB, free: 61.42 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.663e-05/0.2202, allocations: 47.41 kB / 452.3 MB, free: 61.41 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.147e-05/0.2202, allocations: 20.97 kB / 452.3 MB, free: 61.41 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005944/0.2208, allocations: 0.9039 MB / 453.2 MB, free: 61.09 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2208, allocations: 3.844 kB / 453.2 MB, free: 61.09 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003834/0.2212, allocations: 219.7 kB / 453.4 MB, free: 61.04 MB / 410.7 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: 3 ($whenCondition1,min_dPop,min_QL) * Number of discrete states: 2 (min_dPop,min_QL) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001371/0.2225, allocations: 2.507 MB / 456 MB, free: 59.87 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0007398/0.2233, allocations: 0.9932 MB / 456.9 MB, free: 59.65 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.2233, allocations: 0 / 456.9 MB, free: 59.65 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003244/0.2236, allocations: 0.5052 MB / 457.5 MB, free: 59.54 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003847/0.224, allocations: 97.69 kB / 457.5 MB, free: 59.48 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00895/0.233, allocations: 11.71 MB / 469.3 MB, free: 54.7 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000526/0.2335, allocations: 0.7325 MB / 470 MB, free: 54.53 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001885/0.2337, allocations: 80.03 kB / 470.1 MB, free: 54.51 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003459/0.234, allocations: 0.5928 MB / 470.7 MB, free: 54.01 MB / 410.7 MB Notification: Performance of SimCode: time 1.432e-06/0.234, allocations: 0 / 470.7 MB, free: 54.01 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04477/0.2788, allocations: 19.42 MB / 490.1 MB, free: 50.81 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.554/7.833, allocations: 22.12 kB / 490.1 MB, free: 50.8 MB / 410.7 MB " [Timeout remaining time 652] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.sim & python3 -m fmpy simulate --output-file SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6_res.csv --start-time 1900 --stop-time 2100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.08 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.885622009634972] Failed to read output from testmodel.py, exit status != 0: 7.927758743986487 7.937953299 7.922252812 Calling exit ...