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.001269/0.001269, allocations: 97.31 kB / 19.73 MB, free: 2.117 MB / 14.72 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.001406/0.001406, allocations: 219.3 kB / 23.03 MB, free: 4.922 MB / 14.72 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 1.311/1.311, allocations: 230.6 MB / 256.8 MB, free: 7.797 MB / 206.1 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.1678/0.1678, allocations: 29.24 MB / 342.5 MB, free: 5.582 MB / 270.1 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_2,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: SystemDynamics requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001858/0.001858, allocations: 62.72 kB / 479.1 MB, free: 360 kB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2882/0.29, allocations: 60.79 MB / 0.5273 GB, free: 7.828 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_2): time 0.003965/0.294, allocations: 3.079 MB / 0.5303 GB, free: 5.766 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001251/0.2952, allocations: 0.6631 MB / 0.5309 GB, free: 5.277 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003004/0.2955, allocations: 18.81 kB / 0.531 GB, free: 5.273 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003849/0.2959, allocations: 175.2 kB / 0.5311 GB, free: 5.168 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002956/0.2962, allocations: 133.5 kB / 0.5312 GB, free: 5.086 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006681/0.2969, allocations: 359.2 kB / 0.5316 GB, free: 4.895 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007932/0.2977, allocations: 0.841 MB / 0.5324 GB, free: 4.504 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006423/0.2983, allocations: 0.4983 MB / 0.5329 GB, free: 4.176 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002899/0.2986, allocations: 339.8 kB / 0.5332 GB, free: 3.988 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003375/0.2989, allocations: 429.2 kB / 0.5336 GB, free: 3.73 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001382/0.2991, allocations: 86.19 kB / 0.5337 GB, free: 3.73 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000214/0.2993, allocations: 115.4 kB / 0.5338 GB, free: 3.723 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003649/0.2997, allocations: 446.8 kB / 0.5342 GB, free: 3.512 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002994/0.3, allocations: 467.8 kB / 0.5347 GB, free: 3.191 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001198/0.3012, allocations: 1.277 MB / 0.5359 GB, free: 2.523 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.3012, allocations: 0 / 0.5359 GB, free: 2.523 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3012, allocations: 0 / 0.5359 GB, free: 2.523 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.965e-05/0.3012, allocations: 1.75 kB / 0.5359 GB, free: 2.523 MB / 382.1 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.0017/0.3029, allocations: 1.768 MB / 0.5377 GB, free: 1.156 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.874e-05/0.3029, allocations: 9.625 kB / 0.5377 GB, free: 1.156 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.997e-05/0.303, allocations: 35.23 kB / 0.5377 GB, free: 1.145 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001571/0.3031, allocations: 179.2 kB / 0.5379 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001974/0.3033, allocations: 216.8 kB / 0.5381 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007332/0.3041, allocations: 0.7066 MB / 0.5388 GB, free: 308 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.606e-05/0.3041, allocations: 82.25 kB / 0.5389 GB, free: 268 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001153/0.3042, allocations: 114.7 kB / 0.539 GB, free: 224 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001611/0.3058, allocations: 1.195 MB / 0.5401 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.316e-05/0.3059, allocations: 5.969 kB / 0.5401 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.596e-05/0.3059, allocations: 41.84 kB / 0.5402 GB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.925e-05/0.306, allocations: 26.75 kB / 0.5402 GB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001454/0.3074, allocations: 1.117 MB / 0.5413 GB, free: 15.09 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004141/0.3116, allocations: 3.425 MB / 0.5446 GB, free: 12.7 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001222/0.3128, allocations: 0.9998 MB / 0.5456 GB, free: 12.33 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005531/0.3133, allocations: 0.4921 MB / 0.5461 GB, free: 12.15 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.174e-05/0.3134, allocations: 22.08 kB / 0.5461 GB, free: 12.15 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.298e-05/0.3134, allocations: 39.19 kB / 0.5462 GB, free: 12.11 MB / 398.1 MB Notification: Performance of pre-optimization done (n=79): time 2.334e-06/0.3135, allocations: 0 / 0.5462 GB, free: 12.11 MB / 398.1 MB Notification: Performance of matching and sorting (n=105): time 0.008742/0.3222, allocations: 5.494 MB / 0.5515 GB, free: 7.973 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.018e-05/0.3222, allocations: 68.34 kB / 0.5516 GB, free: 7.895 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001466/0.3237, allocations: 1.292 MB / 0.5528 GB, free: 6.594 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.751e-05/0.3238, allocations: 41.7 kB / 0.5529 GB, free: 6.547 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000593/0.3244, allocations: 0.781 MB / 0.5537 GB, free: 5.758 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000275/0.3246, allocations: 372.8 kB / 0.554 GB, free: 5.391 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002353/0.3249, allocations: 162.7 kB / 0.5542 GB, free: 5.223 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.325, allocations: 345.9 kB / 0.5545 GB, free: 4.879 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007467/0.3258, allocations: 0.6149 MB / 0.5551 GB, free: 4.266 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008272/0.3266, allocations: 0.7461 MB / 0.5558 GB, free: 3.488 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001826/0.3284, allocations: 1.434 MB / 0.5572 GB, free: 2.02 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.3284, allocations: 3.938 kB / 0.5572 GB, free: 2.016 MB / 398.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002051/0.3305, allocations: 1.664 MB / 0.5589 GB, free: 356 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.809e-05/0.3305, allocations: 8.312 kB / 0.5589 GB, free: 348 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/0.3305, allocations: 4 kB / 0.5589 GB, free: 344 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.174e-05/0.3305, allocations: 4 kB / 0.5589 GB, free: 340 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006796/0.3312, allocations: 207.7 kB / 0.5591 GB, free: 132 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.369e-05/0.3312, allocations: 7.938 kB / 0.5591 GB, free: 124 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002682/0.3315, allocations: 24 kB / 0.5591 GB, free: 100 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.702e-05/0.3316, allocations: 55.98 kB / 0.5591 GB, free: 44 kB / 398.1 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 (120): * Single equations (assignments): 120 * 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.0005382/0.3321, allocations: 389.4 kB / 0.5595 GB, free: 15.65 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001801/0.3323, allocations: 162.9 kB / 0.5597 GB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002416/0.3347, allocations: 1.787 MB / 0.5614 GB, free: 13.69 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.228e-06/0.3347, allocations: 8 kB / 0.5614 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/0.3347, allocations: 3.938 kB / 0.5614 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.077e-05/0.3347, allocations: 7.969 kB / 0.5614 GB, free: 13.67 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003994/0.3387, allocations: 3.153 MB / 0.5645 GB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.474e-06/0.3387, allocations: 7.984 kB / 0.5645 GB, free: 10.44 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006885/0.3394, allocations: 183.8 kB / 0.5647 GB, free: 10.26 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.544e-06/0.3394, allocations: 8 kB / 0.5647 GB, free: 10.25 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.616e-05/0.3395, allocations: 31.98 kB / 0.5647 GB, free: 10.22 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.262e-06/0.3395, allocations: 4 kB / 0.5647 GB, free: 10.22 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.526e-06/0.3395, allocations: 3.938 kB / 0.5647 GB, free: 10.21 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003083/0.3426, allocations: 2.716 MB / 0.5674 GB, free: 7.469 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001498/0.3427, allocations: 131 kB / 0.5675 GB, free: 7.34 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001044/0.3428, allocations: 28.05 kB / 0.5676 GB, free: 7.312 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002833/0.3431, allocations: 16 kB / 0.5676 GB, free: 7.297 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001214/0.3432, allocations: 76.75 kB / 0.5676 GB, free: 7.223 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.191e-05/0.3433, allocations: 51.98 kB / 0.5677 GB, free: 7.172 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001044/0.3444, allocations: 0.9005 MB / 0.5686 GB, free: 6.273 MB / 414.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3444, allocations: 0 / 0.5686 GB, free: 6.273 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005622/0.3449, allocations: 191.9 kB / 0.5688 GB, free: 6.086 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 5 ($outputAlias_Pop,$outputAlias_Pol,$outputAlias_Cap_inv,$outputAlias_Nat_res,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 (106): * Single equations (assignments): 106 * 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.00347/0.3484, allocations: 3.295 MB / 0.572 GB, free: 2.754 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001723/0.3501, allocations: 1.402 MB / 0.5733 GB, free: 1.348 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.3501, allocations: 0 / 0.5733 GB, free: 1.348 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008368/0.3509, allocations: 0.7318 MB / 0.5741 GB, free: 0.6172 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006533/0.3516, allocations: 113.3 kB / 0.5742 GB, free: 0.5117 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01671/0.3683, allocations: 13.64 MB / 0.5875 GB, free: 2.594 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008311/0.3691, allocations: 0.7591 MB / 0.5882 GB, free: 1.797 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004494/0.3696, allocations: 153.2 kB / 0.5884 GB, free: 1.648 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008254/0.3704, allocations: 0.6594 MB / 0.589 GB, free: 0.9922 MB / 430.1 MB Notification: Performance of SimCode: time 1.563e-06/0.3704, allocations: 0 / 0.589 GB, free: 0.9922 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05071/0.4211, allocations: 22.57 MB / 0.611 GB, free: 10.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.12/13.54, allocations: 7.938 kB / 0.6111 GB, free: 10.59 MB / 462.1 MB " [Timeout remaining time 646] (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 sys.exit(0), Time elapsed: 16.289647073019296] Failed to read output from testmodel.py, exit status != 0: 13.715764563065022 13.741115884 13.435483121 Calling exit ...