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.0007779/0.0007779, 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.0007197/0.0007197, 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.9478/0.9478, allocations: 177.1 MB / 202.8 MB, free: 5.73 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.1226/0.1226, allocations: 21.79 MB / 281 MB, free: 7.379 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 2.104e-06/2.104e-06, allocations: 0 / 417.8 MB, free: 9.363 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.757e-05/1.968e-05, allocations: 3.969 kB / 417.8 MB, free: 9.359 MB / 394.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.003221/0.003241, allocations: 3.11 MB / 420.9 MB, free: 6.238 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.001714/0.004955, allocations: 0.7635 MB / 421.6 MB, free: 5.473 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004915/0.005446, allocations: 23.88 kB / 421.7 MB, free: 5.449 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003768/0.005823, allocations: 178.3 kB / 421.8 MB, free: 5.273 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003033/0.006127, allocations: 134.8 kB / 422 MB, free: 5.141 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007255/0.006852, allocations: 383.4 kB / 422.3 MB, free: 4.766 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007979/0.00765, allocations: 0.86 MB / 423.2 MB, free: 3.902 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005393/0.008189, allocations: 476.2 kB / 423.7 MB, free: 3.402 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004976/0.008687, allocations: 0.4987 MB / 424.2 MB, free: 2.902 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002812/0.008968, allocations: 314.7 kB / 424.5 MB, free: 2.594 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001127/0.009081, allocations: 84 kB / 424.6 MB, free: 2.512 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002061/0.009287, allocations: 119.8 kB / 424.7 MB, free: 2.395 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003181/0.009605, allocations: 458.3 kB / 425.1 MB, free: 1.945 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002412/0.009846, allocations: 334.6 kB / 425.5 MB, free: 1.617 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001109/0.01096, allocations: 1.229 MB / 426.7 MB, free: 392 kB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.01096, allocations: 4 kB / 426.7 MB, free: 388 kB / 394.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.01096, allocations: 0 / 426.7 MB, free: 388 kB / 394.7 MB Notification: Performance of Transformations before backend: time 3.331e-05/0.01099, allocations: 4 kB / 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.00195/0.01294, allocations: 1.77 MB / 428.5 MB, free: 14.55 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.245e-05/0.013, allocations: 8.031 kB / 428.5 MB, free: 14.55 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001892/0.01319, allocations: 174.8 kB / 428.6 MB, free: 14.36 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002049/0.01339, allocations: 211.5 kB / 428.8 MB, free: 14.16 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009356/0.01433, allocations: 0.711 MB / 429.6 MB, free: 13.41 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.901e-05/0.0144, allocations: 82.52 kB / 429.6 MB, free: 13.33 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001089/0.0145, allocations: 108.4 kB / 429.7 MB, free: 13.22 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001168/0.01567, allocations: 1.194 MB / 430.9 MB, free: 11.96 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.773e-05/0.01569, allocations: 4.125 kB / 430.9 MB, free: 11.96 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.362e-05/0.01573, allocations: 40.38 kB / 431 MB, free: 11.92 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.988e-05/0.01575, allocations: 32.12 kB / 431 MB, free: 11.89 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001119/0.01687, allocations: 1.109 MB / 432.1 MB, free: 10.77 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003244/0.02012, allocations: 3.43 MB / 435.5 MB, free: 7.23 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001129/0.02125, allocations: 1.32 MB / 436.9 MB, free: 5.898 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003814/0.02163, allocations: 470.6 kB / 437.3 MB, free: 5.438 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.355e-05/0.02168, allocations: 28.62 kB / 437.4 MB, free: 5.41 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004822/0.02216, allocations: 0.5509 MB / 437.9 MB, free: 4.844 MB / 410.7 MB Notification: Performance of pre-optimization done (n=72): time 2.454e-06/0.02217, allocations: 4 kB / 437.9 MB, free: 4.84 MB / 410.7 MB Notification: Performance of matching and sorting (n=72): time 0.001354/0.02352, allocations: 1.579 MB / 439.5 MB, free: 3.258 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.984e-05/0.02356, allocations: 60.06 kB / 439.5 MB, free: 3.184 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009578/0.02452, allocations: 1.297 MB / 440.8 MB, free: 1.879 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.806e-05/0.02454, allocations: 33.7 kB / 440.9 MB, free: 1.84 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003888/0.02493, allocations: 0.7924 MB / 441.7 MB, free: 1.039 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001263/0.02506, allocations: 245.8 kB / 441.9 MB, free: 0.7969 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001161/0.02518, allocations: 126.6 kB / 442 MB, free: 0.6641 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.339e-05/0.02527, allocations: 341.9 kB / 442.4 MB, free: 332 kB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1687/0.194, allocations: 445.8 kB / 442.8 MB, free: 63.85 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004265/0.1944, allocations: 0.5493 MB / 443.4 MB, free: 63.74 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007786/0.1952, allocations: 1.043 MB / 444.4 MB, free: 63.64 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.1952, allocations: 3.625 kB / 444.4 MB, free: 63.64 MB / 410.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.0009546/0.1961, allocations: 1.226 MB / 445.6 MB, free: 63.53 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.986e-05/0.1962, allocations: 6.344 kB / 445.6 MB, free: 63.53 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.1962, allocations: 8.969 kB / 445.6 MB, free: 63.53 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.768e-05/0.1962, allocations: 10.31 kB / 445.7 MB, free: 63.53 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002661/0.1965, allocations: 133.2 kB / 445.8 MB, free: 63.52 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.977e-06/0.1965, allocations: 9.562 kB / 445.8 MB, free: 63.52 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000155/0.1966, allocations: 57.16 kB / 445.8 MB, free: 63.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.36e-05/0.1966, allocations: 29.28 kB / 445.9 MB, free: 63.5 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.0004116/0.1971, allocations: 389.2 kB / 446.3 MB, free: 63.29 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.523e-05/0.1971, allocations: 151.5 kB / 446.4 MB, free: 63.29 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009186/0.198, allocations: 1.238 MB / 447.6 MB, free: 62.93 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.1981, allocations: 6.281 kB / 447.6 MB, free: 62.93 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.1981, allocations: 0 / 447.6 MB, free: 62.93 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.1981, allocations: 3.328 kB / 447.7 MB, free: 62.93 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001594/0.1997, allocations: 2.33 MB / 450 MB, free: 62.13 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.1997, allocations: 0.9844 kB / 450 MB, free: 62.13 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002505/0.1999, allocations: 116.7 kB / 450.1 MB, free: 62.12 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.738e-06/0.1999, allocations: 3.125 kB / 450.1 MB, free: 62.12 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.126e-05/0.1999, allocations: 11.25 kB / 450.1 MB, free: 62.11 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.297e-06/0.1999, allocations: 7.781 kB / 450.1 MB, free: 62.11 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.1999, allocations: 0 / 450.1 MB, free: 62.11 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001225/0.2012, allocations: 1.943 MB / 452.1 MB, free: 61.51 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00016/0.2013, allocations: 180.6 kB / 452.2 MB, free: 61.41 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.778e-05/0.2014, allocations: 15.09 kB / 452.3 MB, free: 61.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001207/0.2015, allocations: 14.61 kB / 452.3 MB, free: 61.39 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.922e-05/0.2016, allocations: 48.48 kB / 452.3 MB, free: 61.38 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.08e-05/0.2016, allocations: 23.48 kB / 452.3 MB, free: 61.38 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005814/0.2022, allocations: 0.8981 MB / 453.2 MB, free: 61.06 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.2022, allocations: 0 / 453.2 MB, free: 61.06 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003926/0.2026, allocations: 217.3 kB / 453.4 MB, free: 61.01 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.001433/0.204, allocations: 2.517 MB / 456 MB, free: 59.84 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0007598/0.2047, allocations: 0.9915 MB / 457 MB, free: 59.62 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.2047, allocations: 0 / 457 MB, free: 59.62 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003337/0.2051, allocations: 0.505 MB / 457.5 MB, free: 59.52 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003905/0.2055, allocations: 98.28 kB / 457.6 MB, free: 59.45 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009201/0.2147, allocations: 11.71 MB / 469.3 MB, free: 54.68 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005296/0.2152, allocations: 0.7257 MB / 470 MB, free: 54.5 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001812/0.2154, allocations: 74.23 kB / 470.1 MB, free: 54.49 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003385/0.2157, allocations: 0.6011 MB / 470.7 MB, free: 53.98 MB / 410.7 MB Notification: Performance of SimCode: time 1.283e-06/0.2157, allocations: 4 kB / 470.7 MB, free: 53.98 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03904/0.2548, allocations: 19.42 MB / 490.1 MB, free: 50.81 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.021/7.275, allocations: 14.41 kB / 490.1 MB, free: 50.8 MB / 410.7 MB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6_fmu --startTime=1900 --stopTime=2100 --stepSize=0.08 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 9.2825649632141] Failed to read output from testmodel.py, exit status != 0: 7.372068482451141 7.379010702 7.366468343 Calling exit ...