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.001144/0.001144, allocations: 98.77 kB / 15.05 MB, free: 1.105 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.001211/0.001211, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.308/1.308, allocations: 223.2 MB / 239.9 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3251/0.3251, allocations: 28.84 MB / 319.8 MB, free: 6.254 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005183/0.0005186, allocations: 11.98 kB / 387.9 MB, free: 3.453 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3418/0.3424, allocations: 57.47 MB / 445.3 MB, free: 32.88 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_2): time 0.003006/0.3455, allocations: 2.949 MB / 448.3 MB, free: 30.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001449/0.347, allocations: 0.6539 MB / 448.9 MB, free: 30.21 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000371/0.3473, allocations: 17.12 kB / 449 MB, free: 30.21 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000202/0.3475, allocations: 83.39 kB / 449 MB, free: 30.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003007/0.3479, allocations: 104.8 kB / 449.1 MB, free: 30.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005483/0.3484, allocations: 256.8 kB / 449.4 MB, free: 29.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005539/0.349, allocations: 0.5138 MB / 449.9 MB, free: 29.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005952/0.3496, allocations: 494.3 kB / 450.4 MB, free: 29.51 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001948/0.3498, allocations: 236.9 kB / 450.6 MB, free: 29.4 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002563/0.35, allocations: 306.2 kB / 450.9 MB, free: 29.24 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.148e-05/0.3501, allocations: 20.09 kB / 450.9 MB, free: 29.24 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001382/0.3503, allocations: 41.97 kB / 451 MB, free: 29.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002535/0.3505, allocations: 347.3 kB / 451.3 MB, free: 29.11 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001283/0.3507, allocations: 226.3 kB / 451.5 MB, free: 28.94 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006073/0.3513, allocations: 0.7935 MB / 452.3 MB, free: 28.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.3513, allocations: 0 / 452.3 MB, free: 28.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3513, allocations: 4 kB / 452.3 MB, free: 28.7 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.448e-05/0.3513, allocations: 0 / 452.3 MB, free: 28.7 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.001728/0.3531, allocations: 1.524 MB / 453.9 MB, free: 27.62 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/0.3531, allocations: 10.41 kB / 453.9 MB, free: 27.62 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001944/0.3533, allocations: 163.2 kB / 454 MB, free: 27.51 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002013/0.3535, allocations: 204.3 kB / 454.2 MB, free: 27.4 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007415/0.3543, allocations: 0.6814 MB / 454.9 MB, free: 26.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.346e-05/0.3543, allocations: 82.73 kB / 455 MB, free: 26.87 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.488e-05/0.3544, allocations: 108.2 kB / 455.1 MB, free: 26.83 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001277/0.3557, allocations: 1.156 MB / 456.3 MB, free: 26.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.12e-05/0.3558, allocations: 0 / 456.3 MB, free: 26.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.985e-05/0.3558, allocations: 43 kB / 456.3 MB, free: 26.31 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.697e-05/0.3559, allocations: 33.89 kB / 456.3 MB, free: 26.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001239/0.3571, allocations: 1.095 MB / 457.4 MB, free: 26.03 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004448/0.3616, allocations: 3.697 MB / 461.1 MB, free: 23.99 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001641/0.3632, allocations: 1.336 MB / 462.5 MB, free: 23.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.939e-05/0.3633, allocations: 31.16 kB / 462.5 MB, free: 23.65 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.738e-05/0.3634, allocations: 37.69 kB / 462.5 MB, free: 23.61 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 2.866e-06/0.3634, allocations: 1.406 kB / 462.5 MB, free: 23.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=67): time 0.002051/0.3654, allocations: 1.517 MB / 464.1 MB, free: 23.19 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.347e-05/0.3655, allocations: 62.62 kB / 464.1 MB, free: 23.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001597/0.3671, allocations: 1.273 MB / 465.4 MB, free: 22.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.755e-05/0.3671, allocations: 39.89 kB / 465.4 MB, free: 22.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000527/0.3677, allocations: 0.7702 MB / 466.2 MB, free: 22.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00019/0.3679, allocations: 231.9 kB / 466.4 MB, free: 21.86 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.429e-05/0.3679, allocations: 14.12 kB / 466.4 MB, free: 21.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.192e-05/0.368, allocations: 332.5 kB / 466.8 MB, free: 21.53 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005833/0.3686, allocations: 436.1 kB / 467.2 MB, free: 21.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006244/0.3692, allocations: 0.5179 MB / 467.7 MB, free: 21.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005907/0.3698, allocations: 475.2 kB / 468.2 MB, free: 21.11 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.3698, allocations: 0 / 468.2 MB, free: 21.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001583/0.3714, allocations: 1.175 MB / 469.3 MB, free: 20.74 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.545e-05/0.3714, allocations: 6.766 kB / 469.3 MB, free: 20.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.111e-05/0.3715, allocations: 2.75 kB / 469.4 MB, free: 20.74 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.46e-05/0.3715, allocations: 6.125 kB / 469.4 MB, free: 20.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004864/0.372, allocations: 137.3 kB / 469.5 MB, free: 20.72 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.36e-05/0.372, allocations: 5.062 kB / 469.5 MB, free: 20.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003438/0.3724, allocations: 52.75 kB / 469.5 MB, free: 20.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.082e-05/0.3724, allocations: 28.25 kB / 469.6 MB, free: 20.68 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005997/0.373, allocations: 386.5 kB / 470 MB, free: 20.45 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001316/0.3732, allocations: 137 kB / 470.1 MB, free: 20.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001594/0.3748, allocations: 1.193 MB / 471.3 MB, free: 20.01 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.008e-05/0.3748, allocations: 6.844 kB / 471.3 MB, free: 20.01 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.466e-06/0.3748, allocations: 0.7031 kB / 471.3 MB, free: 20.01 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.078e-05/0.3748, allocations: 6.906 kB / 471.3 MB, free: 20 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003166/0.378, allocations: 2.361 MB / 473.7 MB, free: 19.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.378, allocations: 0 / 473.7 MB, free: 19.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004627/0.3785, allocations: 112.9 kB / 473.8 MB, free: 19.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.134e-05/0.3785, allocations: 2.719 kB / 473.8 MB, free: 19.12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.384e-05/0.3785, allocations: 17.8 kB / 473.8 MB, free: 19.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.065e-06/0.3785, allocations: 2.219 kB / 473.8 MB, free: 19.11 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.3785, allocations: 1.25 kB / 473.8 MB, free: 19.11 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002273/0.3808, allocations: 1.872 MB / 475.7 MB, free: 18.49 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001978/0.381, allocations: 196.3 kB / 475.9 MB, free: 18.31 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.055e-05/0.3811, allocations: 12.2 kB / 475.9 MB, free: 18.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002196/0.3813, allocations: 15.84 kB / 475.9 MB, free: 18.29 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.483e-05/0.3815, allocations: 37.94 kB / 475.9 MB, free: 18.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.32e-05/0.3815, allocations: 18.66 kB / 475.9 MB, free: 18.29 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001349/0.3828, allocations: 0.8829 MB / 476.8 MB, free: 17.97 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3829, allocations: 4 kB / 476.8 MB, free: 17.97 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000654/0.3835, allocations: 208.2 kB / 477 MB, free: 17.9 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001963/0.3855, allocations: 2.447 MB / 479.5 MB, free: 15.71 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001071/0.3866, allocations: 0.9809 MB / 480.5 MB, free: 14.83 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3866, allocations: 0 / 480.5 MB, free: 14.83 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004614/0.387, allocations: 0.5065 MB / 481 MB, free: 14.38 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005122/0.3876, allocations: 78.16 kB / 481 MB, free: 14.31 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01007/0.3976, allocations: 11.33 MB / 492.4 MB, free: 3.473 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006286/0.3983, allocations: 1.343 MB / 493.7 MB, free: 2.105 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002258/0.3986, allocations: 72.36 kB / 493.8 MB, free: 2.031 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000455/0.399, allocations: 0.593 MB / 494.4 MB, free: 1.438 MB / 350.1 MB Notification: Performance of SimCode: time 1.153e-06/0.399, allocations: 0 / 494.4 MB, free: 1.438 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03307/0.4321, allocations: 17.2 MB / 0.4996 GB, free: 356 kB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001905/0.4324, allocations: 189.9 kB / 0.4998 GB, free: 96 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.13/2.563, allocations: 0 / 0.4998 GB, free: 96 kB / 366.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/linux/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) Environment - environmentSimulation: