Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.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_4,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_4,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4",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.001241/0.001241, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001351/0.001351, allocations: 188.9 kB / 16.25 MB, free: 6.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.292/1.292, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2539/0.2539, allocations: 28.81 MB / 318.9 MB, free: 5.859 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001186, allocations: 67.84 kB / 386.2 MB, free: 3.848 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.224/0.2252, allocations: 56.41 MB / 442.6 MB, free: 39.68 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.003046/0.2283, allocations: 3.65 MB / 446.3 MB, free: 37.41 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009085/0.2292, allocations: 0.6709 MB / 446.9 MB, free: 37.18 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002525/0.2294, allocations: 14.19 kB / 447 MB, free: 37.18 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002897/0.2297, allocations: 132.8 kB / 447.1 MB, free: 37.13 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000249/0.23, allocations: 97.78 kB / 447.2 MB, free: 37.09 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004534/0.2305, allocations: 311.6 kB / 447.5 MB, free: 37.08 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005084/0.231, allocations: 0.8693 MB / 448.4 MB, free: 36.98 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005349/0.2315, allocations: 0.6429 MB / 449 MB, free: 36.82 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001547/0.2317, allocations: 338.7 kB / 449.3 MB, free: 36.64 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002008/0.2319, allocations: 455.8 kB / 449.8 MB, free: 36.37 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.709e-05/0.232, allocations: 85.28 kB / 449.9 MB, free: 36.37 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001287/0.2321, allocations: 110.1 kB / 450 MB, free: 36.37 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002066/0.2323, allocations: 466 kB / 450.4 MB, free: 36.15 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002318/0.2326, allocations: 0.6331 MB / 451.1 MB, free: 35.66 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005853/0.2332, allocations: 1.215 MB / 452.3 MB, free: 35.04 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.2332, allocations: 0 / 452.3 MB, free: 35.04 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.2332, allocations: 2.812 kB / 452.3 MB, free: 35.04 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.414e-05/0.2332, allocations: 0 / 452.3 MB, free: 35.04 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 290 * Number of variables: 290 Notification: Performance of Generate backend data structure: time 0.001436/0.2346, allocations: 1.819 MB / 454.1 MB, free: 33.76 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.179e-05/0.2347, allocations: 10.94 kB / 454.1 MB, free: 33.76 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000147/0.2348, allocations: 182.6 kB / 454.3 MB, free: 33.64 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001483/0.235, allocations: 204.8 kB / 454.5 MB, free: 33.53 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005064/0.2355, allocations: 0.7634 MB / 455.2 MB, free: 32.95 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.071e-05/0.2355, allocations: 82.25 kB / 455.3 MB, free: 32.91 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.007e-05/0.2356, allocations: 109.2 kB / 455.4 MB, free: 32.88 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001249/0.2369, allocations: 1.291 MB / 456.7 MB, free: 32.35 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.169e-05/0.2369, allocations: 3.938 kB / 456.7 MB, free: 32.35 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.976e-05/0.237, allocations: 42.97 kB / 456.8 MB, free: 32.32 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.751e-05/0.237, allocations: 52.97 kB / 456.8 MB, free: 32.31 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001147/0.2382, allocations: 1.237 MB / 458.1 MB, free: 32.01 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002924/0.2411, allocations: 3.949 MB / 462 MB, free: 29.83 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001066/0.2422, allocations: 1.362 MB / 463.4 MB, free: 29.47 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003973/0.2426, allocations: 498.1 kB / 463.9 MB, free: 29.34 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.359e-05/0.2427, allocations: 31.84 kB / 463.9 MB, free: 29.33 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.448e-05/0.2427, allocations: 46.88 kB / 463.9 MB, free: 29.29 MB / 366.1 MB Notification: Performance of pre-optimization done (n=70): time 1.633e-06/0.2427, allocations: 0 / 463.9 MB, free: 29.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=70): time 0.001365/0.2441, allocations: 1.554 MB / 465.5 MB, free: 28.87 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.786e-05/0.2441, allocations: 90.33 kB / 465.6 MB, free: 28.77 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009637/0.2451, allocations: 1.37 MB / 466.9 MB, free: 28.29 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.926e-05/0.2451, allocations: 36.33 kB / 467 MB, free: 28.25 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000354/0.2455, allocations: 0.8511 MB / 467.8 MB, free: 27.59 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000107/0.2456, allocations: 240.8 kB / 468.1 MB, free: 27.4 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001473/0.2457, allocations: 159.7 kB / 468.2 MB, free: 27.32 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.641e-05/0.2458, allocations: 336 kB / 468.6 MB, free: 27 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005325/0.2463, allocations: 479.6 kB / 469 MB, free: 26.89 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006528/0.247, allocations: 0.7182 MB / 469.7 MB, free: 26.48 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001121/0.2481, allocations: 1.237 MB / 471 MB, free: 25.88 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/0.2481, allocations: 3.344 kB / 471 MB, free: 25.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.00143/0.2496, allocations: 1.388 MB / 472.4 MB, free: 25.44 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.826e-05/0.2496, allocations: 11.72 kB / 472.4 MB, free: 25.44 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.2496, allocations: 8.75 kB / 472.4 MB, free: 25.44 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.168e-05/0.2496, allocations: 12.06 kB / 472.4 MB, free: 25.44 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005066/0.2501, allocations: 183.5 kB / 472.6 MB, free: 25.42 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.761e-05/0.2502, allocations: 23.98 kB / 472.6 MB, free: 25.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002993/0.2505, allocations: 83.25 kB / 472.7 MB, free: 25.35 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.232e-05/0.2505, allocations: 41.75 kB / 472.7 MB, free: 25.34 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * 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 (109): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003555/0.2509, allocations: 409.6 kB / 473.1 MB, free: 25.12 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001334/0.251, allocations: 152.8 kB / 473.3 MB, free: 25.03 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001327/0.2524, allocations: 1.246 MB / 474.5 MB, free: 24.66 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.043e-06/0.2524, allocations: 7.75 kB / 474.5 MB, free: 24.66 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.2524, allocations: 0 / 474.5 MB, free: 24.66 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/0.2524, allocations: 4.422 kB / 474.5 MB, free: 24.66 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002159/0.2546, allocations: 2.41 MB / 476.9 MB, free: 23.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.2546, allocations: 3.938 kB / 476.9 MB, free: 23.76 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004148/0.255, allocations: 123.5 kB / 477.1 MB, free: 23.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.255, allocations: 2.75 kB / 477.1 MB, free: 23.75 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.256e-05/0.2551, allocations: 14.88 kB / 477.1 MB, free: 23.74 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.2551, allocations: 6.75 kB / 477.1 MB, free: 23.74 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.2551, allocations: 0 / 477.1 MB, free: 23.74 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001713/0.2568, allocations: 1.99 MB / 479.1 MB, free: 23.04 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001224/0.2569, allocations: 208 kB / 479.3 MB, free: 22.86 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.815e-05/0.257, allocations: 16.09 kB / 479.3 MB, free: 22.85 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002545/0.2573, allocations: 15.47 kB / 479.3 MB, free: 22.84 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.634e-05/0.2573, allocations: 43.83 kB / 479.4 MB, free: 22.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.2e-05/0.2574, allocations: 25.08 kB / 479.4 MB, free: 22.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007992/0.2582, allocations: 0.9327 MB / 480.3 MB, free: 22.5 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2582, allocations: 0 / 480.3 MB, free: 22.5 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005566/0.2588, allocations: 232.4 kB / 480.5 MB, free: 22.43 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (70): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00191/0.2607, allocations: 2.564 MB / 483.1 MB, free: 21.18 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001362/0.262, allocations: 1.115 MB / 484.2 MB, free: 20.91 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.2621, allocations: 1.125 kB / 484.2 MB, free: 20.91 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005086/0.2626, allocations: 0.5252 MB / 484.7 MB, free: 20.79 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006391/0.2632, allocations: 90.56 kB / 484.8 MB, free: 20.73 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01148/0.2747, allocations: 13.91 MB / 498.7 MB, free: 10.26 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006631/0.2754, allocations: 1.338 MB / 0.4884 GB, free: 9.125 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000365/0.2758, allocations: 130.2 kB / 0.4885 GB, free: 9.031 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004692/0.2762, allocations: 0.6173 MB / 0.4891 GB, free: 8.469 MB / 366.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2762, allocations: 3.938 kB / 0.4891 GB, free: 8.465 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7539/1.03, allocations: 19.14 MB / 0.5078 GB, free: 7.602 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000204/1.03, allocations: 203.4 kB / 0.508 GB, free: 7.34 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.129/3.16, allocations: 8 kB / 0.508 GB, free: 7.332 MB / 382.1 MB (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4_fmu --startTime=1900 --stopTime=2000 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe 2>&1)