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.0009599/0.0009603, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.000965/0.0009651, allocations: 177.3 kB / 15.95 MB, free: 216 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.357/1.357, allocations: 223.2 MB / 239.9 MB, free: 5.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3313/0.3313, allocations: 28.84 MB / 319.8 MB, free: 6.246 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002915/0.0002916, allocations: 8 kB / 387.9 MB, free: 3.441 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3133/0.3136, allocations: 57.48 MB / 445.4 MB, free: 32.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_1): time 0.002881/0.3166, allocations: 2.937 MB / 448.3 MB, free: 30.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001034/0.3176, allocations: 0.6492 MB / 448.9 MB, free: 30.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002798/0.3179, allocations: 15.81 kB / 449 MB, free: 30.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001598/0.3181, allocations: 83.8 kB / 449 MB, free: 29.99 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002582/0.3184, allocations: 97.41 kB / 449.1 MB, free: 29.94 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004546/0.3188, allocations: 260.1 kB / 449.4 MB, free: 29.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005087/0.3193, allocations: 0.5104 MB / 449.9 MB, free: 29.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005273/0.3199, allocations: 485 kB / 450.4 MB, free: 29.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001407/0.32, allocations: 228.6 kB / 450.6 MB, free: 29.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002042/0.3202, allocations: 294.7 kB / 450.9 MB, free: 29.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.647e-05/0.3203, allocations: 22.06 kB / 450.9 MB, free: 29.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001162/0.3204, allocations: 42.44 kB / 450.9 MB, free: 29.06 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002168/0.3207, allocations: 330.1 kB / 451.3 MB, free: 28.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001299/0.3208, allocations: 226 kB / 451.5 MB, free: 28.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005244/0.3213, allocations: 0.7731 MB / 452.3 MB, free: 28.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.3213, allocations: 0 / 452.3 MB, free: 28.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.325e-06/0.3213, allocations: 0 / 452.3 MB, free: 28.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.017e-05/0.3214, allocations: 3 kB / 452.3 MB, free: 28.55 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.001429/0.3228, allocations: 1.478 MB / 453.7 MB, free: 27.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.698e-05/0.3229, allocations: 13.75 kB / 453.8 MB, free: 27.49 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000174/0.323, allocations: 163.4 kB / 453.9 MB, free: 27.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001694/0.3232, allocations: 201.1 kB / 454.1 MB, free: 27.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006739/0.3239, allocations: 0.6701 MB / 454.8 MB, free: 26.78 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.289e-05/0.324, allocations: 80.09 kB / 454.9 MB, free: 26.74 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.443e-05/0.3241, allocations: 104.2 kB / 455 MB, free: 26.71 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001203/0.3253, allocations: 1.135 MB / 456.1 MB, free: 26.22 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.973e-05/0.3253, allocations: 3.938 kB / 456.1 MB, free: 26.21 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.359e-05/0.3254, allocations: 43.09 kB / 456.1 MB, free: 26.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.92e-05/0.3254, allocations: 29.17 kB / 456.2 MB, free: 26.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001105/0.3265, allocations: 1.047 MB / 457.2 MB, free: 25.92 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003802/0.3303, allocations: 3.643 MB / 460.9 MB, free: 23.89 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001631/0.3319, allocations: 1.271 MB / 462.1 MB, free: 23.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.413e-05/0.332, allocations: 31.23 kB / 462.2 MB, free: 23.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.525e-05/0.3321, allocations: 41.47 kB / 462.2 MB, free: 23.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 1.964e-06/0.3321, allocations: 1.156 kB / 462.2 MB, free: 23.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=66): time 0.001821/0.3339, allocations: 1.443 MB / 463.6 MB, free: 23.12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.715e-05/0.3339, allocations: 58.28 kB / 463.7 MB, free: 23.06 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001356/0.3353, allocations: 1.218 MB / 464.9 MB, free: 22.63 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.045e-05/0.3353, allocations: 35.11 kB / 465 MB, free: 22.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004714/0.3358, allocations: 0.7567 MB / 465.7 MB, free: 22 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001561/0.336, allocations: 230.8 kB / 465.9 MB, free: 21.81 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.314e-05/0.336, allocations: 14.19 kB / 466 MB, free: 21.8 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.467e-05/0.3361, allocations: 331.8 kB / 466.3 MB, free: 21.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005241/0.3366, allocations: 413.5 kB / 466.7 MB, free: 21.39 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006304/0.3373, allocations: 0.4962 MB / 467.2 MB, free: 21.2 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006004/0.3379, allocations: 452 kB / 467.6 MB, free: 21.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.3379, allocations: 0 / 467.6 MB, free: 21.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001384/0.3393, allocations: 1.129 MB / 468.7 MB, free: 20.72 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/0.3393, allocations: 6.344 kB / 468.8 MB, free: 20.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.3393, allocations: 1.531 kB / 468.8 MB, free: 20.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.554e-05/0.3394, allocations: 7.375 kB / 468.8 MB, free: 20.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004514/0.3398, allocations: 124.5 kB / 468.9 MB, free: 20.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.523e-05/0.3398, allocations: 10.92 kB / 468.9 MB, free: 20.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002216/0.3401, allocations: 54.56 kB / 468.9 MB, free: 20.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.263e-05/0.3401, allocations: 27.73 kB / 469 MB, free: 20.65 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004425/0.3406, allocations: 365 kB / 469.3 MB, free: 20.44 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001308/0.3407, allocations: 135.5 kB / 469.5 MB, free: 20.37 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001469/0.3422, allocations: 1.139 MB / 470.6 MB, free: 20.01 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.026e-05/0.3422, allocations: 6.375 kB / 470.6 MB, free: 20.01 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.516e-06/0.3422, allocations: 1.125 kB / 470.6 MB, free: 20.01 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.031e-05/0.3422, allocations: 7.375 kB / 470.6 MB, free: 20 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00289/0.3451, allocations: 2.279 MB / 472.9 MB, free: 19.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.3451, allocations: 0.5156 kB / 472.9 MB, free: 19.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004365/0.3456, allocations: 105.9 kB / 473 MB, free: 19.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.374e-06/0.3456, allocations: 5.938 kB / 473 MB, free: 19.13 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.538e-05/0.3456, allocations: 15.45 kB / 473 MB, free: 19.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.498e-06/0.3456, allocations: 2.75 kB / 473 MB, free: 19.12 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.3457, allocations: 3.984 kB / 473 MB, free: 19.12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002037/0.3477, allocations: 1.786 MB / 474.8 MB, free: 18.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001672/0.3479, allocations: 198.7 kB / 475 MB, free: 18.34 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.601e-05/0.348, allocations: 16.28 kB / 475 MB, free: 18.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002009/0.3482, allocations: 15.17 kB / 475 MB, free: 18.32 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.613e-05/0.3482, allocations: 36.94 kB / 475.1 MB, free: 18.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.006e-05/0.3483, allocations: 18.28 kB / 475.1 MB, free: 18.31 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001127/0.3494, allocations: 0.8402 MB / 475.9 MB, free: 18.01 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3494, allocations: 0.9688 kB / 475.9 MB, free: 18.01 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005994/0.35, allocations: 209.9 kB / 476.1 MB, free: 17.93 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 (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.002067/0.3521, allocations: 2.347 MB / 478.5 MB, free: 16.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009468/0.3531, allocations: 0.9405 MB / 479.4 MB, free: 15.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.3531, allocations: 4.188 kB / 479.4 MB, free: 15.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000418/0.3535, allocations: 490.4 kB / 479.9 MB, free: 15.14 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004908/0.354, allocations: 80.61 kB / 480 MB, free: 15.07 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009187/0.3632, allocations: 10.87 MB / 490.9 MB, free: 4.773 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007122/0.3639, allocations: 1.32 MB / 492.2 MB, free: 3.516 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002085/0.3642, allocations: 84.28 kB / 492.3 MB, free: 3.43 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004808/0.3646, allocations: 0.5696 MB / 492.8 MB, free: 2.859 MB / 350.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3647, allocations: 0 / 492.8 MB, free: 2.859 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03013/0.3948, allocations: 16.61 MB / 0.4975 GB, free: 2.355 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001776/0.395, allocations: 180.5 kB / 0.4977 GB, free: 2.109 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.282/2.677, allocations: 0 / 0.4977 GB, free: 2.109 MB / 366.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/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) Environment - environmentSimulation: