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/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009601/0.0009604, allocations: 89.89 kB / 15.36 MB, free: 0.7383 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.005739/0.00574, allocations: 170.3 kB / 16.26 MB, free: 6.613 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.236/1.236, allocations: 223.2 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2716/0.2716, allocations: 28.83 MB / 320.3 MB, free: 6.133 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003173/0.0003173, allocations: 12 kB / 388.6 MB, free: 3.059 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2705/0.2708, allocations: 57.48 MB / 446.1 MB, free: 32.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_1): time 0.002581/0.2734, allocations: 3.168 MB / 449.2 MB, free: 30.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001011/0.2745, allocations: 0.6456 MB / 449.9 MB, free: 29.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000269/0.2747, allocations: 18.56 kB / 449.9 MB, free: 29.78 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002379/0.275, allocations: 111.9 kB / 450 MB, free: 29.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002439/0.2752, allocations: 82.91 kB / 450.1 MB, free: 29.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004679/0.2757, allocations: 306.7 kB / 450.4 MB, free: 29.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000528/0.2763, allocations: 0.7999 MB / 451.2 MB, free: 29.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005936/0.2769, allocations: 0.5974 MB / 451.8 MB, free: 28.8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001213/0.277, allocations: 216 kB / 452 MB, free: 28.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001808/0.2772, allocations: 309.2 kB / 452.3 MB, free: 28.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.244e-05/0.2772, allocations: 20.62 kB / 452.3 MB, free: 28.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001088/0.2774, allocations: 49.72 kB / 452.4 MB, free: 28.49 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002149/0.2776, allocations: 342.8 kB / 452.7 MB, free: 28.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002362/0.2778, allocations: 0.5131 MB / 453.2 MB, free: 27.94 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005907/0.2784, allocations: 1.066 MB / 454.3 MB, free: 27.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.2784, allocations: 0 / 454.3 MB, free: 27.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.2784, allocations: 0 / 454.3 MB, free: 27.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.4e-05/0.2785, allocations: 0 / 454.3 MB, free: 27.48 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: 259 * Number of variables: 259 Notification: Performance of Generate backend data structure: time 0.001326/0.2798, allocations: 1.459 MB / 455.7 MB, free: 26.42 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.2798, allocations: 10.78 kB / 455.7 MB, free: 26.42 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001668/0.28, allocations: 166.5 kB / 455.9 MB, free: 26.31 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001562/0.2802, allocations: 198.8 kB / 456.1 MB, free: 26.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005816/0.2808, allocations: 0.7355 MB / 456.8 MB, free: 25.65 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.431e-05/0.2808, allocations: 76.62 kB / 456.9 MB, free: 25.61 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.694e-05/0.2809, allocations: 112.5 kB / 457 MB, free: 25.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001167/0.2821, allocations: 1.141 MB / 458.2 MB, free: 25.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.104e-05/0.2821, allocations: 10.56 kB / 458.2 MB, free: 25.08 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.377e-05/0.2822, allocations: 39.88 kB / 458.2 MB, free: 25.05 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.022e-05/0.2822, allocations: 30.19 kB / 458.2 MB, free: 25.05 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001109/0.2833, allocations: 1.058 MB / 459.3 MB, free: 24.79 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00347/0.2868, allocations: 3.635 MB / 462.9 MB, free: 22.76 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001423/0.2882, allocations: 1.28 MB / 464.2 MB, free: 22.44 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004665/0.2887, allocations: 459.1 kB / 464.7 MB, free: 22.33 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.138e-05/0.2888, allocations: 28.44 kB / 464.7 MB, free: 22.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.944e-05/0.2888, allocations: 37.81 kB / 464.7 MB, free: 22.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 2.164e-06/0.2888, allocations: 4 kB / 464.7 MB, free: 22.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=66): time 0.001592/0.2904, allocations: 1.447 MB / 466.2 MB, free: 21.88 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.087e-05/0.2905, allocations: 62.12 kB / 466.2 MB, free: 21.81 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001325/0.2918, allocations: 1.231 MB / 467.5 MB, free: 21.38 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.099e-05/0.2918, allocations: 40.77 kB / 467.5 MB, free: 21.33 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000473/0.2923, allocations: 0.7522 MB / 468.3 MB, free: 20.74 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001659/0.2925, allocations: 226.5 kB / 468.5 MB, free: 20.56 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.586e-05/0.2926, allocations: 63.02 kB / 468.5 MB, free: 20.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.938e-05/0.2927, allocations: 334.9 kB / 468.9 MB, free: 20.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004482/0.2931, allocations: 412.9 kB / 469.3 MB, free: 20.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005842/0.2937, allocations: 0.4993 MB / 469.8 MB, free: 19.92 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001172/0.2949, allocations: 0.9634 MB / 470.7 MB, free: 19.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.2949, allocations: 0 / 470.7 MB, free: 19.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001424/0.2963, allocations: 1.127 MB / 471.9 MB, free: 19.22 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/0.2963, allocations: 5.5 kB / 471.9 MB, free: 19.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.2964, allocations: 3.656 kB / 471.9 MB, free: 19.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.321e-05/0.2964, allocations: 11.88 kB / 471.9 MB, free: 19.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004157/0.2968, allocations: 127 kB / 472 MB, free: 19.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.227e-05/0.2968, allocations: 11.09 kB / 472 MB, free: 19.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002192/0.2971, allocations: 54.72 kB / 472.1 MB, free: 19.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.843e-05/0.2971, allocations: 23.31 kB / 472.1 MB, free: 19.15 MB / 350.1 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004617/0.2976, allocations: 366 kB / 472.5 MB, free: 18.94 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001452/0.2977, allocations: 135.7 kB / 472.6 MB, free: 18.86 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001522/0.2993, allocations: 1.149 MB / 473.7 MB, free: 18.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.817e-06/0.2993, allocations: 6.656 kB / 473.7 MB, free: 18.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.2993, allocations: 3.938 kB / 473.7 MB, free: 18.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.064e-05/0.2993, allocations: 3.609 kB / 473.7 MB, free: 18.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002877/0.3022, allocations: 2.274 MB / 476 MB, free: 17.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.3022, allocations: 1.312 kB / 476 MB, free: 17.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004319/0.3026, allocations: 110 kB / 476.1 MB, free: 17.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.3026, allocations: 2.188 kB / 476.1 MB, free: 17.63 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.574e-05/0.3027, allocations: 22.69 kB / 476.2 MB, free: 17.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.68e-06/0.3027, allocations: 6.344 kB / 476.2 MB, free: 17.61 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.3027, allocations: 1.891 kB / 476.2 MB, free: 17.61 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001993/0.3047, allocations: 1.785 MB / 477.9 MB, free: 17.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001424/0.3049, allocations: 195.5 kB / 478.1 MB, free: 16.85 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.669e-05/0.3049, allocations: 16.08 kB / 478.2 MB, free: 16.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001912/0.3051, allocations: 18.12 kB / 478.2 MB, free: 16.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.991e-05/0.3052, allocations: 37.72 kB / 478.2 MB, free: 16.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.952e-05/0.3052, allocations: 22.47 kB / 478.2 MB, free: 16.81 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001071/0.3063, allocations: 0.8534 MB / 479.1 MB, free: 16.38 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3063, allocations: 0 / 479.1 MB, free: 16.38 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005211/0.3069, allocations: 210.9 kB / 479.3 MB, free: 16.18 MB / 350.1 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 () * Number of clocked 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 (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.001677/0.3085, allocations: 2.355 MB / 481.6 MB, free: 13.95 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009006/0.3095, allocations: 0.9356 MB / 482.6 MB, free: 13.11 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3095, allocations: 4 kB / 482.6 MB, free: 13.11 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004091/0.3099, allocations: 494.9 kB / 483.1 MB, free: 12.67 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006187/0.3105, allocations: 91.05 kB / 483.2 MB, free: 12.59 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01106/0.3216, allocations: 12.41 MB / 495.6 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007502/0.3224, allocations: 1.284 MB / 496.9 MB, free: 15.25 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002178/0.3226, allocations: 72.36 kB / 496.9 MB, free: 15.18 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005529/0.3232, allocations: 0.5735 MB / 497.5 MB, free: 14.6 MB / 366.1 MB Notification: Performance of SimCode: time 1.423e-06/0.3232, allocations: 0 / 497.5 MB, free: 14.6 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04544/0.3686, allocations: 17.09 MB / 0.5025 GB, free: 13.61 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002129/0.3689, allocations: 198 kB / 0.5027 GB, free: 13.36 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.031/2.4, allocations: 3.938 kB / 0.5027 GB, free: 13.35 MB / 382.1 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/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)