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.001055/0.001055, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001043/0.001043, allocations: 197 kB / 16.26 MB, free: 6.621 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.284/1.284, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2394/0.2394, allocations: 28.81 MB / 318.9 MB, free: 5.855 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001149/0.001149, allocations: 59.91 kB / 386.2 MB, free: 3.848 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2296/0.2308, allocations: 56.41 MB / 442.6 MB, free: 39.66 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_3): time 0.003359/0.2342, allocations: 3.646 MB / 446.3 MB, free: 37.39 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009625/0.2352, allocations: 0.6572 MB / 446.9 MB, free: 37.17 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002768/0.2355, allocations: 18.41 kB / 446.9 MB, free: 37.17 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003062/0.2358, allocations: 130.9 kB / 447.1 MB, free: 37.11 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002612/0.236, allocations: 94.59 kB / 447.2 MB, free: 37.08 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005216/0.2366, allocations: 312.5 kB / 447.5 MB, free: 37.06 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005423/0.2371, allocations: 0.8469 MB / 448.3 MB, free: 36.97 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005685/0.2377, allocations: 0.6428 MB / 449 MB, free: 36.82 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000165/0.2379, allocations: 338.8 kB / 449.3 MB, free: 36.63 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002166/0.2381, allocations: 447.1 kB / 449.7 MB, free: 36.37 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.445e-05/0.2382, allocations: 87.28 kB / 449.8 MB, free: 36.37 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001374/0.2383, allocations: 113.4 kB / 449.9 MB, free: 36.36 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002196/0.2386, allocations: 434 kB / 450.4 MB, free: 36.16 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003306/0.2389, allocations: 0.6208 MB / 451 MB, free: 35.68 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008446/0.2398, allocations: 1.18 MB / 452.2 MB, free: 35.07 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2398, allocations: 6.812 kB / 452.2 MB, free: 35.07 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2398, allocations: 0 / 452.2 MB, free: 35.07 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.678e-05/0.2398, allocations: 0 / 452.2 MB, free: 35.07 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.001631/0.2414, allocations: 1.779 MB / 453.9 MB, free: 33.82 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.563e-05/0.2415, allocations: 8.625 kB / 453.9 MB, free: 33.82 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001552/0.2416, allocations: 171.4 kB / 454.1 MB, free: 33.7 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001611/0.2418, allocations: 196.8 kB / 454.3 MB, free: 33.59 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005778/0.2424, allocations: 0.7455 MB / 455.1 MB, free: 33.04 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.694e-05/0.2425, allocations: 82.22 kB / 455.1 MB, free: 33 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.874e-05/0.2425, allocations: 106.2 kB / 455.2 MB, free: 32.96 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001273/0.2438, allocations: 1.177 MB / 456.4 MB, free: 32.47 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.324e-05/0.2439, allocations: 7.875 kB / 456.4 MB, free: 32.46 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.353e-05/0.2439, allocations: 50 kB / 456.5 MB, free: 32.43 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.589e-05/0.2439, allocations: 26.03 kB / 456.5 MB, free: 32.43 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00117/0.2451, allocations: 1.106 MB / 457.6 MB, free: 32.16 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003105/0.2482, allocations: 3.718 MB / 461.3 MB, free: 30.11 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001161/0.2494, allocations: 1.333 MB / 462.7 MB, free: 29.78 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004055/0.2498, allocations: 486.1 kB / 463.1 MB, free: 29.66 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.621e-05/0.2499, allocations: 33.3 kB / 463.2 MB, free: 29.65 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.584e-05/0.2499, allocations: 46.41 kB / 463.2 MB, free: 29.6 MB / 366.1 MB Notification: Performance of pre-optimization done (n=68): time 2.074e-06/0.2499, allocations: 0 / 463.2 MB, free: 29.6 MB / 366.1 MB Notification: Performance of matching and sorting (n=68): time 0.001401/0.2513, allocations: 1.526 MB / 464.7 MB, free: 29.19 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.198e-05/0.2514, allocations: 67.16 kB / 464.8 MB, free: 29.12 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009972/0.2524, allocations: 1.286 MB / 466.1 MB, free: 28.68 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.021e-05/0.2524, allocations: 40.36 kB / 466.1 MB, free: 28.63 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003442/0.2528, allocations: 0.7779 MB / 466.9 MB, free: 28.02 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001046/0.2529, allocations: 232 kB / 467.1 MB, free: 27.84 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001265/0.253, allocations: 115.1 kB / 467.2 MB, free: 27.78 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.688e-05/0.2531, allocations: 332.8 kB / 467.6 MB, free: 27.46 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004076/0.2535, allocations: 440.4 kB / 468 MB, free: 27.37 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000449/0.2539, allocations: 0.5315 MB / 468.5 MB, free: 27.17 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009731/0.2549, allocations: 0.9999 MB / 469.5 MB, free: 26.82 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.2549, allocations: 0 / 469.5 MB, free: 26.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001242/0.2562, allocations: 1.189 MB / 470.7 MB, free: 26.45 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/0.2562, allocations: 8.75 kB / 470.7 MB, free: 26.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.2562, allocations: 2.281 kB / 470.7 MB, free: 26.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.748e-05/0.2562, allocations: 5.344 kB / 470.7 MB, free: 26.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004768/0.2567, allocations: 140.6 kB / 470.9 MB, free: 26.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.141e-05/0.2567, allocations: 10 kB / 470.9 MB, free: 26.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002326/0.257, allocations: 52 kB / 470.9 MB, free: 26.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.781e-05/0.257, allocations: 30.97 kB / 471 MB, free: 26.38 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.0003775/0.2574, allocations: 371.9 kB / 471.3 MB, free: 26.17 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001241/0.2575, allocations: 145.9 kB / 471.5 MB, free: 26.09 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001342/0.2589, allocations: 1.205 MB / 472.7 MB, free: 25.73 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.444e-06/0.2589, allocations: 10.91 kB / 472.7 MB, free: 25.72 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.2589, allocations: 3.375 kB / 472.7 MB, free: 25.72 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.2589, allocations: 4.781 kB / 472.7 MB, free: 25.72 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002249/0.2612, allocations: 2.367 MB / 475.1 MB, free: 24.85 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.2612, allocations: 0 / 475.1 MB, free: 24.85 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004321/0.2616, allocations: 110.4 kB / 475.2 MB, free: 24.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.44e-06/0.2616, allocations: 15.12 kB / 475.2 MB, free: 24.83 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.339e-05/0.2617, allocations: 20.92 kB / 475.2 MB, free: 24.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.2617, allocations: 2.188 kB / 475.2 MB, free: 24.82 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.2617, allocations: 0 / 475.2 MB, free: 24.82 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001734/0.2634, allocations: 1.869 MB / 477.1 MB, free: 24.22 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001256/0.2636, allocations: 208.7 kB / 477.3 MB, free: 24.03 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.642e-05/0.2637, allocations: 20.19 kB / 477.3 MB, free: 24.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002218/0.2639, allocations: 14.03 kB / 477.3 MB, free: 24.01 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.71e-05/0.264, allocations: 37.95 kB / 477.3 MB, free: 24 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.059e-05/0.264, allocations: 21.27 kB / 477.4 MB, free: 24 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008944/0.2649, allocations: 0.8905 MB / 478.3 MB, free: 23.69 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.2649, allocations: 0 / 478.3 MB, free: 23.69 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005109/0.2654, allocations: 204.7 kB / 478.5 MB, free: 23.62 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.001891/0.2673, allocations: 2.461 MB / 480.9 MB, free: 22.46 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001345/0.2687, allocations: 1.023 MB / 481.9 MB, free: 22.21 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.2687, allocations: 5.625 kB / 481.9 MB, free: 22.21 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005094/0.2692, allocations: 0.5103 MB / 482.5 MB, free: 22.09 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006361/0.2699, allocations: 89.34 kB / 482.5 MB, free: 22.04 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01246/0.2823, allocations: 12.93 MB / 495.5 MB, free: 13.63 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006925/0.2831, allocations: 1.314 MB / 496.8 MB, free: 12.51 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002337/0.2833, allocations: 80.14 kB / 496.9 MB, free: 12.45 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004609/0.2838, allocations: 0.593 MB / 497.5 MB, free: 11.9 MB / 366.1 MB Notification: Performance of SimCode: time 6.52e-07/0.2838, allocations: 0 / 497.5 MB, free: 11.9 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.16/0.4438, allocations: 18.25 MB / 0.5036 GB, free: 12.29 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000249/0.4441, allocations: 198.4 kB / 0.5038 GB, free: 12.04 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.118/2.562, allocations: 4.062 kB / 0.5038 GB, free: 12.03 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)