Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.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.001137/0.001137, 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.001231/0.001231, allocations: 165.9 kB / 22.45 MB, free: 2.109 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.9656/0.9656, allocations: 177.1 MB / 202.8 MB, free: 5.59 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.13/0.13, allocations: 21.78 MB / 281 MB, free: 7.246 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_3,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_3,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.737e-06/3.737e-06, allocations: 4 kB / 417.8 MB, free: 9.367 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.469e-05/2.842e-05, allocations: 2.281 kB / 417.8 MB, free: 9.363 MB / 394.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_3): time 0.0041/0.004128, allocations: 3.07 MB / 420.8 MB, free: 6.285 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.002097/0.006225, allocations: 0.6701 MB / 421.5 MB, free: 5.613 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004333/0.006658, allocations: 19.94 kB / 421.5 MB, free: 5.594 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003889/0.007047, allocations: 186.2 kB / 421.7 MB, free: 5.41 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002601/0.007307, allocations: 134.8 kB / 421.8 MB, free: 5.277 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000708/0.008015, allocations: 363.5 kB / 422.2 MB, free: 4.922 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.000918/0.008933, allocations: 0.8483 MB / 423 MB, free: 4.07 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006609/0.009594, allocations: 476.1 kB / 423.5 MB, free: 3.57 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004443/0.01004, allocations: 494.8 kB / 424 MB, free: 3.086 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002771/0.01032, allocations: 290.8 kB / 424.3 MB, free: 2.801 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 8.669e-05/0.0104, allocations: 88 kB / 424.4 MB, free: 2.715 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001935/0.0106, allocations: 119.9 kB / 424.5 MB, free: 2.598 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002729/0.01087, allocations: 454.3 kB / 424.9 MB, free: 2.152 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002907/0.01116, allocations: 326.6 kB / 425.2 MB, free: 1.832 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001107/0.01227, allocations: 1.222 MB / 426.5 MB, free: 0.6055 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.536e-06/0.01227, allocations: 0 / 426.5 MB, free: 0.6055 MB / 394.7 MB Notification: Performance of FrontEnd: time 4.168e-06/0.01228, allocations: 0 / 426.5 MB, free: 0.6055 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.753e-05/0.01231, allocations: 0 / 426.5 MB, free: 0.6055 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: 263 * Number of variables: 263 Notification: Performance of Generate backend data structure: time 0.001787/0.01409, allocations: 1.742 MB / 428.2 MB, free: 14.82 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.01414, allocations: 8.031 kB / 428.2 MB, free: 14.81 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000173/0.01431, allocations: 170.8 kB / 428.4 MB, free: 14.63 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001815/0.01449, allocations: 211.5 kB / 428.6 MB, free: 14.42 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007893/0.01528, allocations: 0.7186 MB / 429.3 MB, free: 13.67 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.791e-05/0.01534, allocations: 82.48 kB / 429.4 MB, free: 13.59 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.586e-05/0.01543, allocations: 108.4 kB / 429.5 MB, free: 13.48 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001584/0.01702, allocations: 1.182 MB / 430.7 MB, free: 12.23 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.056e-05/0.01704, allocations: 192 / 430.7 MB, free: 12.23 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.391e-05/0.01709, allocations: 48.38 kB / 430.7 MB, free: 12.18 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.354e-05/0.01711, allocations: 27.94 kB / 430.8 MB, free: 12.16 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001097/0.01821, allocations: 1.105 MB / 431.9 MB, free: 11.04 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003455/0.02167, allocations: 3.409 MB / 435.3 MB, free: 7.527 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001273/0.02294, allocations: 1.3 MB / 436.6 MB, free: 6.211 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003996/0.02334, allocations: 466.6 kB / 437 MB, free: 5.754 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001033/0.02344, allocations: 28.64 kB / 437 MB, free: 5.727 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.673e-05/0.02347, allocations: 43.22 kB / 437.1 MB, free: 5.676 MB / 410.7 MB Notification: Performance of pre-optimization done (n=68): time 2.134e-06/0.02347, allocations: 0 / 437.1 MB, free: 5.676 MB / 410.7 MB Notification: Performance of matching and sorting (n=68): time 0.001737/0.02521, allocations: 1.536 MB / 438.6 MB, free: 4.133 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.786e-05/0.02526, allocations: 60.06 kB / 438.7 MB, free: 4.062 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0011/0.02636, allocations: 1.292 MB / 440 MB, free: 2.762 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.256e-05/0.02639, allocations: 37.7 kB / 440 MB, free: 2.719 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004474/0.02684, allocations: 0.7923 MB / 440.8 MB, free: 1.918 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001394/0.02698, allocations: 245.9 kB / 441 MB, free: 1.676 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000121/0.0271, allocations: 114.6 kB / 441.2 MB, free: 1.555 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001031/0.0272, allocations: 330 kB / 441.5 MB, free: 1.227 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003763/0.02758, allocations: 437.8 kB / 441.9 MB, free: 0.8008 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004342/0.02801, allocations: 0.5427 MB / 442.5 MB, free: 232 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1964/0.2245, allocations: 0.9916 MB / 443.4 MB, free: 63.39 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.55e-06/0.2245, allocations: 7.125 kB / 443.4 MB, free: 63.39 MB / 410.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.0009769/0.2254, allocations: 1.19 MB / 444.6 MB, free: 63.35 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.257e-05/0.2255, allocations: 7.359 kB / 444.6 MB, free: 63.35 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.2255, allocations: 3.094 kB / 444.6 MB, free: 63.35 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.091e-05/0.2255, allocations: 6.781 kB / 444.7 MB, free: 63.35 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002554/0.2257, allocations: 137.1 kB / 444.8 MB, free: 63.34 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.06e-05/0.2258, allocations: 8.531 kB / 444.8 MB, free: 63.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001611/0.2259, allocations: 60.14 kB / 444.9 MB, free: 63.34 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.284e-05/0.2259, allocations: 25.88 kB / 444.9 MB, free: 63.34 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 (83): * Single equations (assignments): 83 * 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.0004025/0.2263, allocations: 371.8 kB / 445.2 MB, free: 63.21 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.814e-05/0.2264, allocations: 148.8 kB / 445.4 MB, free: 63.21 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000932/0.2274, allocations: 1.207 MB / 446.6 MB, free: 63.14 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.024e-06/0.2274, allocations: 13.3 kB / 446.6 MB, free: 63.14 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.221e-06/0.2274, allocations: 2.734 kB / 446.6 MB, free: 63.14 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.2274, allocations: 3.375 kB / 446.6 MB, free: 63.14 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001935/0.2293, allocations: 2.27 MB / 448.9 MB, free: 62.46 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.2293, allocations: 1.5 kB / 448.9 MB, free: 62.46 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003255/0.2296, allocations: 113.8 kB / 449 MB, free: 62.45 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.424e-06/0.2297, allocations: 3.281 kB / 449 MB, free: 62.45 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.424e-05/0.2297, allocations: 15.12 kB / 449 MB, free: 62.43 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.2297, allocations: 7.062 kB / 449 MB, free: 62.43 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.2297, allocations: 3.188 kB / 449 MB, free: 62.43 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001373/0.2311, allocations: 1.895 MB / 450.9 MB, free: 61.84 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001001/0.2312, allocations: 131.7 kB / 451.1 MB, free: 61.76 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.87e-05/0.2312, allocations: 11.31 kB / 451.1 MB, free: 61.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001127/0.2313, allocations: 14.62 kB / 451.1 MB, free: 61.74 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.995e-05/0.2314, allocations: 49.8 kB / 451.1 MB, free: 61.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.754e-05/0.2314, allocations: 16.69 kB / 451.1 MB, free: 61.73 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006017/0.232, allocations: 0.8936 MB / 452 MB, free: 61.42 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.232, allocations: 0 / 452 MB, free: 61.42 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000417/0.2324, allocations: 213 kB / 452.2 MB, free: 61.37 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 (68): * Single equations (assignments): 68 * 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.001571/0.234, allocations: 2.465 MB / 454.7 MB, free: 60.22 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0008799/0.2349, allocations: 0.9691 MB / 455.7 MB, free: 60.01 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2349, allocations: 0 / 455.7 MB, free: 60.01 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003704/0.2352, allocations: 0.4927 MB / 456.2 MB, free: 59.91 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004436/0.2357, allocations: 93.45 kB / 456.3 MB, free: 59.85 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009905/0.2456, allocations: 11.54 MB / 467.8 MB, free: 55.16 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000562/0.2462, allocations: 0.7182 MB / 468.5 MB, free: 54.99 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001813/0.2463, allocations: 83.77 kB / 468.6 MB, free: 54.97 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003331/0.2467, allocations: 0.5883 MB / 469.2 MB, free: 54.48 MB / 410.7 MB Notification: Performance of SimCode: time 1.453e-06/0.2467, allocations: 0 / 469.2 MB, free: 54.48 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04894/0.2956, allocations: 19.08 MB / 488.3 MB, free: 52.02 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.929/7.224, allocations: 15.41 kB / 488.3 MB, free: 52.01 MB / 410.7 MB " [Timeout remaining time 653] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3_fmu --startTime=1900 --stopTime=2100 --stepSize=0.08 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 9.301263798959553] Failed to read output from testmodel.py, exit status != 0: 7.319460186176002 7.327398373 7.31362522 Calling exit ...