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.001304/0.001304, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001236/0.001236, allocations: 195.8 kB / 16.53 MB, free: 6.664 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.318/1.318, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2675/0.2675, allocations: 28.8 MB / 319.2 MB, free: 5.742 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00137/0.001371, allocations: 59.91 kB / 386.7 MB, free: 3.547 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2344/0.2358, allocations: 56.41 MB / 443.1 MB, free: 39.61 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_3): time 0.003426/0.2392, allocations: 3.648 MB / 446.8 MB, free: 37.31 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009598/0.2402, allocations: 0.67 MB / 447.5 MB, free: 37.11 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002504/0.2405, allocations: 17.34 kB / 447.5 MB, free: 37.1 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000297/0.2408, allocations: 177.8 kB / 447.6 MB, free: 37 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002548/0.2411, allocations: 136.7 kB / 447.8 MB, free: 36.93 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004937/0.2416, allocations: 354.8 kB / 448.1 MB, free: 36.91 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005074/0.2421, allocations: 0.8381 MB / 449 MB, free: 36.82 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000582/0.2427, allocations: 0.6499 MB / 449.6 MB, free: 36.6 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001634/0.2428, allocations: 331.8 kB / 449.9 MB, free: 36.41 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001956/0.243, allocations: 412.7 kB / 450.3 MB, free: 36.16 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001013/0.2431, allocations: 83.47 kB / 450.4 MB, free: 36.16 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001426/0.2433, allocations: 127 kB / 450.5 MB, free: 36.15 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000207/0.2435, allocations: 439.4 kB / 451 MB, free: 35.94 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002433/0.2438, allocations: 0.6185 MB / 451.6 MB, free: 35.46 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006196/0.2444, allocations: 1.181 MB / 452.8 MB, free: 34.86 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.2444, allocations: 0 / 452.8 MB, free: 34.86 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2444, allocations: 0 / 452.8 MB, free: 34.86 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.432e-05/0.2444, allocations: 0 / 452.8 MB, free: 34.86 MB / 366.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.001463/0.2459, allocations: 1.787 MB / 454.6 MB, free: 33.6 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.047e-05/0.2459, allocations: 9.156 kB / 454.6 MB, free: 33.6 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000148/0.2461, allocations: 172 kB / 454.7 MB, free: 33.48 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001687/0.2462, allocations: 199.1 kB / 454.9 MB, free: 33.37 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005406/0.2468, allocations: 0.7452 MB / 455.7 MB, free: 32.81 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.302e-05/0.2468, allocations: 78.84 kB / 455.8 MB, free: 32.78 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.463e-05/0.2469, allocations: 106.6 kB / 455.9 MB, free: 32.74 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001154/0.2481, allocations: 1.178 MB / 457 MB, free: 32.25 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.924e-05/0.2481, allocations: 7.875 kB / 457 MB, free: 32.24 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.203e-05/0.2482, allocations: 43.56 kB / 457.1 MB, free: 32.21 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.658e-05/0.2482, allocations: 25 kB / 457.1 MB, free: 32.21 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001124/0.2493, allocations: 1.109 MB / 458.2 MB, free: 31.94 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002969/0.2523, allocations: 3.713 MB / 461.9 MB, free: 29.89 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001135/0.2535, allocations: 1.336 MB / 463.3 MB, free: 29.57 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004092/0.2539, allocations: 486 kB / 463.7 MB, free: 29.45 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.812e-05/0.2539, allocations: 28.86 kB / 463.8 MB, free: 29.44 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.451e-05/0.254, allocations: 37.38 kB / 463.8 MB, free: 29.39 MB / 366.1 MB Notification: Performance of pre-optimization done (n=68): time 1.753e-06/0.254, allocations: 3.938 kB / 463.8 MB, free: 29.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=68): time 0.001423/0.2554, allocations: 1.537 MB / 465.4 MB, free: 28.97 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.434e-05/0.2554, allocations: 61.62 kB / 465.4 MB, free: 28.9 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001025/0.2565, allocations: 1.29 MB / 466.7 MB, free: 28.46 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.694e-05/0.2565, allocations: 35.92 kB / 466.7 MB, free: 28.42 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003333/0.2568, allocations: 0.7766 MB / 467.5 MB, free: 27.81 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.547e-05/0.2569, allocations: 227.1 kB / 467.7 MB, free: 27.63 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001212/0.2571, allocations: 115.9 kB / 467.8 MB, free: 27.57 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.312e-05/0.2571, allocations: 328.9 kB / 468.2 MB, free: 27.25 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003989/0.2575, allocations: 443.6 kB / 468.6 MB, free: 27.16 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004273/0.258, allocations: 0.5347 MB / 469.1 MB, free: 26.95 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009732/0.2589, allocations: 1.002 MB / 470.1 MB, free: 26.6 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.259, allocations: 1.344 kB / 470.1 MB, free: 26.6 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001235/0.2602, allocations: 1.185 MB / 471.3 MB, free: 26.24 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.563e-05/0.2602, allocations: 9.812 kB / 471.3 MB, free: 26.24 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.2602, allocations: 5.906 kB / 471.3 MB, free: 26.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.709e-05/0.2603, allocations: 5.781 kB / 471.3 MB, free: 26.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004462/0.2607, allocations: 136.4 kB / 471.5 MB, free: 26.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.139e-05/0.2607, allocations: 5.531 kB / 471.5 MB, free: 26.22 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002352/0.261, allocations: 64.11 kB / 471.5 MB, free: 26.17 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.641e-05/0.261, allocations: 22.31 kB / 471.6 MB, free: 26.16 MB / 366.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.0003624/0.2614, allocations: 372.6 kB / 471.9 MB, free: 25.96 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001333/0.2615, allocations: 153.7 kB / 472.1 MB, free: 25.87 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001357/0.2629, allocations: 1.193 MB / 473.3 MB, free: 25.52 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.175e-06/0.2629, allocations: 15.12 kB / 473.3 MB, free: 25.51 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.2629, allocations: 0 / 473.3 MB, free: 25.51 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.124e-06/0.2629, allocations: 4.516 kB / 473.3 MB, free: 25.51 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002248/0.2652, allocations: 2.375 MB / 475.7 MB, free: 24.63 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.876e-06/0.2652, allocations: 0 / 475.7 MB, free: 24.63 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004433/0.2656, allocations: 110.5 kB / 475.8 MB, free: 24.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.16e-06/0.2657, allocations: 14.97 kB / 475.8 MB, free: 24.61 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.038e-05/0.2657, allocations: 12.69 kB / 475.8 MB, free: 24.61 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.449e-06/0.2657, allocations: 5.797 kB / 475.8 MB, free: 24.61 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.2657, allocations: 0 / 475.8 MB, free: 24.61 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001761/0.2675, allocations: 1.882 MB / 477.7 MB, free: 24 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001287/0.2676, allocations: 209 kB / 477.9 MB, free: 23.81 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.876e-05/0.2677, allocations: 11.59 kB / 477.9 MB, free: 23.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002287/0.2679, allocations: 11.94 kB / 477.9 MB, free: 23.79 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.276e-05/0.268, allocations: 41.8 kB / 478 MB, free: 23.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.016e-05/0.268, allocations: 21.28 kB / 478 MB, free: 23.78 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008753/0.2689, allocations: 0.8917 MB / 478.9 MB, free: 23.47 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2689, allocations: 1.094 kB / 478.9 MB, free: 23.47 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005017/0.2694, allocations: 208.5 kB / 479.1 MB, free: 23.4 MB / 366.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.001964/0.2714, allocations: 2.45 MB / 481.5 MB, free: 22.24 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001322/0.2727, allocations: 1.027 MB / 482.6 MB, free: 22 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.2728, allocations: 0 / 482.6 MB, free: 22 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005172/0.2733, allocations: 0.5109 MB / 483.1 MB, free: 21.88 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006308/0.2739, allocations: 95 kB / 483.2 MB, free: 21.82 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01193/0.2859, allocations: 12.39 MB / 495.5 MB, free: 14.04 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007142/0.2866, allocations: 1.309 MB / 496.9 MB, free: 12.93 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002227/0.2868, allocations: 73.05 kB / 496.9 MB, free: 12.87 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004499/0.2873, allocations: 0.589 MB / 497.5 MB, free: 12.33 MB / 366.1 MB Notification: Performance of SimCode: time 4.21e-07/0.2873, allocations: 0 / 497.5 MB, free: 12.33 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.041/1.328, allocations: 18.35 MB / 0.5038 GB, free: 12.45 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.61/13.94, allocations: 9.406 kB / 0.5038 GB, free: 12.44 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)