Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.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.0007992/0.0007992, 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.0008348/0.0008348, 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.9237/0.9237, allocations: 177.1 MB / 202.8 MB, free: 5.754 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.1312/0.1312, allocations: 21.79 MB / 281 MB, free: 7.398 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_5,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_5,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_5",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.015e-06/3.015e-06, allocations: 0 / 417.8 MB, free: 9.367 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.203e-05/2.505e-05, allocations: 2.844 kB / 417.8 MB, free: 9.363 MB / 394.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.002998/0.003023, allocations: 2.757 MB / 420.5 MB, free: 6.598 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.001138/0.004161, allocations: 0.522 MB / 421 MB, free: 6.074 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002825/0.004443, allocations: 12 kB / 421.1 MB, free: 6.062 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002544/0.004698, allocations: 150.6 kB / 421.2 MB, free: 5.914 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002502/0.004948, allocations: 126.9 kB / 421.3 MB, free: 5.789 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005601/0.005508, allocations: 299.5 kB / 421.6 MB, free: 5.496 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005221/0.00603, allocations: 0.7277 MB / 422.4 MB, free: 4.766 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004142/0.006444, allocations: 353.6 kB / 422.7 MB, free: 4.395 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003224/0.006767, allocations: 454.8 kB / 423.1 MB, free: 3.949 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001877/0.006954, allocations: 282.9 kB / 423.4 MB, free: 3.672 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 7.176e-05/0.007026, allocations: 72 kB / 423.5 MB, free: 3.602 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001379/0.007164, allocations: 107.9 kB / 423.6 MB, free: 3.496 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002322/0.007396, allocations: 442.4 kB / 424 MB, free: 3.062 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001793/0.007576, allocations: 314.6 kB / 424.3 MB, free: 2.754 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008195/0.008395, allocations: 1.101 MB / 425.4 MB, free: 1.648 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.008398, allocations: 0 / 425.4 MB, free: 1.648 MB / 394.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.008399, allocations: 0 / 425.4 MB, free: 1.648 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.912e-05/0.008418, allocations: 0 / 425.4 MB, free: 1.648 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.00142/0.009838, allocations: 1.676 MB / 427.1 MB, free: 15.93 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.009881, allocations: 12.03 kB / 427.1 MB, free: 15.91 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001609/0.01004, allocations: 178.8 kB / 427.3 MB, free: 15.73 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001601/0.0102, allocations: 199.6 kB / 427.5 MB, free: 15.54 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003357/0.01054, allocations: 0.5259 MB / 428 MB, free: 14.97 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.266e-05/0.0106, allocations: 78.33 kB / 428.1 MB, free: 14.89 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.398e-05/0.01067, allocations: 104.4 kB / 428.2 MB, free: 14.79 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001018/0.01169, allocations: 1.083 MB / 429.3 MB, free: 13.68 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.951e-05/0.01171, allocations: 192 / 429.3 MB, free: 13.68 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.785e-05/0.01179, allocations: 44.36 kB / 429.3 MB, free: 13.64 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.157e-05/0.01184, allocations: 62.3 kB / 429.4 MB, free: 13.57 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001154/0.01299, allocations: 1.223 MB / 430.6 MB, free: 12.34 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003193/0.01619, allocations: 2.625 MB / 433.2 MB, free: 9.637 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009559/0.01714, allocations: 0.98 MB / 434.2 MB, free: 8.645 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003948/0.01754, allocations: 486.6 kB / 434.7 MB, free: 8.168 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.616e-05/0.01759, allocations: 32.58 kB / 434.7 MB, free: 8.137 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.151e-05/0.01762, allocations: 43.2 kB / 434.8 MB, free: 8.086 MB / 410.7 MB Notification: Performance of pre-optimization done (n=66): time 2.024e-06/0.01762, allocations: 0 / 434.8 MB, free: 8.086 MB / 410.7 MB Notification: Performance of matching and sorting (n=66): time 0.001406/0.01902, allocations: 1.598 MB / 436.4 MB, free: 6.48 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.768e-05/0.01906, allocations: 60.06 kB / 436.4 MB, free: 6.41 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001252/0.02031, allocations: 1.262 MB / 437.7 MB, free: 5.137 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.785e-05/0.02034, allocations: 49.69 kB / 437.7 MB, free: 5.082 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003708/0.02071, allocations: 0.7873 MB / 438.5 MB, free: 4.285 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001137/0.02083, allocations: 241.9 kB / 438.7 MB, free: 4.047 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001125/0.02094, allocations: 130.6 kB / 438.9 MB, free: 3.91 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.11e-05/0.02103, allocations: 330 kB / 439.2 MB, free: 3.582 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000412/0.02144, allocations: 473.7 kB / 439.7 MB, free: 3.121 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005067/0.02195, allocations: 0.6638 MB / 440.3 MB, free: 2.383 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002335/0.02428, allocations: 2.121 MB / 442.4 MB, free: 188 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.02429, allocations: 4 kB / 442.4 MB, free: 184 kB / 410.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.1933/0.2176, allocations: 1.339 MB / 443.8 MB, free: 63.71 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.419e-05/0.2176, allocations: 6.344 kB / 443.8 MB, free: 63.71 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.2176, allocations: 10.34 kB / 443.8 MB, free: 63.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.072e-05/0.2176, allocations: 11.62 kB / 443.8 MB, free: 63.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002873/0.2179, allocations: 175.1 kB / 444 MB, free: 63.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.129e-05/0.2179, allocations: 20.62 kB / 444 MB, free: 63.69 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001812/0.2181, allocations: 85.39 kB / 444.1 MB, free: 63.69 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.319e-05/0.2181, allocations: 38.28 kB / 444.1 MB, free: 63.69 MB / 410.7 MB Warning: Assuming fixed start value for the following 6 variables: years:VARIABLE(start = 1900.0 fixed = true ) \"Time in calendar years\" type: Real Population.level:VARIABLE(start = Population.x0 fixed = true ) \"Reversible state variable\" type: Real Natural_Resources.level:VARIABLE(start = Natural_Resources.x0 fixed = true ) \"Reversible state variable\" type: Real Capital_Investment.level:VARIABLE(start = Capital_Investment.x0 fixed = true ) \"Reversible state variable\" type: Real Pollution.level:VARIABLE(start = Pollution.x0 fixed = true ) \"Reversible state variable\" type: Real CIAF.level:VARIABLE(start = CIAF.x0 fixed = true ) \"Reversible state variable\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 96 * 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.0004898/0.2186, allocations: 394.2 kB / 444.5 MB, free: 63.57 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.441e-05/0.2187, allocations: 142.7 kB / 444.7 MB, free: 63.57 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009223/0.2196, allocations: 1.252 MB / 445.9 MB, free: 63.48 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.91e-06/0.2196, allocations: 10.22 kB / 445.9 MB, free: 63.48 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.2196, allocations: 0 / 445.9 MB, free: 63.48 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.2196, allocations: 6.609 kB / 445.9 MB, free: 63.48 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001464/0.2211, allocations: 2.293 MB / 448.2 MB, free: 62.71 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.2211, allocations: 3.656 kB / 448.2 MB, free: 62.71 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002449/0.2213, allocations: 127.9 kB / 448.3 MB, free: 62.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.2213, allocations: 3.344 kB / 448.3 MB, free: 62.7 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.041e-05/0.2214, allocations: 18.47 kB / 448.4 MB, free: 62.69 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.2214, allocations: 0 / 448.4 MB, free: 62.69 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2214, allocations: 3.188 kB / 448.4 MB, free: 62.69 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001217/0.2226, allocations: 1.951 MB / 450.3 MB, free: 62.11 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.466e-05/0.2226, allocations: 128 kB / 450.4 MB, free: 62.03 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.356e-05/0.2227, allocations: 11.25 kB / 450.5 MB, free: 62.02 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001184/0.2228, allocations: 24.39 kB / 450.5 MB, free: 62.02 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.036e-05/0.2229, allocations: 50.08 kB / 450.5 MB, free: 62.01 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.888e-05/0.2229, allocations: 29.38 kB / 450.6 MB, free: 62 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005294/0.2234, allocations: 0.87 MB / 451.4 MB, free: 61.7 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2234, allocations: 0 / 451.4 MB, free: 61.7 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003741/0.2238, allocations: 215.9 kB / 451.6 MB, free: 61.65 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (years,Population.level,Natural_Resources.level,Capital_Investment.level,Pollution.level,CIAF.level) * 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 (66): * Single equations (assignments): 66 * 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.001378/0.2252, allocations: 2.509 MB / 454.1 MB, free: 60.51 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0007465/0.2259, allocations: 1.06 MB / 455.2 MB, free: 60.29 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.2259, allocations: 10.78 kB / 455.2 MB, free: 60.29 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003643/0.2263, allocations: 0.5346 MB / 455.8 MB, free: 60.17 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002746/0.2266, allocations: 66.95 kB / 455.8 MB, free: 60.12 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008065/0.2346, allocations: 11.72 MB / 467.5 MB, free: 55.27 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004419/0.2351, allocations: 0.7117 MB / 468.2 MB, free: 55.09 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.00022/0.2353, allocations: 122.7 kB / 468.4 MB, free: 55.06 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003274/0.2356, allocations: 0.5804 MB / 468.9 MB, free: 54.57 MB / 410.7 MB Notification: Performance of SimCode: time 5.61e-07/0.2356, allocations: 0 / 468.9 MB, free: 54.57 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03708/0.2727, allocations: 18.75 MB / 487.7 MB, free: 52.22 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.011/7.284, allocations: 1.781 kB / 487.7 MB, free: 52.22 MB / 410.7 MB " [Timeout remaining time 653] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_5_fmu --startTime=0 --stopTime=233 --stepSize=0.0932 --timeout=50 --tolerance=1e-10 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_5.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 9.268288214690983] Failed to read output from testmodel.py, exit status != 0: 7.373877977952361 7.380071376 7.370352004 Calling exit ...