Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.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.0009238/0.0009238, 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.0008183/0.0008183, 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.8969/0.8969, allocations: 177.2 MB / 202.8 MB, free: 5.742 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.1495/0.1495, allocations: 21.79 MB / 281 MB, free: 7.395 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_2,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_2,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2",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.371 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.997e-05/2.207e-05, allocations: 2.281 kB / 417.8 MB, free: 9.367 MB / 394.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_2): time 0.003419/0.003441, allocations: 3.072 MB / 420.8 MB, free: 6.289 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.001472/0.004913, allocations: 0.6701 MB / 421.5 MB, free: 5.617 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003747/0.005287, allocations: 19.94 kB / 421.5 MB, free: 5.598 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003335/0.005621, allocations: 182.2 kB / 421.7 MB, free: 5.418 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002534/0.005874, allocations: 134.8 kB / 421.8 MB, free: 5.285 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006092/0.006484, allocations: 363.5 kB / 422.2 MB, free: 4.93 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006165/0.0071, allocations: 0.8404 MB / 423 MB, free: 4.086 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005399/0.00764, allocations: 480.1 kB / 423.5 MB, free: 3.582 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003224/0.007962, allocations: 494.8 kB / 424 MB, free: 3.098 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002226/0.008185, allocations: 294.7 kB / 424.3 MB, free: 2.809 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 9.113e-05/0.008276, allocations: 88 kB / 424.4 MB, free: 2.723 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001613/0.008437, allocations: 115.9 kB / 424.5 MB, free: 2.609 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002753/0.008713, allocations: 446.4 kB / 424.9 MB, free: 2.172 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001859/0.008899, allocations: 330.6 kB / 425.2 MB, free: 1.848 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001341/0.01024, allocations: 1.222 MB / 426.5 MB, free: 0.6211 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.806e-06/0.01024, allocations: 0 / 426.5 MB, free: 0.6211 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.385e-06/0.01025, allocations: 0 / 426.5 MB, free: 0.6211 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.067e-05/0.01026, allocations: 0 / 426.5 MB, free: 0.6211 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.001468/0.01172, allocations: 1.738 MB / 428.2 MB, free: 14.84 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/0.01177, allocations: 15.91 kB / 428.2 MB, free: 14.82 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001768/0.01195, allocations: 174.7 kB / 428.4 MB, free: 14.64 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001483/0.01209, allocations: 207.6 kB / 428.6 MB, free: 14.44 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006692/0.01276, allocations: 0.7109 MB / 429.3 MB, free: 13.69 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.615e-05/0.01281, allocations: 78.48 kB / 429.4 MB, free: 13.61 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.757e-05/0.01289, allocations: 112.3 kB / 429.5 MB, free: 13.5 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001042/0.01393, allocations: 1.166 MB / 430.6 MB, free: 12.27 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.023e-05/0.01395, allocations: 8.125 kB / 430.7 MB, free: 12.26 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.528e-05/0.01399, allocations: 44.38 kB / 430.7 MB, free: 12.22 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.902e-05/0.01401, allocations: 32.12 kB / 430.7 MB, free: 12.19 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009796/0.01499, allocations: 1.101 MB / 431.8 MB, free: 11.08 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003071/0.01806, allocations: 3.391 MB / 435.2 MB, free: 7.578 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001138/0.0192, allocations: 1.297 MB / 436.5 MB, free: 6.266 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000359/0.01956, allocations: 470.6 kB / 437 MB, free: 5.805 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.517e-05/0.01962, allocations: 20.64 kB / 437 MB, free: 5.785 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.79e-05/0.01964, allocations: 51.22 kB / 437 MB, free: 5.727 MB / 410.7 MB Notification: Performance of pre-optimization done (n=67): time 1.724e-06/0.01965, allocations: 0 / 437 MB, free: 5.727 MB / 410.7 MB Notification: Performance of matching and sorting (n=67): time 0.00135/0.021, allocations: 1.528 MB / 438.6 MB, free: 4.191 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.98e-05/0.02105, allocations: 60.06 kB / 438.6 MB, free: 4.121 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000955/0.022, allocations: 1.292 MB / 439.9 MB, free: 2.82 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003267/0.02233, allocations: 37.7 kB / 440 MB, free: 2.777 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004008/0.02273, allocations: 0.7885 MB / 440.8 MB, free: 1.98 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001141/0.02284, allocations: 233.9 kB / 441 MB, free: 1.75 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000102/0.02294, allocations: 110.3 kB / 441.1 MB, free: 1.637 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.933e-05/0.02303, allocations: 337.8 kB / 441.4 MB, free: 1.301 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000346/0.02338, allocations: 441.1 kB / 441.8 MB, free: 0.8672 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003865/0.02377, allocations: 0.5316 MB / 442.4 MB, free: 308 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1992/0.223, allocations: 0.9896 MB / 443.4 MB, free: 63.8 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.132e-06/0.223, allocations: 0 / 443.4 MB, free: 63.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001186/0.2242, allocations: 1.191 MB / 444.6 MB, free: 63.76 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.74e-05/0.2242, allocations: 6.406 kB / 444.6 MB, free: 63.76 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/0.2242, allocations: 3.312 kB / 444.6 MB, free: 63.76 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.788e-05/0.2242, allocations: 6.969 kB / 444.6 MB, free: 63.76 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002697/0.2245, allocations: 135.7 kB / 444.7 MB, free: 63.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.15e-05/0.2245, allocations: 3.094 kB / 444.7 MB, free: 63.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001545/0.2247, allocations: 55.73 kB / 444.8 MB, free: 63.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.524e-05/0.2247, allocations: 26.84 kB / 444.8 MB, free: 63.75 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (82): * Single equations (assignments): 82 * 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.0004203/0.2251, allocations: 381.3 kB / 445.2 MB, free: 63.63 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.478e-05/0.2252, allocations: 151.5 kB / 445.3 MB, free: 63.63 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009235/0.2261, allocations: 1.192 MB / 446.5 MB, free: 63.37 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.824e-06/0.2261, allocations: 6.375 kB / 446.5 MB, free: 63.37 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.074e-06/0.2261, allocations: 3.812 kB / 446.5 MB, free: 63.37 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.2262, allocations: 3.469 kB / 446.5 MB, free: 63.37 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001621/0.2278, allocations: 2.264 MB / 448.8 MB, free: 62.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.2278, allocations: 3.469 kB / 448.8 MB, free: 62.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002304/0.228, allocations: 111.3 kB / 448.9 MB, free: 62.58 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.228, allocations: 3.25 kB / 448.9 MB, free: 62.58 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.682e-05/0.228, allocations: 17.8 kB / 448.9 MB, free: 62.57 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.228, allocations: 0 / 448.9 MB, free: 62.57 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.228, allocations: 3.156 kB / 448.9 MB, free: 62.57 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001169/0.2292, allocations: 1.884 MB / 450.8 MB, free: 61.98 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.349e-05/0.2293, allocations: 137.1 kB / 450.9 MB, free: 61.9 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.906e-05/0.2294, allocations: 11.16 kB / 450.9 MB, free: 61.89 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001092/0.2295, allocations: 14.67 kB / 451 MB, free: 61.88 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.415e-05/0.2295, allocations: 43 kB / 451 MB, free: 61.88 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.813e-05/0.2295, allocations: 23.84 kB / 451 MB, free: 61.87 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000622/0.2302, allocations: 0.8937 MB / 451.9 MB, free: 61.56 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2302, allocations: 0 / 451.9 MB, free: 61.56 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003993/0.2306, allocations: 215.1 kB / 452.1 MB, free: 61.51 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 67 * 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.001569/0.2321, allocations: 2.444 MB / 454.6 MB, free: 60.36 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0007229/0.2329, allocations: 0.958 MB / 455.5 MB, free: 60.16 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.2329, allocations: 2.625 kB / 455.5 MB, free: 60.16 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003236/0.2332, allocations: 0.4961 MB / 456 MB, free: 60.04 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004119/0.2336, allocations: 89.88 kB / 456.1 MB, free: 59.99 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008253/0.2418, allocations: 11.54 MB / 467.7 MB, free: 55.3 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005127/0.2424, allocations: 0.7157 MB / 468.4 MB, free: 55.13 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001787/0.2425, allocations: 82.73 kB / 468.5 MB, free: 55.12 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003607/0.2429, allocations: 0.5926 MB / 469 MB, free: 54.62 MB / 410.7 MB Notification: Performance of SimCode: time 1.713e-06/0.2429, allocations: 0 / 469 MB, free: 54.62 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04115/0.2841, allocations: 19.09 MB / 488.1 MB, free: 52.17 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.122/7.406, allocations: 7.109 kB / 488.1 MB, free: 52.16 MB / 410.7 MB " [Timeout remaining time 652] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2_fmu --startTime=1900 --stopTime=2100 --stepSize=0.08 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 9.393187975510955] Failed to read output from testmodel.py, exit status != 0: 7.501460087485611 7.508817465 7.497157815 Calling exit ...