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.000963/0.0009626, allocations: 97.95 kB / 15.36 MB, free: 0.7344 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.005924/0.005924, allocations: 170.4 kB / 16.27 MB, free: 6.648 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.326/1.326, allocations: 223.2 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2798/0.2798, allocations: 28.84 MB / 320.3 MB, free: 6.203 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003474/0.0003474, allocations: 15.94 kB / 388.6 MB, free: 3.086 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2935/0.2939, allocations: 57.46 MB / 446.1 MB, free: 32.91 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.002907/0.2968, allocations: 3.196 MB / 449.2 MB, free: 30.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001766/0.2986, allocations: 0.6662 MB / 449.9 MB, free: 29.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008032/0.2994, allocations: 15.66 kB / 449.9 MB, free: 29.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004002/0.2999, allocations: 130.4 kB / 450.1 MB, free: 29.92 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00035/0.3002, allocations: 97.77 kB / 450.2 MB, free: 29.87 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006107/0.3008, allocations: 308.8 kB / 450.5 MB, free: 29.7 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005826/0.3014, allocations: 0.8266 MB / 451.3 MB, free: 29.33 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006261/0.3021, allocations: 0.5946 MB / 451.9 MB, free: 28.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001395/0.3022, allocations: 219.2 kB / 452.1 MB, free: 28.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002188/0.3024, allocations: 318.5 kB / 452.4 MB, free: 28.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.837e-05/0.3025, allocations: 20.12 kB / 452.4 MB, free: 28.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001185/0.3026, allocations: 48.39 kB / 452.5 MB, free: 28.67 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002392/0.3029, allocations: 371.1 kB / 452.8 MB, free: 28.53 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002582/0.3031, allocations: 0.5493 MB / 453.4 MB, free: 28.08 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006595/0.3038, allocations: 1.121 MB / 454.5 MB, free: 27.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.3038, allocations: 0 / 454.5 MB, free: 27.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.3038, allocations: 0 / 454.5 MB, free: 27.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.545e-05/0.3038, allocations: 2.719 kB / 454.5 MB, free: 27.59 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.001447/0.3053, allocations: 1.541 MB / 456 MB, free: 26.49 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.3053, allocations: 9.781 kB / 456.1 MB, free: 26.49 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001772/0.3055, allocations: 185.6 kB / 456.2 MB, free: 26.36 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001637/0.3057, allocations: 202 kB / 456.4 MB, free: 26.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00059/0.3063, allocations: 0.7623 MB / 457.2 MB, free: 25.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.047e-05/0.3064, allocations: 83.09 kB / 457.3 MB, free: 25.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001002/0.3065, allocations: 107.2 kB / 457.4 MB, free: 25.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001382/0.3079, allocations: 1.287 MB / 458.7 MB, free: 25.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.173e-05/0.3079, allocations: 3.938 kB / 458.7 MB, free: 25.08 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.87e-05/0.308, allocations: 42.5 kB / 458.7 MB, free: 25.05 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.53e-05/0.308, allocations: 56.89 kB / 458.8 MB, free: 25.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00143/0.3094, allocations: 1.236 MB / 460 MB, free: 24.74 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003994/0.3134, allocations: 3.949 MB / 464 MB, free: 22.56 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00153/0.315, allocations: 1.369 MB / 465.3 MB, free: 22.2 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005552/0.3156, allocations: 495.8 kB / 465.8 MB, free: 22.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.671e-05/0.3157, allocations: 35.38 kB / 465.8 MB, free: 22.06 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.248e-05/0.3157, allocations: 41.88 kB / 465.9 MB, free: 22.01 MB / 350.1 MB Notification: Performance of pre-optimization done (n=70): time 2.765e-06/0.3157, allocations: 1.219 kB / 465.9 MB, free: 22.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=70): time 0.002052/0.3177, allocations: 1.563 MB / 467.4 MB, free: 21.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.045e-05/0.3178, allocations: 84.64 kB / 467.5 MB, free: 21.49 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001567/0.3194, allocations: 1.368 MB / 468.9 MB, free: 21.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.316e-05/0.3194, allocations: 36.64 kB / 468.9 MB, free: 20.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005094/0.3199, allocations: 0.8507 MB / 469.8 MB, free: 20.31 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001577/0.3201, allocations: 251.8 kB / 470 MB, free: 20.11 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.789e-05/0.3202, allocations: 74.86 kB / 470.1 MB, free: 20.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.241e-05/0.3203, allocations: 342 kB / 470.4 MB, free: 19.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006113/0.3209, allocations: 474.9 kB / 470.9 MB, free: 19.65 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007143/0.3216, allocations: 0.7236 MB / 471.6 MB, free: 19.22 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001334/0.3229, allocations: 1.235 MB / 472.9 MB, free: 18.62 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.853e-06/0.323, allocations: 6.375 kB / 472.9 MB, free: 18.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.001815/0.3248, allocations: 1.384 MB / 474.2 MB, free: 18.19 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.67e-05/0.3248, allocations: 15.11 kB / 474.3 MB, free: 18.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.452e-05/0.3248, allocations: 9.625 kB / 474.3 MB, free: 18.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.998e-05/0.3249, allocations: 12.28 kB / 474.3 MB, free: 18.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005651/0.3255, allocations: 187.3 kB / 474.5 MB, free: 18.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.195e-05/0.3255, allocations: 21.58 kB / 474.5 MB, free: 18.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003854/0.3259, allocations: 80.97 kB / 474.6 MB, free: 18.1 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.716e-05/0.3259, allocations: 44.77 kB / 474.6 MB, free: 18.09 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005634/0.3265, allocations: 405.6 kB / 475 MB, free: 17.86 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001581/0.3267, allocations: 152.2 kB / 475.2 MB, free: 17.78 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001755/0.3284, allocations: 1.245 MB / 476.4 MB, free: 17.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.888e-06/0.3285, allocations: 14.28 kB / 476.4 MB, free: 17.4 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.3285, allocations: 1.188 kB / 476.4 MB, free: 17.4 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.152e-05/0.3285, allocations: 4.422 kB / 476.4 MB, free: 17.4 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003023/0.3315, allocations: 2.405 MB / 478.8 MB, free: 16.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.3315, allocations: 1.062 kB / 478.8 MB, free: 16.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004699/0.332, allocations: 119.9 kB / 478.9 MB, free: 16.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.053e-06/0.332, allocations: 3.062 kB / 478.9 MB, free: 16.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.7e-05/0.3321, allocations: 16.44 kB / 479 MB, free: 16.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.02e-06/0.3321, allocations: 3.188 kB / 479 MB, free: 16.49 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.3321, allocations: 1.062 kB / 479 MB, free: 16.49 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001796/0.3339, allocations: 1.993 MB / 481 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001501/0.334, allocations: 210.3 kB / 481.2 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.539e-05/0.3341, allocations: 12 kB / 481.2 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002621/0.3344, allocations: 14.44 kB / 481.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.998e-05/0.3345, allocations: 43.23 kB / 481.2 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.424e-05/0.3345, allocations: 26.02 kB / 481.3 MB, free: 14.44 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001068/0.3356, allocations: 0.9323 MB / 482.2 MB, free: 13.68 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.3356, allocations: 0 / 482.2 MB, free: 13.68 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007004/0.3363, allocations: 231.7 kB / 482.4 MB, free: 13.46 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 (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.001907/0.3382, allocations: 2.564 MB / 485 MB, free: 11.04 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001282/0.3395, allocations: 1.083 MB / 486.1 MB, free: 10.08 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.3395, allocations: 4 kB / 486.1 MB, free: 10.07 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000501/0.3401, allocations: 0.5124 MB / 486.6 MB, free: 9.617 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007459/0.3408, allocations: 98.05 kB / 486.7 MB, free: 9.527 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01466/0.3555, allocations: 13.94 MB / 0.4889 GB, free: 11.22 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009939/0.3565, allocations: 1.339 MB / 0.4902 GB, free: 9.852 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000434/0.357, allocations: 132.9 kB / 0.4903 GB, free: 9.723 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006458/0.3576, allocations: 0.6164 MB / 0.4909 GB, free: 9.109 MB / 366.1 MB Notification: Performance of SimCode: time 5.72e-07/0.3576, allocations: 0 / 0.4909 GB, free: 9.109 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03692/0.3946, allocations: 18.56 MB / 0.509 GB, free: 6.645 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002387/0.3948, allocations: 199.6 kB / 0.5092 GB, free: 6.387 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.103/2.497, allocations: 4 kB / 0.5092 GB, free: 6.383 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/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)