Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.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_3,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_3,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3",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.001287/0.001287, allocations: 99.7 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.001666/0.001666, 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.371/1.371, allocations: 223.2 MB / 239.9 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3309/0.3309, allocations: 28.84 MB / 319.8 MB, free: 6.266 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003237/0.0003244, allocations: 8 kB / 387.9 MB, free: 3.426 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3151/0.3154, allocations: 57.47 MB / 445.3 MB, free: 32.89 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_3): time 0.002707/0.3182, allocations: 2.951 MB / 448.3 MB, free: 30.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001381/0.3196, allocations: 0.6591 MB / 448.9 MB, free: 30.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003396/0.3199, allocations: 12.03 kB / 449 MB, free: 30.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001799/0.3201, allocations: 83.83 kB / 449 MB, free: 30.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002708/0.3204, allocations: 113.3 kB / 449.2 MB, free: 30.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004752/0.3209, allocations: 257.6 kB / 449.4 MB, free: 29.99 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006281/0.3215, allocations: 0.5147 MB / 449.9 MB, free: 29.74 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005401/0.3221, allocations: 491.2 kB / 450.4 MB, free: 29.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000174/0.3223, allocations: 237.3 kB / 450.6 MB, free: 29.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002154/0.3225, allocations: 310.6 kB / 450.9 MB, free: 29.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.63e-05/0.3226, allocations: 24.28 kB / 451 MB, free: 29.24 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001249/0.3227, allocations: 42.97 kB / 451 MB, free: 29.24 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002254/0.3229, allocations: 337.7 kB / 451.3 MB, free: 29.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001088/0.323, allocations: 228.5 kB / 451.6 MB, free: 28.95 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005477/0.3236, allocations: 0.7947 MB / 452.3 MB, free: 28.72 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.3236, allocations: 0 / 452.3 MB, free: 28.72 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.3236, allocations: 0 / 452.3 MB, free: 28.72 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.685e-05/0.3236, allocations: 3.938 kB / 452.4 MB, free: 28.71 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: 263 * Number of variables: 263 Notification: Performance of Generate backend data structure: time 0.001494/0.3251, allocations: 1.525 MB / 453.9 MB, free: 27.64 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.3252, allocations: 8.5 kB / 453.9 MB, free: 27.64 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001695/0.3254, allocations: 171.9 kB / 454.1 MB, free: 27.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001672/0.3255, allocations: 200.2 kB / 454.2 MB, free: 27.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007652/0.3263, allocations: 0.6849 MB / 454.9 MB, free: 26.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.028e-05/0.3264, allocations: 77.97 kB / 455 MB, free: 26.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.295e-05/0.3265, allocations: 105.3 kB / 455.1 MB, free: 26.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001264/0.3277, allocations: 1.165 MB / 456.3 MB, free: 26.35 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.992e-05/0.3278, allocations: 2.625 kB / 456.3 MB, free: 26.35 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.531e-05/0.3278, allocations: 39.88 kB / 456.3 MB, free: 26.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.146e-05/0.3279, allocations: 34.14 kB / 456.4 MB, free: 26.31 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001183/0.329, allocations: 1.104 MB / 457.5 MB, free: 26.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004098/0.3332, allocations: 3.715 MB / 461.2 MB, free: 23.99 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001603/0.3348, allocations: 1.338 MB / 462.5 MB, free: 23.65 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.584e-05/0.3349, allocations: 23.14 kB / 462.5 MB, free: 23.65 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.179e-05/0.3349, allocations: 41.12 kB / 462.6 MB, free: 23.61 MB / 350.1 MB Notification: Performance of pre-optimization done (n=68): time 2.826e-06/0.3349, allocations: 1.125 kB / 462.6 MB, free: 23.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=68): time 0.001927/0.3368, allocations: 1.523 MB / 464.1 MB, free: 23.2 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.878e-05/0.3369, allocations: 62.34 kB / 464.2 MB, free: 23.13 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001573/0.3385, allocations: 1.28 MB / 465.4 MB, free: 22.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.662e-05/0.3385, allocations: 40.2 kB / 465.5 MB, free: 22.63 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005016/0.339, allocations: 0.7745 MB / 466.2 MB, free: 22.03 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001528/0.3392, allocations: 231.9 kB / 466.5 MB, free: 21.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.226e-05/0.3392, allocations: 14.59 kB / 466.5 MB, free: 21.83 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.503e-05/0.3393, allocations: 332.6 kB / 466.8 MB, free: 21.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005687/0.3399, allocations: 439.9 kB / 467.2 MB, free: 21.42 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005993/0.3405, allocations: 0.5241 MB / 467.8 MB, free: 21.22 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006004/0.3411, allocations: 476.9 kB / 468.2 MB, free: 21.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.3411, allocations: 1.562 kB / 468.2 MB, free: 21.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.00148/0.3426, allocations: 1.182 MB / 469.4 MB, free: 20.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.494e-05/0.3426, allocations: 7.156 kB / 469.4 MB, free: 20.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.12e-05/0.3426, allocations: 3.328 kB / 469.4 MB, free: 20.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.235e-05/0.3427, allocations: 6.406 kB / 469.4 MB, free: 20.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004796/0.3432, allocations: 137.7 kB / 469.6 MB, free: 20.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.433e-05/0.3432, allocations: 10.11 kB / 469.6 MB, free: 20.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002877/0.3435, allocations: 58.62 kB / 469.6 MB, free: 20.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.031e-05/0.3435, allocations: 32.33 kB / 469.7 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 (83): * Single equations (assignments): 83 * 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.0004747/0.344, allocations: 370.3 kB / 470 MB, free: 20.44 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001362/0.3441, allocations: 138.4 kB / 470.2 MB, free: 20.37 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001601/0.3458, allocations: 1.203 MB / 471.4 MB, free: 20 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.081e-05/0.3458, allocations: 6.672 kB / 471.4 MB, free: 20 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.3458, allocations: 5.344 kB / 471.4 MB, free: 19.99 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.207e-06/0.3458, allocations: 3.047 kB / 471.4 MB, free: 19.99 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003012/0.3488, allocations: 2.37 MB / 473.8 MB, free: 19.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.3488, allocations: 1.5 kB / 473.8 MB, free: 19.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004592/0.3493, allocations: 109.8 kB / 473.9 MB, free: 19.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.394e-06/0.3493, allocations: 3.344 kB / 473.9 MB, free: 19.11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.693e-05/0.3494, allocations: 18.28 kB / 473.9 MB, free: 19.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.98e-06/0.3494, allocations: 6.438 kB / 473.9 MB, free: 19.09 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.3494, allocations: 0.7031 kB / 473.9 MB, free: 19.09 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002157/0.3515, allocations: 1.881 MB / 475.8 MB, free: 18.47 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001822/0.3517, allocations: 201.2 kB / 476 MB, free: 18.29 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.039e-05/0.3518, allocations: 12.05 kB / 476 MB, free: 18.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002268/0.3521, allocations: 16.83 kB / 476 MB, free: 18.27 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.603e-05/0.3522, allocations: 43 kB / 476 MB, free: 18.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.102e-05/0.3522, allocations: 18.22 kB / 476.1 MB, free: 18.26 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001162/0.3534, allocations: 0.8764 MB / 476.9 MB, free: 17.95 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3534, allocations: 0 / 476.9 MB, free: 17.95 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006209/0.354, allocations: 217.7 kB / 477.1 MB, free: 17.88 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 (68): * Single equations (assignments): 68 * 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.001919/0.3559, allocations: 2.447 MB / 479.6 MB, free: 15.7 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001133/0.3571, allocations: 0.987 MB / 480.6 MB, free: 14.81 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.3571, allocations: 0 / 480.6 MB, free: 14.81 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000487/0.3576, allocations: 0.5081 MB / 481.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004911/0.3581, allocations: 76.62 kB / 481.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01013/0.3682, allocations: 11.33 MB / 492.5 MB, free: 3.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000624/0.3689, allocations: 1.343 MB / 493.8 MB, free: 1.969 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002218/0.3691, allocations: 80.38 kB / 493.9 MB, free: 1.887 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004546/0.3696, allocations: 0.5852 MB / 494.5 MB, free: 1.301 MB / 350.1 MB Notification: Performance of SimCode: time 1.052e-06/0.3696, allocations: 0 / 494.5 MB, free: 1.301 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03178/0.4014, allocations: 17.19 MB / 0.4997 GB, free: 216 kB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001703/0.4016, allocations: 179.6 kB / 0.4999 GB, free: 15.96 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.134/2.536, allocations: 3.938 kB / 0.4999 GB, free: 15.96 MB / 382.1 MB (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3_fmu --startTime=1900 --stopTime=2100 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe 2>&1) Environment - environmentSimulation: