Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.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_4,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_4,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4",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.001497/0.001497, 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.00171/0.00171, allocations: 192 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.328/1.328, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2651/0.2651, allocations: 28.8 MB / 319.2 MB, free: 5.695 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001368/0.001368, allocations: 59.89 kB / 386.7 MB, free: 3.535 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2271/0.2285, allocations: 56.4 MB / 443.1 MB, free: 39.64 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.003355/0.2318, allocations: 3.668 MB / 446.8 MB, free: 37.34 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.000973/0.2328, allocations: 0.6837 MB / 447.5 MB, free: 37.12 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002721/0.2331, allocations: 21.97 kB / 447.5 MB, free: 37.12 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003038/0.2334, allocations: 177.4 kB / 447.7 MB, free: 37.02 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002694/0.2337, allocations: 139.4 kB / 447.8 MB, free: 36.94 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000501/0.2342, allocations: 365.6 kB / 448.2 MB, free: 36.92 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005057/0.2347, allocations: 0.8403 MB / 449 MB, free: 36.83 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005666/0.2353, allocations: 0.644 MB / 449.7 MB, free: 36.61 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001616/0.2355, allocations: 339.7 kB / 450 MB, free: 36.41 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001979/0.2357, allocations: 423.5 kB / 450.4 MB, free: 36.16 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001026/0.2358, allocations: 84.56 kB / 450.5 MB, free: 36.16 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001465/0.2359, allocations: 115 kB / 450.6 MB, free: 36.15 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002141/0.2362, allocations: 458.5 kB / 451 MB, free: 35.94 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002435/0.2364, allocations: 0.6276 MB / 451.7 MB, free: 35.45 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006211/0.237, allocations: 1.209 MB / 452.9 MB, free: 34.84 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.237, allocations: 3.938 kB / 452.9 MB, free: 34.83 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.237, allocations: 0 / 452.9 MB, free: 34.83 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.45e-05/0.2371, allocations: 4 kB / 452.9 MB, free: 34.83 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: 290 * Number of variables: 290 Notification: Performance of Generate backend data structure: time 0.001521/0.2386, allocations: 1.822 MB / 454.7 MB, free: 33.55 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.921e-05/0.2386, allocations: 10.66 kB / 454.7 MB, free: 33.55 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000156/0.2388, allocations: 183.9 kB / 454.9 MB, free: 33.43 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000157/0.239, allocations: 204.1 kB / 455.1 MB, free: 33.32 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005591/0.2395, allocations: 0.7535 MB / 455.9 MB, free: 32.75 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.33e-05/0.2396, allocations: 82.69 kB / 455.9 MB, free: 32.71 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.965e-05/0.2397, allocations: 112.4 kB / 456 MB, free: 32.68 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001268/0.2409, allocations: 1.288 MB / 457.3 MB, free: 32.15 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.986e-05/0.241, allocations: 3.938 kB / 457.3 MB, free: 32.15 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.591e-05/0.241, allocations: 52.89 kB / 457.4 MB, free: 32.11 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-05/0.2411, allocations: 51.02 kB / 457.4 MB, free: 32.11 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00125/0.2423, allocations: 1.236 MB / 458.7 MB, free: 31.8 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003157/0.2455, allocations: 3.942 MB / 462.6 MB, free: 29.62 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001202/0.2467, allocations: 1.364 MB / 464 MB, free: 29.27 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004369/0.2472, allocations: 0.4987 MB / 464.5 MB, free: 29.13 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.08e-05/0.2472, allocations: 28.2 kB / 464.5 MB, free: 29.12 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.559e-05/0.2473, allocations: 48.06 kB / 464.6 MB, free: 29.07 MB / 366.1 MB Notification: Performance of pre-optimization done (n=70): time 1.613e-06/0.2473, allocations: 0 / 464.6 MB, free: 29.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=70): time 0.001506/0.2488, allocations: 1.563 MB / 466.1 MB, free: 28.64 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.228e-05/0.2488, allocations: 82.92 kB / 466.2 MB, free: 28.55 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001059/0.2499, allocations: 1.364 MB / 467.6 MB, free: 28.08 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.842e-05/0.2499, allocations: 40.33 kB / 467.6 MB, free: 28.04 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003522/0.2503, allocations: 0.8476 MB / 468.4 MB, free: 27.38 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001011/0.2504, allocations: 243.8 kB / 468.7 MB, free: 27.18 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001434/0.2505, allocations: 153.2 kB / 468.8 MB, free: 27.11 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.912e-05/0.2506, allocations: 344 kB / 469.2 MB, free: 26.78 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004905/0.2511, allocations: 473.1 kB / 469.6 MB, free: 26.68 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005796/0.2517, allocations: 0.7248 MB / 470.4 MB, free: 26.26 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001135/0.2528, allocations: 1.236 MB / 471.6 MB, free: 25.66 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.2528, allocations: 2.844 kB / 471.6 MB, free: 25.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.001501/0.2543, allocations: 1.389 MB / 473 MB, free: 25.22 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.2544, allocations: 12.19 kB / 473 MB, free: 25.22 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.2544, allocations: 8.875 kB / 473 MB, free: 25.22 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.202e-05/0.2544, allocations: 12.94 kB / 473 MB, free: 25.22 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005533/0.255, allocations: 187.2 kB / 473.2 MB, free: 25.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.717e-05/0.255, allocations: 20.12 kB / 473.2 MB, free: 25.19 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003168/0.2553, allocations: 78.47 kB / 473.3 MB, free: 25.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.469e-05/0.2554, allocations: 45.06 kB / 473.3 MB, free: 25.13 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * 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 (109): * Single equations (assignments): 109 * 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.0003662/0.2557, allocations: 403.7 kB / 473.7 MB, free: 24.91 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000143/0.2559, allocations: 152.9 kB / 473.9 MB, free: 24.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001376/0.2573, allocations: 1.245 MB / 475.1 MB, free: 24.45 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.534e-06/0.2573, allocations: 7.656 kB / 475.1 MB, free: 24.45 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.2573, allocations: 1.188 kB / 475.1 MB, free: 24.45 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.103e-06/0.2573, allocations: 6.703 kB / 475.1 MB, free: 24.45 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002108/0.2594, allocations: 2.409 MB / 477.6 MB, free: 23.56 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.494e-06/0.2594, allocations: 1.375 kB / 477.6 MB, free: 23.56 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004221/0.2599, allocations: 118.5 kB / 477.7 MB, free: 23.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.868e-06/0.2599, allocations: 8.062 kB / 477.7 MB, free: 23.54 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.926e-05/0.2599, allocations: 17.5 kB / 477.7 MB, free: 23.53 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.907e-06/0.2599, allocations: 6.172 kB / 477.7 MB, free: 23.53 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2599, allocations: 1.375 kB / 477.7 MB, free: 23.53 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00169/0.2616, allocations: 1.989 MB / 479.7 MB, free: 22.84 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001172/0.2617, allocations: 202.7 kB / 479.9 MB, free: 22.66 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.716e-05/0.2618, allocations: 16.09 kB / 479.9 MB, free: 22.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002516/0.2621, allocations: 12.09 kB / 479.9 MB, free: 22.64 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.552e-05/0.2622, allocations: 47.61 kB / 480 MB, free: 22.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.187e-05/0.2622, allocations: 23.53 kB / 480 MB, free: 22.62 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008042/0.263, allocations: 0.9346 MB / 480.9 MB, free: 22.3 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.263, allocations: 0 / 480.9 MB, free: 22.3 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005444/0.2636, allocations: 230.3 kB / 481.1 MB, free: 22.22 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (70): * Single equations (assignments): 70 * 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.001886/0.2655, allocations: 2.56 MB / 483.7 MB, free: 20.98 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001334/0.2668, allocations: 1.115 MB / 484.8 MB, free: 20.71 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.2668, allocations: 0 / 484.8 MB, free: 20.71 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004948/0.2673, allocations: 0.5227 MB / 485.3 MB, free: 20.6 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006354/0.268, allocations: 112.4 kB / 485.5 MB, free: 20.53 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01118/0.2791, allocations: 13.33 MB / 498.8 MB, free: 10.68 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006905/0.2799, allocations: 1.335 MB / 0.4884 GB, free: 9.543 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003619/0.2802, allocations: 134.2 kB / 0.4885 GB, free: 9.445 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004948/0.2807, allocations: 0.6249 MB / 0.4891 GB, free: 8.875 MB / 366.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2807, allocations: 0 / 0.4891 GB, free: 8.875 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7354/1.016, allocations: 19.24 MB / 0.5079 GB, free: 7.777 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.82/13.84, allocations: 9.484 kB / 0.5079 GB, free: 7.77 MB / 382.1 MB (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4_fmu --startTime=1900 --stopTime=2000 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe 2>&1)