Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.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.001741/0.001741, allocations: 97.88 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.002098/0.002098, allocations: 217.8 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.358/1.358, allocations: 230.6 MB / 256.8 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] 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.1723/0.1723, allocations: 29.23 MB / 342.4 MB, free: 5.594 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_1,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_1,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1",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.001849/0.001849, allocations: 67.91 kB / 479.2 MB, free: 368 kB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.297/0.2988, allocations: 60.79 MB / 0.5273 GB, free: 7.828 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_1): time 0.003937/0.3028, allocations: 3.07 MB / 0.5303 GB, free: 5.77 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001097/0.3039, allocations: 0.6547 MB / 0.5309 GB, free: 5.285 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002759/0.3041, allocations: 21.91 kB / 0.5309 GB, free: 5.277 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003579/0.3045, allocations: 167.3 kB / 0.5311 GB, free: 5.172 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002811/0.3048, allocations: 116.9 kB / 0.5312 GB, free: 5.094 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006304/0.3054, allocations: 360.4 kB / 0.5316 GB, free: 4.902 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007268/0.3061, allocations: 0.84 MB / 0.5324 GB, free: 4.512 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000591/0.3067, allocations: 0.4933 MB / 0.5329 GB, free: 4.188 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002344/0.307, allocations: 341.8 kB / 0.5332 GB, free: 4 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003105/0.3073, allocations: 436.3 kB / 0.5336 GB, free: 3.738 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001271/0.3074, allocations: 85.03 kB / 0.5337 GB, free: 3.738 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001956/0.3076, allocations: 123.9 kB / 0.5338 GB, free: 3.723 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003305/0.3079, allocations: 444.8 kB / 0.5342 GB, free: 3.516 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002895/0.3082, allocations: 452.8 kB / 0.5347 GB, free: 3.207 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001064/0.3093, allocations: 1.248 MB / 0.5359 GB, free: 2.551 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.3093, allocations: 1.094 kB / 0.5359 GB, free: 2.551 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3093, allocations: 0 / 0.5359 GB, free: 2.551 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.191e-05/0.3093, allocations: 0 / 0.5359 GB, free: 2.551 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: 259 * Number of variables: 259 Notification: Performance of Generate backend data structure: time 0.00158/0.3109, allocations: 1.71 MB / 0.5375 GB, free: 1.25 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.3109, allocations: 9.625 kB / 0.5376 GB, free: 1.25 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.826e-05/0.311, allocations: 43.14 kB / 0.5376 GB, free: 1.23 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000155/0.3111, allocations: 170.6 kB / 0.5378 GB, free: 1.086 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000169/0.3113, allocations: 202.4 kB / 0.5379 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006691/0.312, allocations: 0.7046 MB / 0.5386 GB, free: 412 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.293e-05/0.312, allocations: 77.52 kB / 0.5387 GB, free: 376 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001177/0.3121, allocations: 106.7 kB / 0.5388 GB, free: 340 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001485/0.3136, allocations: 1.174 MB / 0.54 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.943e-05/0.3137, allocations: 10.02 kB / 0.54 GB, free: 15.65 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.297e-05/0.3137, allocations: 42.06 kB / 0.54 GB, free: 15.62 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.391e-05/0.3138, allocations: 29.91 kB / 0.54 GB, free: 15.62 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001366/0.3151, allocations: 1.071 MB / 0.5411 GB, free: 15.22 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004068/0.3192, allocations: 3.363 MB / 0.5444 GB, free: 12.85 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00117/0.3204, allocations: 0.9458 MB / 0.5453 GB, free: 12.51 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005279/0.3209, allocations: 482.2 kB / 0.5458 GB, free: 12.33 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.13e-05/0.321, allocations: 25.8 kB / 0.5458 GB, free: 12.32 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.932e-05/0.321, allocations: 42.62 kB / 0.5458 GB, free: 12.28 MB / 398.1 MB Notification: Performance of pre-optimization done (n=78): time 2.034e-06/0.321, allocations: 1.062 kB / 0.5458 GB, free: 12.28 MB / 398.1 MB Notification: Performance of matching and sorting (n=104): time 0.008982/0.33, allocations: 5.408 MB / 0.5511 GB, free: 8.418 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.502e-05/0.33, allocations: 60.41 kB / 0.5512 GB, free: 8.348 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001364/0.3314, allocations: 1.238 MB / 0.5524 GB, free: 7.098 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.432e-05/0.3314, allocations: 41.7 kB / 0.5524 GB, free: 7.051 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005831/0.332, allocations: 0.7573 MB / 0.5531 GB, free: 6.285 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002677/0.3323, allocations: 368.8 kB / 0.5535 GB, free: 5.922 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002349/0.3325, allocations: 166.6 kB / 0.5537 GB, free: 5.75 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.3327, allocations: 341.9 kB / 0.554 GB, free: 5.41 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007028/0.3334, allocations: 0.5837 MB / 0.5546 GB, free: 4.828 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007917/0.3342, allocations: 0.711 MB / 0.5552 GB, free: 4.086 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00175/0.3359, allocations: 1.388 MB / 0.5566 GB, free: 2.664 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.63e-06/0.3359, allocations: 4 kB / 0.5566 GB, free: 2.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.001958/0.3379, allocations: 1.601 MB / 0.5582 GB, free: 1.055 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.3379, allocations: 11.94 kB / 0.5582 GB, free: 1.043 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.3379, allocations: 0 / 0.5582 GB, free: 1.043 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.139e-05/0.3379, allocations: 8 kB / 0.5582 GB, free: 1.035 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006713/0.3386, allocations: 203.7 kB / 0.5584 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.355e-05/0.3386, allocations: 7.938 kB / 0.5584 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002478/0.3389, allocations: 24.31 kB / 0.5584 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.709e-05/0.3389, allocations: 55.98 kB / 0.5585 GB, free: 0.75 MB / 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 (119): * Single equations (assignments): 119 * 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.0004752/0.3394, allocations: 386 kB / 0.5588 GB, free: 372 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001696/0.3396, allocations: 155 kB / 0.559 GB, free: 216 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002332/0.3419, allocations: 1.724 MB / 0.5607 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.868e-06/0.3419, allocations: 12 kB / 0.5607 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.3419, allocations: 7.875 kB / 0.5607 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.936e-06/0.3419, allocations: 3.984 kB / 0.5607 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003811/0.3458, allocations: 3.043 MB / 0.5637 GB, free: 11.34 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.711e-06/0.3458, allocations: 4 kB / 0.5637 GB, free: 11.33 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006894/0.3465, allocations: 187.7 kB / 0.5638 GB, free: 11.15 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.392e-06/0.3465, allocations: 4 kB / 0.5638 GB, free: 11.14 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.579e-05/0.3465, allocations: 27.98 kB / 0.5639 GB, free: 11.12 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.202e-06/0.3465, allocations: 4 kB / 0.5639 GB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.059e-06/0.3465, allocations: 7.984 kB / 0.5639 GB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002945/0.3495, allocations: 2.614 MB / 0.5664 GB, free: 8.461 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001452/0.3496, allocations: 135.1 kB / 0.5666 GB, free: 8.328 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.666e-05/0.3497, allocations: 20 kB / 0.5666 GB, free: 8.309 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002629/0.35, allocations: 16 kB / 0.5666 GB, free: 8.293 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001081/0.3501, allocations: 72.81 kB / 0.5667 GB, free: 8.223 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.291e-05/0.3502, allocations: 51.98 kB / 0.5667 GB, free: 8.172 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0009652/0.3511, allocations: 0.8519 MB / 0.5676 GB, free: 7.32 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3511, allocations: 0 / 0.5676 GB, free: 7.32 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005394/0.3517, allocations: 187.9 kB / 0.5677 GB, free: 7.137 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 (105): * Single equations (assignments): 105 * 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.00333/0.355, allocations: 3.197 MB / 0.5709 GB, free: 3.902 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00161/0.3566, allocations: 1.348 MB / 0.5722 GB, free: 2.551 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3566, allocations: 0 / 0.5722 GB, free: 2.551 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007899/0.3574, allocations: 0.7083 MB / 0.5729 GB, free: 1.844 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006449/0.358, allocations: 112.7 kB / 0.573 GB, free: 1.746 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01567/0.3737, allocations: 13.13 MB / 0.5858 GB, free: 4.422 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000775/0.3745, allocations: 0.7309 MB / 0.5865 GB, free: 3.652 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004136/0.3749, allocations: 153.2 kB / 0.5867 GB, free: 3.5 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007848/0.3757, allocations: 0.636 MB / 0.5873 GB, free: 2.867 MB / 430.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3757, allocations: 4 kB / 0.5873 GB, free: 2.863 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04751/0.4232, allocations: 21.88 MB / 0.6086 GB, free: 13.15 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.16/13.59, allocations: 10.81 kB / 0.6087 GB, free: 13.14 MB / 462.1 MB " [Timeout remaining time 646] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1_fmu --startTime=1900 --stopTime=2100 --stepSize=0.08 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.428608010988683] Failed to read output from testmodel.py, exit status != 0: 13.755760926986113 13.779935873 13.466316214 Calling exit ...