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/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_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/Complex 4.0.0+maint.om/package.mo): time 0.001105/0.001105, allocations: 176.2 kB / 7.649 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.361/1.361, allocations: 221.5 MB / 229.6 MB, free: 7.516 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.0009704/0.0009705, allocations: 93.25 kB / 280.5 MB, free: 5.27 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.189/0.189, allocations: 28.84 MB / 360.1 MB, free: 2.207 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.97e-05/1.982e-05, allocations: 2.109 kB / 423.9 MB, free: 32.1 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1091, allocations: 57.49 MB / 481.4 MB, free: 6.742 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3845/0.4937, allocations: 80.07 MB / 0.5483 GB, free: 10.62 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001587/0.4939, allocations: 63.98 kB / 0.5483 GB, free: 10.62 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03064/0.5245, allocations: 14.21 MB / 0.5622 GB, free: 6.09 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.5246, allocations: 0 / 0.5622 GB, free: 6.09 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.443e-05/0.5247, allocations: 34.78 kB / 0.5622 GB, free: 6.09 MB / 362.7 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.001489/0.5262, allocations: 1.372 MB / 0.5636 GB, free: 5.102 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.973e-05/0.5262, allocations: 11.52 kB / 0.5636 GB, free: 5.098 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002176/0.5264, allocations: 204.2 kB / 0.5638 GB, free: 4.988 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008776/0.5273, allocations: 0.7555 MB / 0.5645 GB, free: 4.52 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.478e-05/0.5274, allocations: 34.62 kB / 0.5646 GB, free: 4.52 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001146/0.5275, allocations: 65.64 kB / 0.5646 GB, free: 4.512 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001449/0.5289, allocations: 1.169 MB / 0.5658 GB, free: 4.301 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001436/0.5304, allocations: 1.105 MB / 0.5668 GB, free: 3.918 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.116e-05/0.5304, allocations: 3.984 kB / 0.5668 GB, free: 3.914 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.846e-05/0.5305, allocations: 7.969 kB / 0.5669 GB, free: 3.91 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.908e-05/0.5305, allocations: 22.41 kB / 0.5669 GB, free: 3.91 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004061/0.5346, allocations: 3.661 MB / 0.5704 GB, free: 1.883 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001724/0.5363, allocations: 1.517 MB / 0.5719 GB, free: 1.547 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006211/0.537, allocations: 0.5251 MB / 0.5724 GB, free: 1.445 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.072e-05/0.5371, allocations: 31.08 kB / 0.5725 GB, free: 1.438 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.409e-05/0.5371, allocations: 38.53 kB / 0.5725 GB, free: 1.395 MB / 362.7 MB Notification: Performance of pre-optimization done (n=67): time 2.314e-06/0.5371, allocations: 0 / 0.5725 GB, free: 1.395 MB / 362.7 MB Notification: Performance of matching and sorting (n=67): time 0.001881/0.539, allocations: 1.247 MB / 0.5737 GB, free: 428 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.006e-05/0.5391, allocations: 63.97 kB / 0.5738 GB, free: 352 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001196/0.5403, allocations: 0.9998 MB / 0.5748 GB, free: 15.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.056e-05/0.5403, allocations: 25.7 kB / 0.5748 GB, free: 15.54 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005148/0.5408, allocations: 0.7585 MB / 0.5755 GB, free: 15.12 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002117/0.5411, allocations: 219.6 kB / 0.5757 GB, free: 14.93 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.409e-05/0.5411, allocations: 0 / 0.5757 GB, free: 14.93 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001445/0.5413, allocations: 332.8 kB / 0.5761 GB, free: 14.61 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006446/0.5419, allocations: 498.3 kB / 0.5765 GB, free: 14.25 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007633/0.5427, allocations: 0.5853 MB / 0.5771 GB, free: 13.77 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009821/0.5437, allocations: 0.5459 MB / 0.5776 GB, free: 13.37 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.793e-06/0.5437, allocations: 0 / 0.5776 GB, free: 13.37 MB / 378.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.002114/0.5458, allocations: 1.325 MB / 0.5789 GB, free: 12.29 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.861e-05/0.5459, allocations: 17.61 kB / 0.5789 GB, free: 12.28 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.241e-05/0.5459, allocations: 8 kB / 0.579 GB, free: 12.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.308e-05/0.5459, allocations: 8 kB / 0.579 GB, free: 12.26 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006058/0.5465, allocations: 154.6 kB / 0.5791 GB, free: 12.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.46e-05/0.5465, allocations: 11.98 kB / 0.5791 GB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002572/0.5468, allocations: 31.53 kB / 0.5792 GB, free: 12.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001525/0.547, allocations: 70.23 kB / 0.5792 GB, free: 12.01 MB / 378.7 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 () * 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.0001659/0.5471, allocations: 116.1 kB / 0.5793 GB, free: 11.89 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001977/0.5491, allocations: 1.244 MB / 0.5805 GB, free: 10.89 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001775/0.5493, allocations: 150.1 kB / 0.5807 GB, free: 10.75 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002975/0.5523, allocations: 1.558 MB / 0.5822 GB, free: 9.523 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/0.5523, allocations: 8 kB / 0.5822 GB, free: 9.516 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.087e-05/0.5523, allocations: 3.984 kB / 0.5822 GB, free: 9.512 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.585e-06/0.5523, allocations: 0 / 0.5822 GB, free: 9.512 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003959/0.5563, allocations: 2.387 MB / 0.5846 GB, free: 7.629 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.432e-06/0.5563, allocations: 8 kB / 0.5846 GB, free: 7.621 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005796/0.5569, allocations: 127.8 kB / 0.5847 GB, free: 7.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.355e-05/0.5569, allocations: 4 kB / 0.5847 GB, free: 7.496 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.328e-05/0.557, allocations: 23.8 kB / 0.5847 GB, free: 7.477 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.48e-06/0.557, allocations: 0 / 0.5847 GB, free: 7.477 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.347e-06/0.557, allocations: 0 / 0.5847 GB, free: 7.477 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003069/0.5601, allocations: 2.165 MB / 0.5868 GB, free: 5.812 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002153/0.5604, allocations: 206 kB / 0.587 GB, free: 5.594 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001449/0.5605, allocations: 11.98 kB / 0.587 GB, free: 5.582 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002744/0.5608, allocations: 0 / 0.587 GB, free: 5.582 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00012/0.5609, allocations: 50.62 kB / 0.5871 GB, free: 5.539 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001253/0.5611, allocations: 70.97 kB / 0.5871 GB, free: 5.477 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001305/0.5624, allocations: 0.7838 MB / 0.5879 GB, free: 4.891 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5624, allocations: 0 / 0.5879 GB, free: 4.891 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007013/0.5631, allocations: 187 kB / 0.5881 GB, free: 4.707 MB / 378.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: 0 () * Number of discrete 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.002748/0.5658, allocations: 2.39 MB / 0.5904 GB, free: 2.637 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001295/0.5672, allocations: 0.9352 MB / 0.5913 GB, free: 1.891 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.5672, allocations: 0 / 0.5913 GB, free: 1.891 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005209/0.5677, allocations: 498.8 kB / 0.5918 GB, free: 1.504 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000552/0.5683, allocations: 63.39 kB / 0.5919 GB, free: 1.473 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004777/0.573, allocations: 2.404 MB / 0.5942 GB, free: 15.25 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001298/0.5744, allocations: 1.339 MB / 0.5955 GB, free: 13.92 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002752/0.5747, allocations: 80.3 kB / 0.5956 GB, free: 13.84 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007022/0.5754, allocations: 0.5785 MB / 0.5962 GB, free: 13.75 MB / 394.7 MB Notification: Performance of SimCode: time 1.102e-06/0.5754, allocations: 0 / 0.5962 GB, free: 13.75 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04843/0.6238, allocations: 16.34 MB / 0.6121 GB, free: 13.44 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000217/0.6241, allocations: 136.4 kB / 0.6123 GB, free: 13.24 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.806/3.431, allocations: 0 / 0.6123 GB, free: 13.24 MB / 410.7 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)