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.0008081/0.0008079, allocations: 90.52 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.004949/0.004949, allocations: 171.1 kB / 16.26 MB, free: 6.676 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.274/1.274, allocations: 223.2 MB / 240.3 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2587/0.2587, allocations: 28.83 MB / 320.3 MB, free: 6.211 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003071/0.0003071, allocations: 8 kB / 388.6 MB, free: 3.094 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2689/0.2692, allocations: 57.48 MB / 446.1 MB, free: 32.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_3): time 0.002751/0.272, allocations: 3.17 MB / 449.2 MB, free: 30.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001254/0.2733, allocations: 0.6631 MB / 449.9 MB, free: 29.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002892/0.2736, allocations: 11.69 kB / 449.9 MB, free: 29.8 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002622/0.2738, allocations: 128 kB / 450 MB, free: 29.74 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002503/0.2741, allocations: 95.91 kB / 450.1 MB, free: 29.69 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000502/0.2746, allocations: 307.8 kB / 450.4 MB, free: 29.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005448/0.2752, allocations: 0.8111 MB / 451.2 MB, free: 29.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005955/0.2758, allocations: 0.5963 MB / 451.8 MB, free: 28.81 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000135/0.2759, allocations: 215.8 kB / 452 MB, free: 28.69 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001972/0.2761, allocations: 310.4 kB / 452.3 MB, free: 28.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.512e-05/0.2762, allocations: 20.94 kB / 452.4 MB, free: 28.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001162/0.2763, allocations: 50 kB / 452.4 MB, free: 28.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002127/0.2765, allocations: 354.6 kB / 452.8 MB, free: 28.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000241/0.2768, allocations: 0.5307 MB / 453.3 MB, free: 27.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000613/0.2774, allocations: 1.084 MB / 454.4 MB, free: 27.46 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.2774, allocations: 0 / 454.4 MB, free: 27.46 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.2774, allocations: 0 / 454.4 MB, free: 27.46 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.492e-05/0.2774, allocations: 0 / 454.4 MB, free: 27.46 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.001362/0.2788, allocations: 1.509 MB / 455.9 MB, free: 26.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/0.2788, allocations: 15.31 kB / 455.9 MB, free: 26.37 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001616/0.279, allocations: 171.5 kB / 456.1 MB, free: 26.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000151/0.2792, allocations: 194 kB / 456.3 MB, free: 26.15 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005722/0.2797, allocations: 0.7485 MB / 457 MB, free: 25.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.634e-05/0.2798, allocations: 83.12 kB / 457.1 MB, free: 25.55 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.862e-05/0.2799, allocations: 105.8 kB / 457.2 MB, free: 25.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001235/0.2811, allocations: 1.184 MB / 458.4 MB, free: 25.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.176e-05/0.2812, allocations: 7.875 kB / 458.4 MB, free: 25.01 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.727e-05/0.2812, allocations: 42.5 kB / 458.4 MB, free: 24.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.151e-05/0.2813, allocations: 26.25 kB / 458.4 MB, free: 24.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001218/0.2825, allocations: 1.107 MB / 459.6 MB, free: 24.71 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003497/0.286, allocations: 3.716 MB / 463.3 MB, free: 22.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001422/0.2874, allocations: 1.332 MB / 464.6 MB, free: 22.34 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004969/0.2879, allocations: 487.6 kB / 465.1 MB, free: 22.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.229e-05/0.288, allocations: 27.59 kB / 465.1 MB, free: 22.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.961e-05/0.288, allocations: 38.44 kB / 465.1 MB, free: 22.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=68): time 2.245e-06/0.2881, allocations: 4 kB / 465.1 MB, free: 22.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=68): time 0.001797/0.2899, allocations: 1.53 MB / 466.7 MB, free: 21.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.973e-05/0.2899, allocations: 63.56 kB / 466.7 MB, free: 21.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001405/0.2913, allocations: 1.284 MB / 468 MB, free: 21.24 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.132e-05/0.2913, allocations: 40.36 kB / 468.1 MB, free: 21.2 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004333/0.2918, allocations: 0.773 MB / 468.8 MB, free: 20.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001278/0.2919, allocations: 232.7 kB / 469.1 MB, free: 20.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.956e-05/0.292, allocations: 66.16 kB / 469.1 MB, free: 20.36 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.907e-05/0.2921, allocations: 333 kB / 469.5 MB, free: 20.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004989/0.2926, allocations: 438.7 kB / 469.9 MB, free: 19.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005678/0.2931, allocations: 0.5362 MB / 470.4 MB, free: 19.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001096/0.2942, allocations: 1.008 MB / 471.4 MB, free: 19.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/0.2943, allocations: 1.25 kB / 471.4 MB, free: 19.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001347/0.2956, allocations: 1.191 MB / 472.6 MB, free: 19.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.94e-05/0.2956, allocations: 9.938 kB / 472.6 MB, free: 19.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.2957, allocations: 2.766 kB / 472.6 MB, free: 19.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.197e-05/0.2957, allocations: 5.531 kB / 472.6 MB, free: 19.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004453/0.2961, allocations: 134.2 kB / 472.8 MB, free: 19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.32e-05/0.2961, allocations: 7.016 kB / 472.8 MB, free: 19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002503/0.2964, allocations: 57.62 kB / 472.8 MB, free: 18.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.646e-05/0.2964, allocations: 27.78 kB / 472.9 MB, free: 18.95 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004299/0.2969, allocations: 374.8 kB / 473.2 MB, free: 18.74 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001213/0.297, allocations: 139.2 kB / 473.4 MB, free: 18.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00152/0.2985, allocations: 1.201 MB / 474.6 MB, free: 18.3 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.678e-06/0.2986, allocations: 15.23 kB / 474.6 MB, free: 18.3 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.2986, allocations: 1 kB / 474.6 MB, free: 18.3 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.037e-06/0.2986, allocations: 3.094 kB / 474.6 MB, free: 18.3 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002654/0.3012, allocations: 2.37 MB / 476.9 MB, free: 17.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.3013, allocations: 0 / 476.9 MB, free: 17.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004345/0.3017, allocations: 111.8 kB / 477.1 MB, free: 17.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.785e-06/0.3017, allocations: 11.02 kB / 477.1 MB, free: 17.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.106e-05/0.3017, allocations: 13.16 kB / 477.1 MB, free: 17.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.081e-06/0.3018, allocations: 12.09 kB / 477.1 MB, free: 17.39 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.3018, allocations: 0 / 477.1 MB, free: 17.39 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001931/0.3037, allocations: 1.885 MB / 479 MB, free: 16.55 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000119/0.3038, allocations: 201.7 kB / 479.2 MB, free: 16.34 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.116e-05/0.3039, allocations: 12.67 kB / 479.2 MB, free: 16.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002078/0.3041, allocations: 13.27 kB / 479.2 MB, free: 16.31 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.255e-05/0.3042, allocations: 52.02 kB / 479.3 MB, free: 16.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.537e-05/0.3042, allocations: 16.61 kB / 479.3 MB, free: 16.26 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008617/0.3051, allocations: 0.8902 MB / 480.2 MB, free: 15.54 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3051, allocations: 0 / 480.2 MB, free: 15.54 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005051/0.3056, allocations: 214.9 kB / 480.4 MB, free: 15.32 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 (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.001774/0.3074, allocations: 2.451 MB / 482.8 MB, free: 13.02 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00101/0.3084, allocations: 0.9954 MB / 483.8 MB, free: 12.13 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.3084, allocations: 0 / 483.8 MB, free: 12.13 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004811/0.3089, allocations: 0.5082 MB / 484.3 MB, free: 11.67 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006074/0.3096, allocations: 91.36 kB / 484.4 MB, free: 11.59 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01189/0.3215, allocations: 12.96 MB / 497.4 MB, free: 14.78 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008346/0.3223, allocations: 1.307 MB / 498.7 MB, free: 13.45 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002347/0.3226, allocations: 72.64 kB / 498.8 MB, free: 13.37 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005563/0.3231, allocations: 0.5969 MB / 499.4 MB, free: 12.77 MB / 366.1 MB Notification: Performance of SimCode: time 1.002e-06/0.3232, allocations: 0 / 499.4 MB, free: 12.77 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03167/0.3548, allocations: 17.67 MB / 0.5049 GB, free: 11.2 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002028/0.3551, allocations: 199.6 kB / 0.5051 GB, free: 10.94 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.073/2.428, allocations: 112 / 0.5051 GB, free: 10.94 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/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)