Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) Running command: "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_6,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_6,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001645/0.001645, allocations: 175 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.569/1.569, allocations: 221.4 MB / 234.6 MB, free: 14.39 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001225/0.001225, allocations: 90.45 kB / 285.6 MB, free: 12.98 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.5367/0.5367, allocations: 28.82 MB / 365.3 MB, free: 42 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.438e-05/3.459e-05, allocations: 4 kB / 430.8 MB, free: 4.328 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1519/0.1519, allocations: 57.48 MB / 488.2 MB, free: 10.78 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5137/0.6657, allocations: 80.85 MB / 0.5557 GB, free: 24.4 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001858/0.666, allocations: 64.33 kB / 0.5558 GB, free: 24.38 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03574/0.7017, allocations: 14.43 MB / 0.5699 GB, free: 15.49 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.7018, allocations: 0 / 0.5699 GB, free: 15.49 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001256/0.7019, allocations: 32 kB / 0.5699 GB, free: 15.46 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: 265 * Number of variables: 265 Notification: Performance of Generate backend data structure: time 0.003011/0.7049, allocations: 1.408 MB / 0.5713 GB, free: 14.11 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.679e-05/0.705, allocations: 12.03 kB / 0.5713 GB, free: 14.09 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005252/0.7055, allocations: 176.2 kB / 0.5715 GB, free: 13.97 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004785/0.706, allocations: 201.4 kB / 0.5717 GB, free: 13.77 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001335/0.7073, allocations: 0.7629 MB / 0.5724 GB, free: 13.04 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.146e-05/0.7074, allocations: 86.27 kB / 0.5725 GB, free: 12.99 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000194/0.7076, allocations: 107.9 kB / 0.5726 GB, free: 12.92 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002068/0.7097, allocations: 1.282 MB / 0.5739 GB, free: 11.92 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.593e-05/0.7097, allocations: 4.562 kB / 0.5739 GB, free: 11.92 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.453e-05/0.7098, allocations: 45.44 kB / 0.5739 GB, free: 11.91 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.065e-05/0.7099, allocations: 28 kB / 0.5739 GB, free: 11.88 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001804/0.7117, allocations: 1.256 MB / 0.5752 GB, free: 10.94 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005802/0.7175, allocations: 3.893 MB / 0.579 GB, free: 7.617 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001839/0.7194, allocations: 1.595 MB / 0.5805 GB, free: 6.41 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006285/0.72, allocations: 0.5557 MB / 0.5811 GB, free: 6.004 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.694e-05/0.7201, allocations: 28.05 kB / 0.5811 GB, free: 5.98 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007991/0.7209, allocations: 0.6618 MB / 0.5817 GB, free: 5.453 MB / 394.7 MB Notification: Performance of pre-optimization done (n=72): time 3.407e-06/0.7209, allocations: 3.984 kB / 0.5817 GB, free: 5.449 MB / 394.7 MB Notification: Performance of matching and sorting (n=72): time 0.001634/0.7225, allocations: 1.302 MB / 0.583 GB, free: 4.414 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.291e-05/0.7226, allocations: 63.56 kB / 0.5831 GB, free: 4.34 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001212/0.7238, allocations: 1.096 MB / 0.5841 GB, free: 3.473 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.211e-05/0.7239, allocations: 38.7 kB / 0.5842 GB, free: 3.438 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004494/0.7243, allocations: 0.7758 MB / 0.5849 GB, free: 3.016 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000163/0.7245, allocations: 246.5 kB / 0.5852 GB, free: 2.805 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.357e-05/0.7246, allocations: 14.88 kB / 0.5852 GB, free: 2.801 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 5.752e-05/0.7246, allocations: 338.8 kB / 0.5855 GB, free: 2.477 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006028/0.7252, allocations: 0.5013 MB / 0.586 GB, free: 2.105 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006235/0.7259, allocations: 0.6195 MB / 0.5866 GB, free: 1.594 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006498/0.7265, allocations: 0.5504 MB / 0.5871 GB, free: 1.184 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.7265, allocations: 0 / 0.5871 GB, free: 1.184 MB / 394.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001587/0.7281, allocations: 1.387 MB / 0.5885 GB, free: 80 kB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.373e-05/0.7281, allocations: 8.344 kB / 0.5885 GB, free: 72 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-06/0.7282, allocations: 8 kB / 0.5885 GB, free: 64 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/0.7282, allocations: 7.938 kB / 0.5885 GB, free: 56 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005661/0.7287, allocations: 163.4 kB / 0.5887 GB, free: 15.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.19e-05/0.7288, allocations: 8 kB / 0.5887 GB, free: 15.89 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003259/0.7291, allocations: 57.12 kB / 0.5887 GB, free: 15.85 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000116/0.7292, allocations: 79.66 kB / 0.5888 GB, free: 15.78 MB / 410.7 MB Warning: Assuming fixed start value for the following 2 variables: min_QL:DISCRETE(start = 1.0 fixed = false ) "Minimum quality of life" type: Real min_dPop:DISCRETE(unit = "1/yr" fixed = false ) "Minimal derivative of population" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$PRE.min_dPop,min_dPop,$PRE.min_QL,min_QL,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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 89 * 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.0002004/0.7294, allocations: 153.5 kB / 0.589 GB, free: 15.64 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001519/0.7296, allocations: 148.7 kB / 0.5891 GB, free: 15.5 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002571/0.7322, allocations: 1.633 MB / 0.5907 GB, free: 14.24 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.694e-06/0.7322, allocations: 8 kB / 0.5907 GB, free: 14.23 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.636e-06/0.7322, allocations: 0 / 0.5907 GB, free: 14.23 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.925e-06/0.7322, allocations: 3.984 kB / 0.5907 GB, free: 14.23 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003225/0.7355, allocations: 2.617 MB / 0.5933 GB, free: 12.16 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.439e-06/0.7355, allocations: 4 kB / 0.5933 GB, free: 12.16 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005326/0.736, allocations: 135.1 kB / 0.5934 GB, free: 12.03 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.145e-06/0.736, allocations: 4 kB / 0.5934 GB, free: 12.02 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.585e-05/0.7361, allocations: 31.05 kB / 0.5934 GB, free: 12 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.7361, allocations: 0 / 0.5934 GB, free: 12 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.7361, allocations: 4 kB / 0.5934 GB, free: 12 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002708/0.7388, allocations: 2.249 MB / 0.5956 GB, free: 10.28 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005264/0.7394, allocations: 335.4 kB / 0.5959 GB, free: 9.969 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001016/0.7395, allocations: 10.75 kB / 0.596 GB, free: 9.969 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002576/0.7398, allocations: 17.36 kB / 0.596 GB, free: 9.961 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001175/0.7399, allocations: 56.22 kB / 0.596 GB, free: 9.906 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001007/0.74, allocations: 70.53 kB / 0.5961 GB, free: 9.844 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001175/0.7412, allocations: 0.8723 MB / 0.5969 GB, free: 9.176 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7412, allocations: 0 / 0.5969 GB, free: 9.176 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006487/0.7418, allocations: 221.4 kB / 0.5972 GB, free: 8.98 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: 3 ($whenCondition1,min_dPop,min_QL) * Number of discrete states: 2 (min_dPop,min_QL) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.002149/0.744, allocations: 2.484 MB / 0.5996 GB, free: 6.852 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001252/0.7453, allocations: 1.007 MB / 0.6006 GB, free: 6.043 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.7453, allocations: 0 / 0.6006 GB, free: 6.043 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006458/0.7459, allocations: 0.5124 MB / 0.6011 GB, free: 5.637 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004269/0.7464, allocations: 80.58 kB / 0.6011 GB, free: 5.598 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003946/0.7503, allocations: 2.508 MB / 0.6036 GB, free: 3.312 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000845/0.7512, allocations: 1.344 MB / 0.6049 GB, free: 1.984 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002625/0.7515, allocations: 80.53 kB / 0.605 GB, free: 1.906 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005234/0.752, allocations: 0.5975 MB / 0.6056 GB, free: 1.652 MB / 410.7 MB Notification: Performance of SimCode: time 6.31e-07/0.752, allocations: 4 kB / 0.6056 GB, free: 1.648 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03476/0.7868, allocations: 17.38 MB / 0.6226 GB, free: 392 kB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001722/0.787, allocations: 162.1 kB / 0.6227 GB, free: 148 kB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.29/3.077, allocations: 0 / 0.6227 GB, free: 148 kB / 426.7 MB (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6_fmu --startTime=1900 --stopTime=2100 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe 2>&1)