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.006046/0.006045, allocations: 170.2 kB / 15.11 MB, free: 6.039 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.404/1.404, allocations: 223.2 MB / 239 MB, free: 1.789 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001004/0.001004, allocations: 98.52 kB / 290.2 MB, free: 13.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.223/0.223, allocations: 28.84 MB / 370.1 MB, free: 13.91 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005419/0.0005419, allocations: 8 kB / 438.2 MB, free: 70.66 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1402/0.1408, allocations: 57.47 MB / 495.7 MB, free: 13.15 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4372/0.5781, allocations: 80.93 MB / 0.5631 GB, free: 10.76 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000222/0.5784, allocations: 60.22 kB / 0.5631 GB, free: 10.73 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03325/0.6116, allocations: 14.46 MB / 0.5773 GB, free: 14.49 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.6117, allocations: 3.844 kB / 0.5773 GB, free: 14.49 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001331/0.6118, allocations: 28 kB / 0.5773 GB, free: 14.46 MB / 378.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.003501/0.6153, allocations: 1.625 MB / 0.5789 GB, free: 12.88 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.913e-05/0.6154, allocations: 12.03 kB / 0.5789 GB, free: 12.87 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004785/0.6159, allocations: 181.1 kB / 0.5791 GB, free: 12.75 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000491/0.6164, allocations: 205.4 kB / 0.5793 GB, free: 12.54 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001617/0.618, allocations: 0.7696 MB / 0.58 GB, free: 11.8 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.251e-05/0.6181, allocations: 85.7 kB / 0.5801 GB, free: 11.75 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002243/0.6183, allocations: 111 kB / 0.5802 GB, free: 11.68 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002387/0.6207, allocations: 1.298 MB / 0.5815 GB, free: 10.66 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.376e-05/0.6208, allocations: 3.938 kB / 0.5815 GB, free: 10.66 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.475e-05/0.6209, allocations: 44.42 kB / 0.5815 GB, free: 10.65 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.754e-05/0.6209, allocations: 28 kB / 0.5815 GB, free: 10.62 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002415/0.6233, allocations: 1.274 MB / 0.5828 GB, free: 9.668 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007037/0.6304, allocations: 3.905 MB / 0.5866 GB, free: 6.332 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002471/0.6329, allocations: 1.603 MB / 0.5882 GB, free: 5.129 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000113/0.633, allocations: 28.8 kB / 0.5882 GB, free: 5.105 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001077/0.6341, allocations: 0.6684 MB / 0.5888 GB, free: 4.574 MB / 378.7 MB Notification: Performance of pre-optimization done (n=72): time 2.755e-06/0.6341, allocations: 0 / 0.5888 GB, free: 4.574 MB / 378.7 MB Notification: Performance of matching and sorting (n=72): time 0.003125/0.6372, allocations: 1.835 MB / 0.5906 GB, free: 3.152 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.302e-05/0.6373, allocations: 64.06 kB / 0.5907 GB, free: 3.078 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002145/0.6395, allocations: 1.106 MB / 0.5918 GB, free: 2.203 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.236e-05/0.6396, allocations: 39.33 kB / 0.5918 GB, free: 2.168 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008485/0.6404, allocations: 0.7835 MB / 0.5926 GB, free: 1.738 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002859/0.6407, allocations: 234.9 kB / 0.5928 GB, free: 1.535 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.447e-05/0.6408, allocations: 14.81 kB / 0.5928 GB, free: 1.531 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001873/0.641, allocations: 335.1 kB / 0.5931 GB, free: 1.211 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007907/0.6418, allocations: 0.5123 MB / 0.5936 GB, free: 0.8281 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008607/0.6427, allocations: 0.6387 MB / 0.5943 GB, free: 304 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008996/0.6436, allocations: 0.554 MB / 0.5948 GB, free: 15.9 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.6436, allocations: 0 / 0.5948 GB, free: 15.9 MB / 394.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002084/0.6457, allocations: 1.407 MB / 0.5962 GB, free: 14.8 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.612e-05/0.6457, allocations: 8 kB / 0.5962 GB, free: 14.79 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/0.6457, allocations: 4 kB / 0.5962 GB, free: 14.79 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.377e-05/0.6458, allocations: 4 kB / 0.5962 GB, free: 14.79 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005939/0.6464, allocations: 159.5 kB / 0.5963 GB, free: 14.63 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.649e-05/0.6464, allocations: 15.92 kB / 0.5964 GB, free: 14.62 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004081/0.6468, allocations: 50.53 kB / 0.5964 GB, free: 14.58 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001498/0.647, allocations: 75.86 kB / 0.5965 GB, free: 14.51 MB / 394.7 MB Warning: Assuming fixed start value for the following 2 variables: min_QL:DISCRETE(start = 1.0 fixed = true ) "Minimum quality of life" type: Real min_dPop:DISCRETE(unit = "1/yr" fixed = true ) "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 () * Number of clocked 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.0009106/0.6479, allocations: 386.8 kB / 0.5969 GB, free: 14.21 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002454/0.6481, allocations: 138.2 kB / 0.597 GB, free: 14.07 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002871/0.651, allocations: 1.659 MB / 0.5986 GB, free: 12.81 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.678e-06/0.651, allocations: 8 kB / 0.5986 GB, free: 12.8 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/0.6511, allocations: 0 / 0.5986 GB, free: 12.8 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.316e-05/0.6511, allocations: 7.969 kB / 0.5986 GB, free: 12.79 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004027/0.6551, allocations: 2.617 MB / 0.6012 GB, free: 10.74 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.6551, allocations: 3.938 kB / 0.6012 GB, free: 10.74 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005749/0.6557, allocations: 135 kB / 0.6013 GB, free: 10.61 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.652e-06/0.6557, allocations: 0 / 0.6013 GB, free: 10.61 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.106e-05/0.6558, allocations: 27.67 kB / 0.6013 GB, free: 10.59 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.911e-06/0.6558, allocations: 8 kB / 0.6013 GB, free: 10.58 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.6558, allocations: 0 / 0.6013 GB, free: 10.58 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003077/0.6589, allocations: 2.268 MB / 0.6036 GB, free: 8.863 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006384/0.6596, allocations: 333.9 kB / 0.6039 GB, free: 8.555 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001598/0.6597, allocations: 19.81 kB / 0.6039 GB, free: 8.547 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002856/0.66, allocations: 10.75 kB / 0.6039 GB, free: 8.543 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001367/0.6602, allocations: 62.95 kB / 0.604 GB, free: 8.488 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001122/0.6603, allocations: 69.55 kB / 0.604 GB, free: 8.426 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00125/0.6616, allocations: 0.887 MB / 0.6049 GB, free: 7.746 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.11e-07/0.6616, allocations: 0 / 0.6049 GB, free: 7.746 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007487/0.6623, allocations: 220.1 kB / 0.6051 GB, free: 7.551 MB / 394.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) * Number of clocked states: 0 () * 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.00273/0.6651, allocations: 2.507 MB / 0.6076 GB, free: 5.422 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001489/0.6666, allocations: 1.014 MB / 0.6085 GB, free: 4.473 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.6666, allocations: 4 kB / 0.6085 GB, free: 4.469 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008184/0.6674, allocations: 0.519 MB / 0.6091 GB, free: 3.953 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006772/0.6681, allocations: 88.83 kB / 0.6091 GB, free: 3.867 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01763/0.6857, allocations: 11.77 MB / 0.6206 GB, free: 7.715 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001437/0.6872, allocations: 1.35 MB / 0.6219 GB, free: 6.336 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003448/0.6876, allocations: 76.55 kB / 0.622 GB, free: 6.258 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007798/0.6884, allocations: 0.593 MB / 0.6226 GB, free: 5.664 MB / 410.7 MB Notification: Performance of SimCode: time 4.198e-06/0.6884, allocations: 112 / 0.6226 GB, free: 5.664 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0438/0.7322, allocations: 17.49 MB / 0.6397 GB, free: 4.273 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002038/0.7325, allocations: 172.7 kB / 0.6398 GB, free: 4.039 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.605/3.338, allocations: 0 / 0.6398 GB, free: 4.039 MB / 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)