Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.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_2,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_2,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2",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.001383/0.001383, allocations: 108 kB / 15.6 MB, free: 132 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.001495/0.001495, allocations: 193.8 kB / 16.53 MB, free: 6.391 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.308/1.308, 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.2643/0.2643, allocations: 28.82 MB / 319.2 MB, free: 5.734 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001469, allocations: 67.88 kB / 386.7 MB, free: 3.527 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2461/0.2476, allocations: 56.4 MB / 443.1 MB, free: 39.65 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_2): time 0.003656/0.2513, allocations: 3.644 MB / 446.8 MB, free: 37.36 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00104/0.2524, allocations: 0.6726 MB / 447.5 MB, free: 37.15 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002774/0.2527, allocations: 24.88 kB / 447.5 MB, free: 37.14 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003247/0.253, allocations: 171.4 kB / 447.6 MB, free: 37.05 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002752/0.2533, allocations: 141.9 kB / 447.8 MB, free: 36.96 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005182/0.2538, allocations: 350.9 kB / 448.1 MB, free: 36.95 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005214/0.2543, allocations: 0.8399 MB / 449 MB, free: 36.86 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005865/0.2549, allocations: 0.6357 MB / 449.6 MB, free: 36.65 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001679/0.2551, allocations: 331.6 kB / 449.9 MB, free: 36.46 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002073/0.2553, allocations: 414.6 kB / 450.3 MB, free: 36.21 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001075/0.2554, allocations: 87.78 kB / 450.4 MB, free: 36.2 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001483/0.2556, allocations: 118.5 kB / 450.5 MB, free: 36.2 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002208/0.2558, allocations: 441 kB / 451 MB, free: 35.99 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002547/0.2561, allocations: 0.6179 MB / 451.6 MB, free: 35.51 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006283/0.2567, allocations: 1.178 MB / 452.8 MB, free: 34.91 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.2567, allocations: 0 / 452.8 MB, free: 34.91 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.2567, allocations: 0 / 452.8 MB, free: 34.91 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.46e-05/0.2568, allocations: 3.938 kB / 452.8 MB, free: 34.9 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.001545/0.2583, allocations: 1.782 MB / 454.5 MB, free: 33.64 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.19e-05/0.2583, allocations: 8.719 kB / 454.6 MB, free: 33.64 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001526/0.2585, allocations: 171.5 kB / 454.7 MB, free: 33.53 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001618/0.2587, allocations: 201 kB / 454.9 MB, free: 33.42 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005744/0.2593, allocations: 0.7466 MB / 455.7 MB, free: 32.86 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.457e-05/0.2593, allocations: 81.8 kB / 455.7 MB, free: 32.82 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.802e-05/0.2594, allocations: 104.4 kB / 455.8 MB, free: 32.79 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001185/0.2606, allocations: 1.177 MB / 457 MB, free: 32.29 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.041e-05/0.2606, allocations: 7.938 kB / 457 MB, free: 32.29 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.481e-05/0.2607, allocations: 42.22 kB / 457.1 MB, free: 32.25 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.763e-05/0.2607, allocations: 25.59 kB / 457.1 MB, free: 32.25 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00115/0.2619, allocations: 1.099 MB / 458.2 MB, free: 31.99 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003122/0.265, allocations: 3.701 MB / 461.9 MB, free: 29.95 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001176/0.2662, allocations: 1.328 MB / 463.2 MB, free: 29.63 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004123/0.2666, allocations: 480.3 kB / 463.7 MB, free: 29.51 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.777e-05/0.2667, allocations: 29.73 kB / 463.7 MB, free: 29.5 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.574e-05/0.2667, allocations: 41.97 kB / 463.8 MB, free: 29.45 MB / 366.1 MB Notification: Performance of pre-optimization done (n=67): time 1.913e-06/0.2667, allocations: 0 / 463.8 MB, free: 29.45 MB / 366.1 MB Notification: Performance of matching and sorting (n=67): time 0.001418/0.2681, allocations: 1.527 MB / 465.3 MB, free: 29.03 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.276e-05/0.2682, allocations: 63.78 kB / 465.4 MB, free: 28.96 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001051/0.2692, allocations: 1.289 MB / 466.6 MB, free: 28.52 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.938e-05/0.2693, allocations: 40.52 kB / 466.7 MB, free: 28.48 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003477/0.2696, allocations: 0.779 MB / 467.5 MB, free: 27.87 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001003/0.2697, allocations: 227.2 kB / 467.7 MB, free: 27.69 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001263/0.2698, allocations: 116.7 kB / 467.8 MB, free: 27.62 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.928e-05/0.2699, allocations: 332.9 kB / 468.1 MB, free: 27.31 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004058/0.2703, allocations: 434 kB / 468.5 MB, free: 27.22 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004361/0.2708, allocations: 0.5314 MB / 469.1 MB, free: 27.02 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009639/0.2717, allocations: 0.9879 MB / 470.1 MB, free: 26.67 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.2717, allocations: 1.344 kB / 470.1 MB, free: 26.67 MB / 366.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001231/0.273, allocations: 1.188 MB / 471.3 MB, free: 26.3 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/0.273, allocations: 5.844 kB / 471.3 MB, free: 26.3 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.273, allocations: 2.906 kB / 471.3 MB, free: 26.3 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.084e-05/0.273, allocations: 9.656 kB / 471.3 MB, free: 26.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004399/0.2735, allocations: 126.8 kB / 471.4 MB, free: 26.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.251e-05/0.2735, allocations: 9.562 kB / 471.4 MB, free: 26.29 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000232/0.2737, allocations: 51.59 kB / 471.5 MB, free: 26.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.696e-05/0.2738, allocations: 25.94 kB / 471.5 MB, free: 26.24 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 (82): * Single equations (assignments): 82 * 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.000367/0.2742, allocations: 387.5 kB / 471.9 MB, free: 26.02 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001342/0.2743, allocations: 141.8 kB / 472 MB, free: 25.94 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001331/0.2756, allocations: 1.194 MB / 473.2 MB, free: 25.59 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.186e-06/0.2757, allocations: 5.906 kB / 473.2 MB, free: 25.59 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.2757, allocations: 5.125 kB / 473.2 MB, free: 25.58 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.2757, allocations: 3.281 kB / 473.2 MB, free: 25.58 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002266/0.278, allocations: 2.363 MB / 475.6 MB, free: 24.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.278, allocations: 0 / 475.6 MB, free: 24.71 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004402/0.2784, allocations: 110.4 kB / 475.7 MB, free: 24.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.901e-06/0.2784, allocations: 6.156 kB / 475.7 MB, free: 24.69 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.157e-05/0.2785, allocations: 16.88 kB / 475.7 MB, free: 24.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.2785, allocations: 2.375 kB / 475.7 MB, free: 24.68 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.2785, allocations: 0 / 475.7 MB, free: 24.68 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001734/0.2802, allocations: 1.869 MB / 477.6 MB, free: 24.08 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001259/0.2804, allocations: 210.2 kB / 477.8 MB, free: 23.89 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.878e-05/0.2804, allocations: 14.69 kB / 477.8 MB, free: 23.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002228/0.2807, allocations: 10.75 kB / 477.8 MB, free: 23.87 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.255e-05/0.2808, allocations: 38.36 kB / 477.8 MB, free: 23.87 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.975e-05/0.2808, allocations: 23.83 kB / 477.9 MB, free: 23.86 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008841/0.2817, allocations: 0.8961 MB / 478.8 MB, free: 23.55 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2817, allocations: 0 / 478.8 MB, free: 23.55 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004931/0.2822, allocations: 215.9 kB / 479 MB, free: 23.47 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 (67): * Single equations (assignments): 67 * 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.001906/0.2841, allocations: 2.435 MB / 481.4 MB, free: 22.32 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001319/0.2854, allocations: 1.02 MB / 482.4 MB, free: 22.08 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.2854, allocations: 0 / 482.4 MB, free: 22.08 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005029/0.286, allocations: 0.5067 MB / 482.9 MB, free: 21.96 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006341/0.2866, allocations: 100.3 kB / 483 MB, free: 21.89 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01192/0.2985, allocations: 12.37 MB / 495.4 MB, free: 14.15 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007177/0.2993, allocations: 1.31 MB / 496.7 MB, free: 13.04 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000212/0.2995, allocations: 76.39 kB / 496.8 MB, free: 12.98 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004519/0.2999, allocations: 0.593 MB / 497.4 MB, free: 12.43 MB / 366.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2999, allocations: 0 / 497.4 MB, free: 12.43 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.263/1.563, allocations: 18.35 MB / 0.5036 GB, free: 12.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.52/14.08, allocations: 10.14 kB / 0.5037 GB, free: 12.58 MB / 382.1 MB (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2_fmu --startTime=1900 --stopTime=2100 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe 2>&1)