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.001185/0.001185, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001242/0.001242, allocations: 195.9 kB / 16.14 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.234/1.234, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2472/0.2472, allocations: 28.8 MB / 318.8 MB, free: 5.926 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001105/0.001105, allocations: 59.91 kB / 386 MB, free: 3.988 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2385/0.2397, allocations: 56.41 MB / 442.4 MB, free: 39.78 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_2): time 0.003056/0.2428, allocations: 3.641 MB / 446.1 MB, free: 37.51 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.000886/0.2436, allocations: 0.6548 MB / 446.7 MB, free: 37.3 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002421/0.2439, allocations: 18.16 kB / 446.8 MB, free: 37.29 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002785/0.2442, allocations: 133 kB / 446.9 MB, free: 37.24 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002233/0.2444, allocations: 97.23 kB / 447 MB, free: 37.2 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004197/0.2448, allocations: 304.7 kB / 447.3 MB, free: 37.18 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004631/0.2453, allocations: 0.8087 MB / 448.1 MB, free: 37.09 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005146/0.2458, allocations: 0.6256 MB / 448.7 MB, free: 36.93 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001427/0.246, allocations: 301.2 kB / 449 MB, free: 36.83 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001941/0.2462, allocations: 423.6 kB / 449.4 MB, free: 36.6 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.51e-05/0.2463, allocations: 54.56 kB / 449.5 MB, free: 36.6 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001276/0.2464, allocations: 88.5 kB / 449.6 MB, free: 36.59 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002058/0.2466, allocations: 401.4 kB / 449.9 MB, free: 36.42 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002292/0.2469, allocations: 0.5914 MB / 450.5 MB, free: 35.97 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005113/0.2474, allocations: 1.122 MB / 451.7 MB, free: 35.39 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.2474, allocations: 0 / 451.7 MB, free: 35.39 MB / 366.1 MB Notification: Performance of FrontEnd: time 6.81e-07/0.2474, allocations: 0 / 451.7 MB, free: 35.39 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.303e-05/0.2474, allocations: 0 / 451.7 MB, free: 35.39 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.001357/0.2488, allocations: 1.792 MB / 453.5 MB, free: 34.13 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.08e-05/0.2488, allocations: 12.53 kB / 453.5 MB, free: 34.12 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001404/0.249, allocations: 167.5 kB / 453.6 MB, free: 34.01 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001406/0.2491, allocations: 198.6 kB / 453.8 MB, free: 33.91 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005123/0.2496, allocations: 0.7475 MB / 454.6 MB, free: 33.35 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.842e-05/0.2497, allocations: 81.02 kB / 454.7 MB, free: 33.31 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.718e-05/0.2497, allocations: 105.9 kB / 454.8 MB, free: 33.27 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001125/0.2509, allocations: 1.174 MB / 455.9 MB, free: 32.78 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.802e-05/0.2509, allocations: 3.938 kB / 455.9 MB, free: 32.78 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.888e-05/0.251, allocations: 43.62 kB / 456 MB, free: 32.75 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.58e-05/0.251, allocations: 24.81 kB / 456 MB, free: 32.75 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001036/0.252, allocations: 1.104 MB / 457.1 MB, free: 32.48 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00281/0.2548, allocations: 3.698 MB / 460.8 MB, free: 30.43 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001063/0.2559, allocations: 1.339 MB / 462.1 MB, free: 30.11 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003663/0.2563, allocations: 480.6 kB / 462.6 MB, free: 29.99 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.665e-05/0.2564, allocations: 27.86 kB / 462.6 MB, free: 29.98 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.303e-05/0.2564, allocations: 38.03 kB / 462.7 MB, free: 29.94 MB / 366.1 MB Notification: Performance of pre-optimization done (n=67): time 1.663e-06/0.2564, allocations: 0 / 462.7 MB, free: 29.94 MB / 366.1 MB Notification: Performance of matching and sorting (n=67): time 0.001268/0.2577, allocations: 1.523 MB / 464.2 MB, free: 29.52 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.156e-05/0.2577, allocations: 67.88 kB / 464.3 MB, free: 29.45 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009718/0.2587, allocations: 1.293 MB / 465.6 MB, free: 29 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.567e-05/0.2587, allocations: 40.05 kB / 465.6 MB, free: 28.96 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003301/0.259, allocations: 0.7744 MB / 466.4 MB, free: 28.36 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.893e-05/0.2591, allocations: 226.1 kB / 466.6 MB, free: 28.18 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001132/0.2592, allocations: 115.8 kB / 466.7 MB, free: 28.11 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.247e-05/0.2593, allocations: 333.3 kB / 467 MB, free: 27.8 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003651/0.2597, allocations: 437 kB / 467.5 MB, free: 27.71 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003915/0.2601, allocations: 0.5247 MB / 468 MB, free: 27.51 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008889/0.261, allocations: 0.998 MB / 469 MB, free: 27.15 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.261, allocations: 0 / 469 MB, free: 27.15 MB / 366.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001136/0.2621, allocations: 1.181 MB / 470.2 MB, free: 26.79 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/0.2621, allocations: 5.594 kB / 470.2 MB, free: 26.79 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.2621, allocations: 3.281 kB / 470.2 MB, free: 26.79 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.491e-05/0.2622, allocations: 5.906 kB / 470.2 MB, free: 26.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004055/0.2626, allocations: 133.1 kB / 470.3 MB, free: 26.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.163e-05/0.2626, allocations: 14.5 kB / 470.3 MB, free: 26.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001996/0.2628, allocations: 51.81 kB / 470.4 MB, free: 26.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.484e-05/0.2628, allocations: 25.72 kB / 470.4 MB, free: 26.72 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.0003429/0.2632, allocations: 372.9 kB / 470.8 MB, free: 26.51 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001181/0.2633, allocations: 145.3 kB / 470.9 MB, free: 26.43 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001198/0.2645, allocations: 1.197 MB / 472.1 MB, free: 26.07 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.2645, allocations: 6.062 kB / 472.1 MB, free: 26.07 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.2645, allocations: 3.938 kB / 472.1 MB, free: 26.06 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.471e-06/0.2645, allocations: 4.078 kB / 472.1 MB, free: 26.06 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002093/0.2666, allocations: 2.355 MB / 474.5 MB, free: 25.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.2667, allocations: 1.125 kB / 474.5 MB, free: 25.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003929/0.2671, allocations: 111.2 kB / 474.6 MB, free: 25.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.849e-06/0.2671, allocations: 10.38 kB / 474.6 MB, free: 25.18 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.861e-05/0.2671, allocations: 17.05 kB / 474.6 MB, free: 25.17 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.576e-06/0.2671, allocations: 2.312 kB / 474.6 MB, free: 25.17 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.2671, allocations: 0 / 474.6 MB, free: 25.17 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001607/0.2687, allocations: 1.87 MB / 476.5 MB, free: 24.56 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001141/0.2689, allocations: 205 kB / 476.7 MB, free: 24.38 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.405e-05/0.2689, allocations: 19.28 kB / 476.7 MB, free: 24.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001957/0.2691, allocations: 19.28 kB / 476.7 MB, free: 24.35 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.796e-05/0.2692, allocations: 37.06 kB / 476.7 MB, free: 24.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.75e-05/0.2692, allocations: 20.56 kB / 476.8 MB, free: 24.34 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008024/0.2701, allocations: 0.8929 MB / 477.7 MB, free: 24.03 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2701, allocations: 1.062 kB / 477.7 MB, free: 24.03 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004582/0.2705, allocations: 214.6 kB / 477.9 MB, free: 23.95 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.001797/0.2723, allocations: 2.446 MB / 480.3 MB, free: 22.79 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009527/0.2733, allocations: 0.9826 MB / 481.3 MB, free: 22.58 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.2733, allocations: 1 kB / 481.3 MB, free: 22.58 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004742/0.2738, allocations: 0.5108 MB / 481.8 MB, free: 22.46 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005794/0.2744, allocations: 86.64 kB / 481.9 MB, free: 22.4 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01132/0.2857, allocations: 12.92 MB / 494.8 MB, free: 14.16 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006523/0.2864, allocations: 1.306 MB / 496.1 MB, free: 13.06 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002036/0.2866, allocations: 80.14 kB / 496.2 MB, free: 12.99 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004206/0.287, allocations: 0.5929 MB / 496.8 MB, free: 12.45 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.287, allocations: 3.938 kB / 496.8 MB, free: 12.45 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.102/1.389, allocations: 18.05 MB / 0.5028 GB, free: 13.04 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003285/1.389, allocations: 197.4 kB / 0.503 GB, free: 12.78 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.816/5.205, allocations: 4 kB / 0.503 GB, free: 12.77 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)