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.001134/0.001134, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001279/0.001279, allocations: 191.3 kB / 16.14 MB, free: 6.707 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.231/1.231, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2599/0.2599, allocations: 28.81 MB / 318.8 MB, free: 5.926 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 63.91 kB / 386 MB, free: 3.973 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2191/0.2203, allocations: 56.41 MB / 442.4 MB, free: 39.85 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_3): time 0.003092/0.2234, allocations: 3.643 MB / 446.1 MB, free: 37.58 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008827/0.2243, allocations: 0.6664 MB / 446.8 MB, free: 37.36 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002427/0.2246, allocations: 17.25 kB / 446.8 MB, free: 37.36 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002715/0.2249, allocations: 128.9 kB / 446.9 MB, free: 37.3 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002243/0.2251, allocations: 88.98 kB / 447 MB, free: 37.27 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004098/0.2255, allocations: 306.4 kB / 447.3 MB, free: 37.26 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004521/0.226, allocations: 0.8199 MB / 448.1 MB, free: 37.16 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004919/0.2265, allocations: 0.6043 MB / 448.7 MB, free: 37.01 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001347/0.2266, allocations: 300.6 kB / 449 MB, free: 36.92 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001827/0.2268, allocations: 428.3 kB / 449.4 MB, free: 36.68 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.561e-05/0.2269, allocations: 56.78 kB / 449.5 MB, free: 36.68 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001269/0.227, allocations: 86.5 kB / 449.6 MB, free: 36.66 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001961/0.2272, allocations: 409 kB / 450 MB, free: 36.49 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002145/0.2275, allocations: 0.5925 MB / 450.5 MB, free: 36.04 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004965/0.228, allocations: 1.129 MB / 451.7 MB, free: 35.46 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.228, allocations: 0 / 451.7 MB, free: 35.46 MB / 366.1 MB Notification: Performance of FrontEnd: time 7.22e-07/0.228, allocations: 0 / 451.7 MB, free: 35.46 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.171e-05/0.228, allocations: 0 / 451.7 MB, free: 35.46 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.001336/0.2293, allocations: 1.795 MB / 453.5 MB, free: 34.19 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.903e-05/0.2294, allocations: 8.844 kB / 453.5 MB, free: 34.19 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001365/0.2295, allocations: 166.7 kB / 453.6 MB, free: 34.07 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001332/0.2297, allocations: 193.9 kB / 453.8 MB, free: 33.97 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005112/0.2302, allocations: 0.7573 MB / 454.6 MB, free: 33.4 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.584e-05/0.2302, allocations: 77.41 kB / 454.7 MB, free: 33.37 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.554e-05/0.2303, allocations: 106.7 kB / 454.8 MB, free: 33.33 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001097/0.2314, allocations: 1.183 MB / 456 MB, free: 32.84 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.739e-05/0.2314, allocations: 3.938 kB / 456 MB, free: 32.84 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.791e-05/0.2315, allocations: 42.12 kB / 456 MB, free: 32.8 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.402e-05/0.2315, allocations: 25.06 kB / 456 MB, free: 32.8 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001061/0.2326, allocations: 1.117 MB / 457.1 MB, free: 32.53 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002751/0.2353, allocations: 3.707 MB / 460.8 MB, free: 30.48 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001064/0.2364, allocations: 1.34 MB / 462.2 MB, free: 30.15 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003778/0.2368, allocations: 483.1 kB / 462.7 MB, free: 30.04 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.544e-05/0.2368, allocations: 33.17 kB / 462.7 MB, free: 30.02 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.365e-05/0.2369, allocations: 45.36 kB / 462.7 MB, free: 29.97 MB / 366.1 MB Notification: Performance of pre-optimization done (n=68): time 1.553e-06/0.2369, allocations: 4 kB / 462.7 MB, free: 29.97 MB / 366.1 MB Notification: Performance of matching and sorting (n=68): time 0.001285/0.2382, allocations: 1.529 MB / 464.3 MB, free: 29.56 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.904e-05/0.2382, allocations: 61.16 kB / 464.3 MB, free: 29.49 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009027/0.2391, allocations: 1.286 MB / 465.6 MB, free: 29.05 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.048e-05/0.2391, allocations: 36.45 kB / 465.7 MB, free: 29.01 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003011/0.2394, allocations: 0.7742 MB / 466.4 MB, free: 28.4 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.857e-05/0.2395, allocations: 227.5 kB / 466.6 MB, free: 28.22 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001273/0.2397, allocations: 122.4 kB / 466.8 MB, free: 28.16 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.076e-05/0.2397, allocations: 329.9 kB / 467.1 MB, free: 27.84 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003771/0.2401, allocations: 439.4 kB / 467.5 MB, free: 27.75 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004145/0.2405, allocations: 0.5388 MB / 468.1 MB, free: 27.54 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008984/0.2414, allocations: 0.9969 MB / 469.1 MB, free: 27.2 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.2414, allocations: 0 / 469.1 MB, free: 27.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001137/0.2426, allocations: 1.19 MB / 470.2 MB, free: 26.83 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/0.2426, allocations: 5.656 kB / 470.2 MB, free: 26.83 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.2426, allocations: 3.688 kB / 470.3 MB, free: 26.83 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.469e-05/0.2426, allocations: 5.438 kB / 470.3 MB, free: 26.83 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004025/0.243, allocations: 134.7 kB / 470.4 MB, free: 26.81 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.011e-05/0.2431, allocations: 9.812 kB / 470.4 MB, free: 26.81 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002045/0.2433, allocations: 56.69 kB / 470.5 MB, free: 26.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.358e-05/0.2433, allocations: 34.77 kB / 470.5 MB, free: 26.75 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.0003397/0.2436, allocations: 372.4 kB / 470.9 MB, free: 26.55 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000113/0.2438, allocations: 141.5 kB / 471 MB, free: 26.47 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001201/0.245, allocations: 1.202 MB / 472.2 MB, free: 26.11 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.245, allocations: 15.22 kB / 472.2 MB, free: 26.1 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.245, allocations: 0 / 472.2 MB, free: 26.1 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.245, allocations: 3.328 kB / 472.2 MB, free: 26.1 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002124/0.2471, allocations: 2.369 MB / 474.6 MB, free: 25.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.2471, allocations: 3.938 kB / 474.6 MB, free: 25.22 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003989/0.2476, allocations: 119.5 kB / 474.7 MB, free: 25.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.2476, allocations: 6.031 kB / 474.7 MB, free: 25.2 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.003e-05/0.2476, allocations: 16.69 kB / 474.7 MB, free: 25.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.2476, allocations: 6.125 kB / 474.7 MB, free: 25.19 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.2476, allocations: 1.094 kB / 474.7 MB, free: 25.19 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001612/0.2492, allocations: 1.87 MB / 476.6 MB, free: 24.59 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001135/0.2494, allocations: 213.8 kB / 476.8 MB, free: 24.4 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.952e-05/0.2494, allocations: 12 kB / 476.8 MB, free: 24.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001959/0.2496, allocations: 15.28 kB / 476.8 MB, free: 24.38 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.296e-05/0.2497, allocations: 48.47 kB / 476.9 MB, free: 24.37 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.79e-05/0.2497, allocations: 21.47 kB / 476.9 MB, free: 24.36 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008097/0.2506, allocations: 0.8938 MB / 477.8 MB, free: 24.05 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2506, allocations: 0 / 477.8 MB, free: 24.05 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004673/0.251, allocations: 208.7 kB / 478 MB, free: 23.98 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.001756/0.2528, allocations: 2.458 MB / 480.5 MB, free: 22.82 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001004/0.2538, allocations: 0.9857 MB / 481.4 MB, free: 22.61 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.2538, allocations: 1.406 kB / 481.4 MB, free: 22.61 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004638/0.2543, allocations: 0.5126 MB / 482 MB, free: 22.49 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005671/0.2549, allocations: 90.17 kB / 482 MB, free: 22.43 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01098/0.2659, allocations: 12.92 MB / 495 MB, free: 14.07 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000638/0.2665, allocations: 1.31 MB / 496.3 MB, free: 12.96 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002123/0.2667, allocations: 73.03 kB / 496.3 MB, free: 12.9 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004192/0.2672, allocations: 0.5965 MB / 496.9 MB, free: 12.35 MB / 366.1 MB Notification: Performance of SimCode: time 6.31e-07/0.2672, allocations: 0 / 496.9 MB, free: 12.35 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.399/4.666, allocations: 18.05 MB / 0.5029 GB, free: 12.87 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002458/4.667, allocations: 199.8 kB / 0.5031 GB, free: 12.61 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.2/6.867, allocations: 3.75 kB / 0.5031 GB, free: 12.61 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)