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.0007115/0.0007116, allocations: 86.64 kB / 15.06 MB, free: 1.09 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.0007757/0.0007757, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.202/1.202, allocations: 223.3 MB / 240 MB, free: 5.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2547/0.2547, allocations: 28.83 MB / 319.9 MB, free: 6.25 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002586/0.0002587, allocations: 8 kB / 388 MB, free: 3.438 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2245/0.2248, allocations: 57.47 MB / 445.4 MB, free: 32.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.002253/0.227, allocations: 2.928 MB / 448.4 MB, free: 30.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009323/0.228, allocations: 0.6609 MB / 449 MB, free: 29.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002559/0.2283, allocations: 18.72 kB / 449.1 MB, free: 29.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002275/0.2285, allocations: 134.2 kB / 449.2 MB, free: 29.9 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002051/0.2287, allocations: 90.77 kB / 449.3 MB, free: 29.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004013/0.2291, allocations: 258.1 kB / 449.5 MB, free: 29.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004872/0.2296, allocations: 0.7805 MB / 450.3 MB, free: 29.39 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004538/0.2301, allocations: 488.8 kB / 450.8 MB, free: 29.17 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001207/0.2302, allocations: 246.6 kB / 451 MB, free: 29.06 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001761/0.2304, allocations: 318.2 kB / 451.3 MB, free: 28.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.335e-05/0.2304, allocations: 19.66 kB / 451.4 MB, free: 28.89 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.99e-05/0.2306, allocations: 44.78 kB / 451.4 MB, free: 28.89 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001936/0.2308, allocations: 351.9 kB / 451.7 MB, free: 28.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.486e-05/0.2309, allocations: 234.3 kB / 452 MB, free: 28.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004354/0.2313, allocations: 0.8133 MB / 452.8 MB, free: 28.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.2313, allocations: 4 kB / 452.8 MB, free: 28.35 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2313, allocations: 6.188 kB / 452.8 MB, free: 28.35 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.274e-05/0.2313, allocations: 0 / 452.8 MB, free: 28.35 MB / 350.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.001266/0.2326, allocations: 1.557 MB / 454.4 MB, free: 27.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.907e-05/0.2326, allocations: 10.53 kB / 454.4 MB, free: 27.25 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001489/0.2328, allocations: 190.8 kB / 454.5 MB, free: 27.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001382/0.2329, allocations: 205.1 kB / 454.7 MB, free: 27.01 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005285/0.2335, allocations: 0.7003 MB / 455.4 MB, free: 26.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.131e-05/0.2335, allocations: 81.38 kB / 455.5 MB, free: 26.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.33e-05/0.2336, allocations: 103.1 kB / 455.6 MB, free: 26.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001265/0.2349, allocations: 1.285 MB / 456.9 MB, free: 25.9 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.823e-05/0.2349, allocations: 4 kB / 456.9 MB, free: 25.89 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.964e-05/0.235, allocations: 45.97 kB / 457 MB, free: 25.86 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.756e-05/0.235, allocations: 49.33 kB / 457 MB, free: 25.86 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001281/0.2363, allocations: 1.229 MB / 458.2 MB, free: 25.56 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003333/0.2396, allocations: 3.944 MB / 462.2 MB, free: 23.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00137/0.241, allocations: 1.361 MB / 463.5 MB, free: 23.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004845/0.2415, allocations: 0.4885 MB / 464 MB, free: 22.89 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.977e-05/0.2416, allocations: 34.78 kB / 464.1 MB, free: 22.88 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.703e-05/0.2416, allocations: 46.72 kB / 464.1 MB, free: 22.83 MB / 350.1 MB Notification: Performance of pre-optimization done (n=70): time 1.783e-06/0.2416, allocations: 0 / 464.1 MB, free: 22.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=70): time 0.001724/0.2434, allocations: 1.546 MB / 465.7 MB, free: 22.42 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.938e-05/0.2434, allocations: 92.66 kB / 465.7 MB, free: 22.31 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001358/0.2448, allocations: 1.352 MB / 467.1 MB, free: 21.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.74e-05/0.2448, allocations: 40.45 kB / 467.1 MB, free: 21.8 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004215/0.2452, allocations: 0.8499 MB / 468 MB, free: 21.13 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001216/0.2453, allocations: 239.4 kB / 468.2 MB, free: 20.95 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.731e-05/0.2454, allocations: 24.12 kB / 468.2 MB, free: 20.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.605e-05/0.2454, allocations: 337.2 kB / 468.6 MB, free: 20.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005292/0.246, allocations: 472.1 kB / 469 MB, free: 20.51 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006291/0.2466, allocations: 0.7191 MB / 469.8 MB, free: 20.08 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006176/0.2472, allocations: 0.5353 MB / 470.3 MB, free: 19.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.43e-06/0.2473, allocations: 6.375 kB / 470.3 MB, free: 19.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.001488/0.2487, allocations: 1.375 MB / 471.7 MB, free: 19.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.2488, allocations: 8.781 kB / 471.7 MB, free: 19.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.228e-05/0.2488, allocations: 9.438 kB / 471.7 MB, free: 19.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.414e-05/0.2488, allocations: 17.31 kB / 471.7 MB, free: 19.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005399/0.2494, allocations: 183.9 kB / 471.9 MB, free: 19.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.039e-05/0.2494, allocations: 22.2 kB / 471.9 MB, free: 19.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002972/0.2497, allocations: 84.14 kB / 472 MB, free: 19.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.153e-05/0.2498, allocations: 43.81 kB / 472 MB, free: 19.4 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004175/0.2502, allocations: 397.4 kB / 472.4 MB, free: 19.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001428/0.2503, allocations: 149.8 kB / 472.6 MB, free: 19.1 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00152/0.2519, allocations: 1.244 MB / 473.8 MB, free: 18.72 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.488e-06/0.2519, allocations: 7.75 kB / 473.8 MB, free: 18.72 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.2519, allocations: 5.031 kB / 473.8 MB, free: 18.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.037e-06/0.2519, allocations: 7.188 kB / 473.8 MB, free: 18.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002549/0.2545, allocations: 2.399 MB / 476.2 MB, free: 17.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/0.2545, allocations: 0 / 476.2 MB, free: 17.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004346/0.2549, allocations: 121.1 kB / 476.3 MB, free: 17.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.19e-06/0.2549, allocations: 3.125 kB / 476.4 MB, free: 17.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.285e-05/0.255, allocations: 19.53 kB / 476.4 MB, free: 17.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.19e-06/0.255, allocations: 3.984 kB / 476.4 MB, free: 17.8 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.255, allocations: 3.953 kB / 476.4 MB, free: 17.8 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001854/0.2568, allocations: 1.984 MB / 478.4 MB, free: 16.72 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000115/0.257, allocations: 209.5 kB / 478.6 MB, free: 16.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.761e-05/0.2571, allocations: 16.77 kB / 478.6 MB, free: 16.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002397/0.2573, allocations: 17.64 kB / 478.6 MB, free: 16.46 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.944e-05/0.2574, allocations: 46.38 kB / 478.6 MB, free: 16.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.99e-05/0.2574, allocations: 24 kB / 478.7 MB, free: 16.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008374/0.2583, allocations: 0.9202 MB / 479.6 MB, free: 15.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.2583, allocations: 0 / 479.6 MB, free: 15.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005457/0.2588, allocations: 227.7 kB / 479.8 MB, free: 15.44 MB / 350.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 (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.001784/0.2606, allocations: 2.553 MB / 482.4 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001026/0.2616, allocations: 1.082 MB / 483.4 MB, free: 12.08 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.2617, allocations: 0 / 483.4 MB, free: 12.08 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004645/0.2621, allocations: 0.522 MB / 484 MB, free: 11.61 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006175/0.2628, allocations: 93 kB / 484.1 MB, free: 11.53 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008939/0.2717, allocations: 10.55 MB / 494.6 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007413/0.2725, allocations: 1.335 MB / 495.9 MB, free: 15.58 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000395/0.2729, allocations: 136.8 kB / 496.1 MB, free: 15.45 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006571/0.2735, allocations: 0.6164 MB / 496.7 MB, free: 14.83 MB / 366.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2735, allocations: 0 / 496.7 MB, free: 14.83 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02952/0.3031, allocations: 18.23 MB / 0.5029 GB, free: 12.71 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001892/0.3033, allocations: 179 kB / 0.503 GB, free: 12.47 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.909/2.212, allocations: 0 / 0.503 GB, free: 12.47 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/linux/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) Environment - environmentSimulation: