Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.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_1,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_1,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1",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.001763/0.001763, allocations: 174.5 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.59/1.59, 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.001201/0.001201, allocations: 94.61 kB / 285.6 MB, free: 12.97 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.5074/0.5074, allocations: 28.82 MB / 365.3 MB, free: 42.03 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.157e-05/4.16e-05, allocations: 4 kB / 430.7 MB, free: 4.34 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1509/0.151, allocations: 57.49 MB / 488.2 MB, free: 10.79 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5055/0.6565, allocations: 80.62 MB / 0.5555 GB, free: 24.49 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001539/0.6567, allocations: 61.06 kB / 0.5556 GB, free: 24.47 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03263/0.6894, allocations: 14.13 MB / 0.5694 GB, free: 15.92 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.6894, allocations: 0 / 0.5694 GB, free: 15.92 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.168e-05/0.6895, allocations: 28 kB / 0.5694 GB, free: 15.89 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: 259 * Number of variables: 259 Notification: Performance of Generate backend data structure: time 0.001592/0.6911, allocations: 1.343 MB / 0.5707 GB, free: 14.6 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.6911, allocations: 16.03 kB / 0.5707 GB, free: 14.58 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002283/0.6914, allocations: 179.4 kB / 0.5709 GB, free: 14.46 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002035/0.6916, allocations: 185.7 kB / 0.5711 GB, free: 14.28 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008605/0.6925, allocations: 0.7436 MB / 0.5718 GB, free: 13.56 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.197e-05/0.6925, allocations: 77.16 kB / 0.5719 GB, free: 13.52 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001263/0.6926, allocations: 112.3 kB / 0.572 GB, free: 13.45 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001608/0.6943, allocations: 1.229 MB / 0.5732 GB, free: 12.48 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.903e-05/0.6943, allocations: 0 / 0.5732 GB, free: 12.48 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.247e-05/0.6944, allocations: 47.67 kB / 0.5732 GB, free: 12.47 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.82e-05/0.6944, allocations: 28 kB / 0.5733 GB, free: 12.45 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001463/0.6959, allocations: 1.188 MB / 0.5744 GB, free: 11.55 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00427/0.7002, allocations: 3.796 MB / 0.5781 GB, free: 8.309 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002037/0.7022, allocations: 1.49 MB / 0.5796 GB, free: 7.184 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006474/0.7029, allocations: 0.5164 MB / 0.5801 GB, free: 6.809 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001018/0.703, allocations: 32.06 kB / 0.5801 GB, free: 6.781 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.027e-05/0.703, allocations: 41.12 kB / 0.5802 GB, free: 6.734 MB / 394.7 MB Notification: Performance of pre-optimization done (n=66): time 4.278e-06/0.703, allocations: 0 / 0.5802 GB, free: 6.734 MB / 394.7 MB Notification: Performance of matching and sorting (n=66): time 0.001749/0.7048, allocations: 1.202 MB / 0.5813 GB, free: 5.777 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.132e-05/0.7048, allocations: 59.97 kB / 0.5814 GB, free: 5.707 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001353/0.7062, allocations: 1.043 MB / 0.5824 GB, free: 4.879 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.532e-05/0.7063, allocations: 38.86 kB / 0.5824 GB, free: 4.844 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004109/0.7067, allocations: 0.7504 MB / 0.5832 GB, free: 4.434 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001522/0.7069, allocations: 229.5 kB / 0.5834 GB, free: 4.234 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.453e-05/0.7069, allocations: 16.81 kB / 0.5834 GB, free: 4.23 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.893e-05/0.707, allocations: 331.3 kB / 0.5837 GB, free: 3.91 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005566/0.7076, allocations: 484 kB / 0.5842 GB, free: 3.562 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005861/0.7082, allocations: 0.5707 MB / 0.5848 GB, free: 3.094 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006444/0.7088, allocations: 0.5169 MB / 0.5853 GB, free: 2.703 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.648e-06/0.7088, allocations: 3.938 kB / 0.5853 GB, free: 2.699 MB / 394.7 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001483/0.7103, allocations: 1.297 MB / 0.5865 GB, free: 1.664 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.7103, allocations: 8 kB / 0.5865 GB, free: 1.656 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.7104, allocations: 4 kB / 0.5865 GB, free: 1.652 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.723e-05/0.7104, allocations: 4 kB / 0.5865 GB, free: 1.648 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00047/0.7108, allocations: 149.4 kB / 0.5867 GB, free: 1.508 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.169e-05/0.7109, allocations: 7.938 kB / 0.5867 GB, free: 1.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002459/0.7111, allocations: 49.12 kB / 0.5867 GB, free: 1.461 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.744e-05/0.7112, allocations: 73.91 kB / 0.5868 GB, free: 1.395 MB / 394.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 (81): * Single equations (assignments): 81 * 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.0001172/0.7113, allocations: 144.5 kB / 0.5869 GB, free: 1.27 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001312/0.7115, allocations: 134.3 kB / 0.5871 GB, free: 1.137 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002164/0.7137, allocations: 1.522 MB / 0.5886 GB, free: 15.96 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.837e-06/0.7137, allocations: 8 kB / 0.5886 GB, free: 15.95 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.7137, allocations: 0 / 0.5886 GB, free: 15.95 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.7137, allocations: 3.984 kB / 0.5886 GB, free: 15.95 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003298/0.717, allocations: 2.447 MB / 0.591 GB, free: 14.01 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.717, allocations: 0 / 0.591 GB, free: 14.01 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005195/0.7176, allocations: 139.1 kB / 0.5911 GB, free: 13.88 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.454e-06/0.7176, allocations: 4 kB / 0.5911 GB, free: 13.88 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.292e-05/0.7176, allocations: 30.3 kB / 0.5911 GB, free: 13.86 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.327e-06/0.7176, allocations: 0 / 0.5911 GB, free: 13.86 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.7177, allocations: 0 / 0.5911 GB, free: 13.86 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00249/0.7201, allocations: 2.086 MB / 0.5932 GB, free: 12.26 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001879/0.7203, allocations: 199.2 kB / 0.5934 GB, free: 12.04 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001023/0.7205, allocations: 18.55 kB / 0.5934 GB, free: 12.04 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002248/0.7207, allocations: 14.75 kB / 0.5934 GB, free: 12.03 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.241e-05/0.7208, allocations: 51.75 kB / 0.5934 GB, free: 11.98 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.907e-05/0.7209, allocations: 62.73 kB / 0.5935 GB, free: 11.93 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001105/0.722, allocations: 0.8321 MB / 0.5943 GB, free: 11.29 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.722, allocations: 0 / 0.5943 GB, free: 11.29 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005793/0.7226, allocations: 207.1 kB / 0.5945 GB, free: 11.1 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (66): * Single equations (assignments): 66 * 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.002005/0.7246, allocations: 2.353 MB / 0.5968 GB, free: 9.082 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001035/0.7257, allocations: 0.9265 MB / 0.5977 GB, free: 8.332 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.7257, allocations: 0 / 0.5977 GB, free: 8.332 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004547/0.7261, allocations: 491.7 kB / 0.5982 GB, free: 7.945 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000421/0.7266, allocations: 73.23 kB / 0.5982 GB, free: 7.914 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003784/0.7304, allocations: 2.368 MB / 0.6006 GB, free: 5.754 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001058/0.7314, allocations: 1.33 MB / 0.6019 GB, free: 4.438 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002491/0.7317, allocations: 68.36 kB / 0.6019 GB, free: 4.371 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005321/0.7322, allocations: 0.5636 MB / 0.6025 GB, free: 4.285 MB / 410.7 MB Notification: Performance of SimCode: time 1.182e-06/0.7322, allocations: 4 kB / 0.6025 GB, free: 4.281 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0335/0.7658, allocations: 16.53 MB / 0.6186 GB, free: 3.891 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003159/0.7661, allocations: 153.8 kB / 0.6188 GB, free: 3.66 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.243/3.009, allocations: 4.062 kB / 0.6188 GB, free: 3.656 MB / 426.7 MB (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1_fmu --startTime=1900 --stopTime=2100 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe 2>&1)