Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.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_1,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_1,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1",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.001092/0.001092, 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.001304/0.001304, allocations: 198.5 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.223/1.223, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2585/0.2585, allocations: 28.8 MB / 318.8 MB, free: 5.934 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 59.91 kB / 386 MB, free: 3.988 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2393/0.2406, allocations: 56.41 MB / 442.4 MB, free: 39.79 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_1): time 0.00324/0.2439, allocations: 3.632 MB / 446.1 MB, free: 37.53 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009394/0.2448, allocations: 0.6581 MB / 446.7 MB, free: 37.31 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002524/0.2451, allocations: 18.06 kB / 446.7 MB, free: 37.3 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002778/0.2454, allocations: 114 kB / 446.9 MB, free: 37.26 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002189/0.2456, allocations: 87.33 kB / 446.9 MB, free: 37.22 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004312/0.246, allocations: 298.9 kB / 447.2 MB, free: 37.21 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004803/0.2465, allocations: 0.8015 MB / 448 MB, free: 37.11 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005352/0.2471, allocations: 0.6187 MB / 448.7 MB, free: 36.96 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001448/0.2472, allocations: 307.1 kB / 449 MB, free: 36.86 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001921/0.2474, allocations: 422.9 kB / 449.4 MB, free: 36.63 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.216e-05/0.2475, allocations: 54.5 kB / 449.4 MB, free: 36.63 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001346/0.2476, allocations: 82.3 kB / 449.5 MB, free: 36.62 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00021/0.2479, allocations: 409.7 kB / 449.9 MB, free: 36.44 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000217/0.2481, allocations: 0.5634 MB / 450.5 MB, free: 36.02 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005221/0.2486, allocations: 1.109 MB / 451.6 MB, free: 35.44 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.2486, allocations: 0 / 451.6 MB, free: 35.44 MB / 366.1 MB Notification: Performance of FrontEnd: time 7.12e-07/0.2486, allocations: 0 / 451.6 MB, free: 35.44 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.344e-05/0.2486, allocations: 0 / 451.6 MB, free: 35.44 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: 259 * Number of variables: 259 Notification: Performance of Generate backend data structure: time 0.00134/0.25, allocations: 1.724 MB / 453.3 MB, free: 34.22 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.274e-05/0.25, allocations: 8.5 kB / 453.3 MB, free: 34.22 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001458/0.2502, allocations: 178.4 kB / 453.5 MB, free: 34.1 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000143/0.2503, allocations: 192.5 kB / 453.7 MB, free: 34 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005147/0.2509, allocations: 0.7328 MB / 454.4 MB, free: 33.45 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.592e-05/0.2509, allocations: 76.97 kB / 454.5 MB, free: 33.41 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.078e-05/0.251, allocations: 107 kB / 454.6 MB, free: 33.38 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001091/0.2521, allocations: 1.143 MB / 455.7 MB, free: 32.89 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.805e-05/0.2521, allocations: 6.375 kB / 455.7 MB, free: 32.89 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.653e-05/0.2522, allocations: 39.97 kB / 455.8 MB, free: 32.86 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.639e-05/0.2522, allocations: 26.41 kB / 455.8 MB, free: 32.86 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001059/0.2532, allocations: 1.061 MB / 456.9 MB, free: 32.59 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00301/0.2563, allocations: 3.639 MB / 460.5 MB, free: 30.56 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001087/0.2574, allocations: 1.282 MB / 461.8 MB, free: 30.24 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003602/0.2577, allocations: 458.9 kB / 462.2 MB, free: 30.13 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.789e-05/0.2578, allocations: 31.03 kB / 462.3 MB, free: 30.11 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.775e-05/0.2578, allocations: 45.55 kB / 462.3 MB, free: 30.07 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.184e-06/0.2578, allocations: 0 / 462.3 MB, free: 30.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.00135/0.2592, allocations: 1.438 MB / 463.7 MB, free: 29.68 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.927e-05/0.2592, allocations: 63.44 kB / 463.8 MB, free: 29.61 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001163/0.2604, allocations: 1.234 MB / 465 MB, free: 29.18 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.535e-05/0.2604, allocations: 40.33 kB / 465.1 MB, free: 29.13 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000466/0.2609, allocations: 0.7535 MB / 465.8 MB, free: 28.54 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001594/0.2611, allocations: 230.6 kB / 466 MB, free: 28.36 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001756/0.2613, allocations: 112.8 kB / 466.2 MB, free: 28.3 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.232e-05/0.2614, allocations: 331.7 kB / 466.5 MB, free: 27.98 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004419/0.2618, allocations: 416 kB / 466.9 MB, free: 27.89 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004854/0.2623, allocations: 0.4981 MB / 467.4 MB, free: 27.7 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001023/0.2633, allocations: 0.9546 MB / 468.3 MB, free: 27.36 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.2633, allocations: 1.125 kB / 468.3 MB, free: 27.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001353/0.2647, allocations: 1.13 MB / 469.5 MB, free: 27 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.2647, allocations: 10.84 kB / 469.5 MB, free: 27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.438e-06/0.2648, allocations: 10.5 kB / 469.5 MB, free: 26.99 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.649e-05/0.2648, allocations: 8.781 kB / 469.5 MB, free: 26.99 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004172/0.2652, allocations: 130 kB / 469.6 MB, free: 26.97 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.375e-05/0.2652, allocations: 9.156 kB / 469.6 MB, free: 26.97 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002227/0.2654, allocations: 50.97 kB / 469.7 MB, free: 26.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.961e-05/0.2655, allocations: 29.28 kB / 469.7 MB, free: 26.92 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 (81): * Single equations (assignments): 81 * 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.000486/0.266, allocations: 358.3 kB / 470.1 MB, free: 26.72 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001688/0.2662, allocations: 135.2 kB / 470.2 MB, free: 26.64 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001504/0.2677, allocations: 1.144 MB / 471.3 MB, free: 26.29 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.724e-06/0.2677, allocations: 6.188 kB / 471.4 MB, free: 26.29 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.2677, allocations: 3.938 kB / 471.4 MB, free: 26.29 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.2677, allocations: 4.281 kB / 471.4 MB, free: 26.29 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002238/0.27, allocations: 2.276 MB / 473.6 MB, free: 25.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.27, allocations: 3.938 kB / 473.6 MB, free: 25.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004087/0.2704, allocations: 112.3 kB / 473.7 MB, free: 25.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.332e-06/0.2704, allocations: 2.781 kB / 473.8 MB, free: 25.41 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.514e-05/0.2704, allocations: 24.03 kB / 473.8 MB, free: 25.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/0.2704, allocations: 2.219 kB / 473.8 MB, free: 25.39 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.2705, allocations: 0 / 473.8 MB, free: 25.39 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001705/0.2722, allocations: 1.782 MB / 475.6 MB, free: 24.81 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000133/0.2723, allocations: 203.6 kB / 475.8 MB, free: 24.62 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.346e-05/0.2724, allocations: 14.69 kB / 475.8 MB, free: 24.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00019/0.2726, allocations: 14.75 kB / 475.8 MB, free: 24.6 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.916e-05/0.2727, allocations: 36.89 kB / 475.8 MB, free: 24.6 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.724e-05/0.2727, allocations: 21.22 kB / 475.8 MB, free: 24.59 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008718/0.2736, allocations: 0.8549 MB / 476.7 MB, free: 24.29 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.2736, allocations: 0 / 476.7 MB, free: 24.29 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005142/0.2741, allocations: 202 kB / 476.9 MB, free: 24.22 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 (66): * Single equations (assignments): 66 * 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.001744/0.2758, allocations: 2.359 MB / 479.3 MB, free: 23.09 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009582/0.2768, allocations: 0.9396 MB / 480.2 MB, free: 22.88 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.2768, allocations: 0 / 480.2 MB, free: 22.88 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004398/0.2773, allocations: 499.5 kB / 480.7 MB, free: 22.76 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006143/0.2779, allocations: 88.36 kB / 480.8 MB, free: 22.7 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01194/0.2898, allocations: 12.39 MB / 493.2 MB, free: 15.64 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005672/0.2904, allocations: 1.281 MB / 494.4 MB, free: 14.55 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002058/0.2907, allocations: 76.11 kB / 494.5 MB, free: 14.5 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000431/0.2911, allocations: 0.5673 MB / 495.1 MB, free: 13.98 MB / 366.1 MB Notification: Performance of SimCode: time 9.22e-07/0.2911, allocations: 0 / 495.1 MB, free: 13.98 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.415/1.706, allocations: 17.44 MB / 0.5005 GB, free: 15.38 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000257/1.707, allocations: 195.8 kB / 0.5007 GB, free: 15.12 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.803/5.51, allocations: 3.938 kB / 0.5007 GB, free: 15.12 MB / 382.1 MB (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1_fmu --startTime=1900 --stopTime=2100 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe 2>&1)