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.001091/0.001091, allocations: 99.86 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.0009415/0.0009415, 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.349/1.349, allocations: 223.2 MB / 239.9 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3033/0.3033, allocations: 28.84 MB / 319.8 MB, free: 6.297 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003138/0.0003139, allocations: 11.94 kB / 387.9 MB, free: 3.453 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.309/0.3093, allocations: 57.48 MB / 445.4 MB, free: 32.81 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.002802/0.3122, allocations: 2.968 MB / 448.3 MB, free: 30.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001219/0.3134, allocations: 0.6643 MB / 449 MB, free: 30.13 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002883/0.3137, allocations: 18.09 kB / 449 MB, free: 30.13 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001682/0.3139, allocations: 83.55 kB / 449.1 MB, free: 30.08 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00026/0.3142, allocations: 109.3 kB / 449.2 MB, free: 30.03 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004539/0.3146, allocations: 262.8 kB / 449.4 MB, free: 29.9 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004826/0.3151, allocations: 0.5155 MB / 450 MB, free: 29.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004989/0.3156, allocations: 489.9 kB / 450.4 MB, free: 29.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001431/0.3158, allocations: 247.5 kB / 450.7 MB, free: 29.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002034/0.316, allocations: 312.7 kB / 451 MB, free: 29.15 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.775e-05/0.3161, allocations: 27.41 kB / 451 MB, free: 29.15 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001215/0.3162, allocations: 42.67 kB / 451.1 MB, free: 29.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002233/0.3164, allocations: 353.7 kB / 451.4 MB, free: 29.03 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001159/0.3165, allocations: 233.7 kB / 451.6 MB, free: 28.85 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005231/0.3171, allocations: 0.8121 MB / 452.4 MB, free: 28.61 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.365e-06/0.3171, allocations: 0 / 452.4 MB, free: 28.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.3171, allocations: 3.938 kB / 452.4 MB, free: 28.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.408e-05/0.3171, allocations: 0 / 452.4 MB, free: 28.61 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.001547/0.3186, allocations: 1.564 MB / 454 MB, free: 27.51 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/0.3187, allocations: 7.75 kB / 454 MB, free: 27.51 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001786/0.3189, allocations: 185.1 kB / 454.2 MB, free: 27.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001657/0.3191, allocations: 201.4 kB / 454.4 MB, free: 27.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000692/0.3198, allocations: 0.7034 MB / 455.1 MB, free: 26.76 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.205e-05/0.3198, allocations: 76.16 kB / 455.2 MB, free: 26.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.033e-05/0.3199, allocations: 110.9 kB / 455.3 MB, free: 26.69 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00135/0.3213, allocations: 1.282 MB / 456.6 MB, free: 26.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.961e-05/0.3213, allocations: 0 / 456.6 MB, free: 26.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.05e-05/0.3214, allocations: 48 kB / 456.6 MB, free: 26.12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.399e-05/0.3214, allocations: 56.39 kB / 456.7 MB, free: 26.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001384/0.3228, allocations: 1.22 MB / 457.9 MB, free: 25.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003959/0.3268, allocations: 3.951 MB / 461.8 MB, free: 23.64 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001644/0.3284, allocations: 1.358 MB / 463.2 MB, free: 23.28 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.375e-05/0.3285, allocations: 39.67 kB / 463.2 MB, free: 23.26 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.295e-05/0.3286, allocations: 39.06 kB / 463.3 MB, free: 23.22 MB / 350.1 MB Notification: Performance of pre-optimization done (n=70): time 1.894e-06/0.3286, allocations: 0 / 463.3 MB, free: 23.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=70): time 0.001948/0.3305, allocations: 1.555 MB / 464.8 MB, free: 22.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.633e-05/0.3306, allocations: 89.34 kB / 464.9 MB, free: 22.7 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001519/0.3321, allocations: 1.352 MB / 466.3 MB, free: 22.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.316e-05/0.3321, allocations: 36.83 kB / 466.3 MB, free: 22.19 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005122/0.3326, allocations: 0.8494 MB / 467.1 MB, free: 21.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001412/0.3328, allocations: 249.1 kB / 467.4 MB, free: 21.33 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.678e-05/0.3328, allocations: 14.75 kB / 467.4 MB, free: 21.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.774e-05/0.3329, allocations: 344.9 kB / 467.7 MB, free: 20.99 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006151/0.3335, allocations: 469.7 kB / 468.2 MB, free: 20.89 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007569/0.3343, allocations: 0.7127 MB / 468.9 MB, free: 20.47 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006781/0.335, allocations: 0.5298 MB / 469.4 MB, free: 20.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/0.335, allocations: 3.344 kB / 469.4 MB, free: 20.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.001769/0.3368, allocations: 1.379 MB / 470.8 MB, free: 19.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.424e-05/0.3368, allocations: 7.688 kB / 470.8 MB, free: 19.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.513e-05/0.3368, allocations: 13.75 kB / 470.8 MB, free: 19.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.49e-05/0.3369, allocations: 13.78 kB / 470.9 MB, free: 19.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000599/0.3375, allocations: 187.5 kB / 471 MB, free: 19.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.308e-05/0.3375, allocations: 18.17 kB / 471.1 MB, free: 19.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003488/0.3378, allocations: 88.27 kB / 471.1 MB, free: 19.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.092e-05/0.3379, allocations: 47.88 kB / 471.2 MB, free: 19.79 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.0004657/0.3384, allocations: 396.6 kB / 471.6 MB, free: 19.57 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001599/0.3385, allocations: 154.9 kB / 471.7 MB, free: 19.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001674/0.3402, allocations: 1.243 MB / 473 MB, free: 19.1 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.059e-05/0.3402, allocations: 11.75 kB / 473 MB, free: 19.09 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.124e-06/0.3403, allocations: 1.031 kB / 473 MB, free: 19.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.598e-06/0.3403, allocations: 3.281 kB / 473 MB, free: 19.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003113/0.3434, allocations: 2.403 MB / 475.4 MB, free: 18.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.029e-06/0.3434, allocations: 1.156 kB / 475.4 MB, free: 18.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004838/0.3439, allocations: 116.5 kB / 475.5 MB, free: 18.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.526e-06/0.3439, allocations: 3.188 kB / 475.5 MB, free: 18.2 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.749e-05/0.344, allocations: 20.03 kB / 475.5 MB, free: 18.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.939e-06/0.344, allocations: 3.375 kB / 475.5 MB, free: 18.19 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.344, allocations: 8.641 kB / 475.5 MB, free: 18.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002248/0.3462, allocations: 1.99 MB / 477.5 MB, free: 17.47 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001876/0.3464, allocations: 215.4 kB / 477.7 MB, free: 17.26 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.242e-05/0.3465, allocations: 12.7 kB / 477.8 MB, free: 17.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002697/0.3468, allocations: 18.39 kB / 477.8 MB, free: 17.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.381e-05/0.3469, allocations: 51.7 kB / 477.8 MB, free: 17.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.245e-05/0.3469, allocations: 21.17 kB / 477.8 MB, free: 17.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001042/0.348, allocations: 0.9172 MB / 478.8 MB, free: 16.44 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.348, allocations: 0 / 478.8 MB, free: 16.44 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006851/0.3487, allocations: 227.6 kB / 479 MB, free: 16.21 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.00198/0.3507, allocations: 2.635 MB / 481.6 MB, free: 13.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00119/0.3519, allocations: 1.082 MB / 482.7 MB, free: 12.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3519, allocations: 1.625 kB / 482.7 MB, free: 12.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004797/0.3524, allocations: 0.517 MB / 483.2 MB, free: 12.3 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005021/0.3529, allocations: 82.62 kB / 483.3 MB, free: 12.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01113/0.364, allocations: 15.65 MB / 498.9 MB, free: 12.58 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001012/0.3651, allocations: 1.37 MB / 0.4886 GB, free: 11.18 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004261/0.3655, allocations: 128.9 kB / 0.4887 GB, free: 11.05 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006599/0.3662, allocations: 0.6203 MB / 0.4893 GB, free: 10.43 MB / 366.1 MB Notification: Performance of SimCode: time 9.82e-07/0.3662, allocations: 0 / 0.4893 GB, free: 10.43 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03428/0.4005, allocations: 18.19 MB / 0.5071 GB, free: 8.344 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002959/0.4008, allocations: 174 kB / 0.5072 GB, free: 8.105 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.421/2.821, allocations: 0 / 0.5072 GB, free: 8.105 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: