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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo", uses=false) Using package SystemDynamics with version 2.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009116/0.0009116, allocations: 97.72 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.004847/0.004847, allocations: 169.5 kB / 16.26 MB, free: 6.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.244/1.244, allocations: 223.2 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2834/0.2834, allocations: 28.84 MB / 320.3 MB, free: 6.207 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004107/0.0004107, allocations: 8 kB / 388.6 MB, free: 3.066 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3551/0.3556, allocations: 57.48 MB / 446.1 MB, free: 33.02 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_2): time 0.003471/0.3591, allocations: 3.17 MB / 449.2 MB, free: 30.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002412/0.3616, allocations: 0.6621 MB / 449.9 MB, free: 30.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008014/0.3624, allocations: 11.28 kB / 449.9 MB, free: 30.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004417/0.3629, allocations: 122.6 kB / 450 MB, free: 30.05 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000417/0.3633, allocations: 101.3 kB / 450.1 MB, free: 30.01 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000769/0.3641, allocations: 296.2 kB / 450.4 MB, free: 29.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008161/0.3649, allocations: 0.8187 MB / 451.2 MB, free: 29.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008814/0.3658, allocations: 0.5875 MB / 451.8 MB, free: 29.13 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003063/0.3661, allocations: 211.4 kB / 452 MB, free: 29.01 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000296/0.3664, allocations: 311.1 kB / 452.3 MB, free: 28.83 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.718e-05/0.3665, allocations: 20.28 kB / 452.4 MB, free: 28.83 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001764/0.3667, allocations: 58.08 kB / 452.4 MB, free: 28.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003331/0.367, allocations: 344.7 kB / 452.7 MB, free: 28.69 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003351/0.3674, allocations: 0.5341 MB / 453.3 MB, free: 28.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009165/0.3683, allocations: 1.08 MB / 454.4 MB, free: 27.79 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.3683, allocations: 0 / 454.4 MB, free: 27.79 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.3683, allocations: 0 / 454.4 MB, free: 27.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.87e-05/0.3683, allocations: 0 / 454.4 MB, free: 27.79 MB / 350.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.001911/0.3703, allocations: 1.513 MB / 455.9 MB, free: 26.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.143e-05/0.3703, allocations: 11.81 kB / 455.9 MB, free: 26.7 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002057/0.3705, allocations: 173.5 kB / 456.1 MB, free: 26.58 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002255/0.3708, allocations: 202.5 kB / 456.3 MB, free: 26.47 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007794/0.3716, allocations: 0.7421 MB / 457 MB, free: 25.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.874e-05/0.3716, allocations: 83.98 kB / 457.1 MB, free: 25.87 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001223/0.3718, allocations: 108.7 kB / 457.2 MB, free: 25.83 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001532/0.3733, allocations: 1.176 MB / 458.4 MB, free: 25.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.544e-05/0.3733, allocations: 3.938 kB / 458.4 MB, free: 25.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.588e-05/0.3734, allocations: 42.5 kB / 458.4 MB, free: 25.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.577e-05/0.3734, allocations: 26.44 kB / 458.4 MB, free: 25.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00149/0.3749, allocations: 1.099 MB / 459.5 MB, free: 25.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005396/0.3804, allocations: 3.704 MB / 463.2 MB, free: 22.99 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001842/0.3823, allocations: 1.332 MB / 464.6 MB, free: 22.67 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006122/0.3829, allocations: 481.7 kB / 465 MB, free: 22.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.502e-05/0.383, allocations: 31.25 kB / 465.1 MB, free: 22.54 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.076e-05/0.383, allocations: 41.98 kB / 465.1 MB, free: 22.49 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 3.446e-06/0.3831, allocations: 0 / 465.1 MB, free: 22.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=67): time 0.002333/0.3854, allocations: 1.515 MB / 466.6 MB, free: 22.08 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.174e-05/0.3855, allocations: 63.16 kB / 466.7 MB, free: 22.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002057/0.3875, allocations: 1.291 MB / 468 MB, free: 21.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.295e-05/0.3876, allocations: 40.52 kB / 468 MB, free: 21.53 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006007/0.3883, allocations: 0.7781 MB / 468.8 MB, free: 20.92 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002246/0.3885, allocations: 227.1 kB / 469 MB, free: 20.74 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.843e-05/0.3886, allocations: 63.16 kB / 469.1 MB, free: 20.7 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.757e-05/0.3887, allocations: 331.3 kB / 469.4 MB, free: 20.38 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006277/0.3893, allocations: 435.9 kB / 469.8 MB, free: 20.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006852/0.39, allocations: 0.5304 MB / 470.4 MB, free: 20.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001323/0.3914, allocations: 0.9935 MB / 471.3 MB, free: 19.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.252e-06/0.3914, allocations: 5.344 kB / 471.4 MB, free: 19.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.00185/0.3932, allocations: 1.181 MB / 472.5 MB, free: 19.37 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.735e-05/0.3933, allocations: 7.094 kB / 472.5 MB, free: 19.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.3933, allocations: 2.312 kB / 472.5 MB, free: 19.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.569e-05/0.3934, allocations: 4.906 kB / 472.5 MB, free: 19.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004828/0.3938, allocations: 132.3 kB / 472.7 MB, free: 19.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.445e-05/0.3939, allocations: 21.72 kB / 472.7 MB, free: 19.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004048/0.3943, allocations: 49.48 kB / 472.7 MB, free: 19.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.287e-05/0.3944, allocations: 23.48 kB / 472.8 MB, free: 19.3 MB / 350.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 (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.0008031/0.3952, allocations: 383 kB / 473.1 MB, free: 19.08 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002059/0.3954, allocations: 138.9 kB / 473.3 MB, free: 19 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002/0.3974, allocations: 1.194 MB / 474.5 MB, free: 18.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.368e-05/0.3974, allocations: 7.312 kB / 474.5 MB, free: 18.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.616e-06/0.3974, allocations: 3.938 kB / 474.5 MB, free: 18.64 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.226e-05/0.3974, allocations: 4.578 kB / 474.5 MB, free: 18.64 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00389/0.4013, allocations: 2.358 MB / 476.8 MB, free: 17.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/0.4014, allocations: 0.75 kB / 476.8 MB, free: 17.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004906/0.4019, allocations: 111.4 kB / 477 MB, free: 17.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.067e-05/0.4019, allocations: 7.625 kB / 477 MB, free: 17.75 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.886e-05/0.402, allocations: 21.89 kB / 477 MB, free: 17.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.544e-06/0.402, allocations: 2.406 kB / 477 MB, free: 17.73 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.402, allocations: 1.125 kB / 477 MB, free: 17.73 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002412/0.4044, allocations: 1.869 MB / 478.9 MB, free: 16.75 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002832/0.4047, allocations: 197.2 kB / 479.1 MB, free: 16.54 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.057e-05/0.4048, allocations: 16.56 kB / 479.1 MB, free: 16.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002535/0.4051, allocations: 12.66 kB / 479.1 MB, free: 16.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001084/0.4052, allocations: 54.88 kB / 479.1 MB, free: 16.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.058e-05/0.4052, allocations: 17.45 kB / 479.2 MB, free: 16.46 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001175/0.4064, allocations: 0.8945 MB / 480 MB, free: 15.73 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.4e-07/0.4064, allocations: 0 / 480 MB, free: 15.73 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006839/0.4071, allocations: 211.8 kB / 480.3 MB, free: 15.52 MB / 350.1 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.002163/0.4093, allocations: 2.441 MB / 482.7 MB, free: 13.22 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001257/0.4106, allocations: 0.9813 MB / 483.7 MB, free: 12.35 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.4106, allocations: 0 / 483.7 MB, free: 12.35 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005281/0.4111, allocations: 0.5057 MB / 484.2 MB, free: 11.89 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008246/0.4119, allocations: 94.81 kB / 484.3 MB, free: 11.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01582/0.4278, allocations: 12.96 MB / 497.2 MB, free: 15.02 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001079/0.4289, allocations: 1.303 MB / 498.5 MB, free: 13.69 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003153/0.4293, allocations: 76.36 kB / 498.6 MB, free: 13.61 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006774/0.4299, allocations: 0.5968 MB / 499.2 MB, free: 13.01 MB / 366.1 MB Notification: Performance of SimCode: time 1.432e-06/0.4299, allocations: 0 / 499.2 MB, free: 13.01 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03914/0.4691, allocations: 17.69 MB / 0.5048 GB, free: 11.43 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002668/0.4694, allocations: 196.8 kB / 0.505 GB, free: 11.17 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.004/2.474, allocations: 112 / 0.505 GB, free: 11.17 MB / 382.1 MB (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 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe 2>&1)