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.00618/0.00618, allocations: 102.7 kB / 15.73 MB, free: 6.031 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.001221/0.001221, allocations: 190.1 kB / 16.67 MB, free: 5.953 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.3/1.3, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1706/0.1706, allocations: 28.78 MB / 319.3 MB, free: 1.887 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001395/0.001396, allocations: 59.91 kB / 443.8 MB, free: 3.027 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1241, allocations: 56.43 MB / 0.4885 GB, free: 10.54 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_3): time 0.005354/0.1295, allocations: 3.646 MB / 0.4921 GB, free: 6.887 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002207/0.1317, allocations: 0.6818 MB / 0.4928 GB, free: 6.203 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009369/0.1327, allocations: 15.94 kB / 0.4928 GB, free: 6.188 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007767/0.1335, allocations: 174.3 kB / 0.4929 GB, free: 6.016 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007933/0.1343, allocations: 130.8 kB / 0.4931 GB, free: 5.887 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001059/0.1354, allocations: 359.5 kB / 0.4934 GB, free: 5.535 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001185/0.1366, allocations: 0.8522 MB / 0.4942 GB, free: 4.68 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009516/0.1376, allocations: 0.6364 MB / 0.4949 GB, free: 4.004 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003735/0.138, allocations: 338.4 kB / 0.4952 GB, free: 3.672 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004335/0.1384, allocations: 425.6 kB / 0.4956 GB, free: 3.254 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001328/0.1386, allocations: 84 kB / 0.4957 GB, free: 3.172 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001939/0.1388, allocations: 112 kB / 0.4958 GB, free: 3.062 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003584/0.1391, allocations: 434.5 kB / 0.4962 GB, free: 2.637 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005351/0.1397, allocations: 0.6125 MB / 0.4968 GB, free: 2.02 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001047/0.1407, allocations: 1.256 MB / 0.498 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.1407, allocations: 0 / 0.498 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1407, allocations: 0 / 0.498 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.936e-05/0.1408, allocations: 0 / 0.498 GB, free: 0.7578 MB / 382.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.001978/0.1428, allocations: 1.776 MB / 0.4997 GB, free: 14.92 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.1428, allocations: 12.03 kB / 0.4998 GB, free: 14.91 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001891/0.143, allocations: 170.7 kB / 0.4999 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002151/0.1432, allocations: 202.5 kB / 0.5001 GB, free: 14.53 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009097/0.1441, allocations: 0.7627 MB / 0.5009 GB, free: 13.71 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.891e-05/0.1442, allocations: 78.5 kB / 0.5009 GB, free: 13.64 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001199/0.1443, allocations: 104.4 kB / 0.501 GB, free: 13.54 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001457/0.1458, allocations: 1.178 MB / 0.5022 GB, free: 12.29 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.083e-05/0.1458, allocations: 7.875 kB / 0.5022 GB, free: 12.28 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.607e-05/0.1459, allocations: 52 kB / 0.5022 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.07e-05/0.1459, allocations: 24 kB / 0.5023 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001364/0.1473, allocations: 1.109 MB / 0.5033 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003869/0.1512, allocations: 3.674 MB / 0.5069 GB, free: 7.305 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001426/0.1526, allocations: 1.346 MB / 0.5082 GB, free: 5.945 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005044/0.1531, allocations: 486.3 kB / 0.5087 GB, free: 5.469 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.491e-05/0.1532, allocations: 28.77 kB / 0.5087 GB, free: 5.441 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.327e-05/0.1532, allocations: 39.12 kB / 0.5088 GB, free: 5.395 MB / 398.1 MB Notification: Performance of pre-optimization done (n=68): time 2.194e-06/0.1532, allocations: 0 / 0.5088 GB, free: 5.395 MB / 398.1 MB Notification: Performance of matching and sorting (n=68): time 0.001698/0.1549, allocations: 1.532 MB / 0.5103 GB, free: 3.855 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.391e-05/0.155, allocations: 63.91 kB / 0.5103 GB, free: 3.781 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00131/0.1563, allocations: 1.28 MB / 0.5116 GB, free: 2.492 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.841e-05/0.1564, allocations: 37.7 kB / 0.5116 GB, free: 2.449 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004981/0.1569, allocations: 0.7754 MB / 0.5124 GB, free: 1.664 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001566/0.157, allocations: 236.6 kB / 0.5126 GB, free: 1.43 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001552/0.1572, allocations: 118.6 kB / 0.5127 GB, free: 1.309 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001045/0.1573, allocations: 330 kB / 0.513 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005029/0.1578, allocations: 445.8 kB / 0.5135 GB, free: 0.543 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1914/0.3493, allocations: 0.5276 MB / 0.514 GB, free: 26.71 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00129/0.3506, allocations: 1.002 MB / 0.5149 GB, free: 26.61 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.721e-06/0.3506, allocations: 0.8125 kB / 0.515 GB, free: 26.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.00137/0.352, allocations: 1.188 MB / 0.5161 GB, free: 26.57 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.273e-05/0.352, allocations: 10.72 kB / 0.5161 GB, free: 26.57 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.352, allocations: 3.25 kB / 0.5161 GB, free: 26.57 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.231e-05/0.352, allocations: 5 kB / 0.5161 GB, free: 26.57 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000469/0.3525, allocations: 133.9 kB / 0.5163 GB, free: 26.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.561e-05/0.3525, allocations: 9.656 kB / 0.5163 GB, free: 26.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002662/0.3528, allocations: 53.38 kB / 0.5163 GB, free: 26.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.94e-05/0.3529, allocations: 23.41 kB / 0.5163 GB, free: 26.57 MB / 398.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.0004711/0.3533, allocations: 376.8 kB / 0.5167 GB, free: 26.45 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000144/0.3535, allocations: 144.1 kB / 0.5168 GB, free: 26.45 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001405/0.3549, allocations: 1.204 MB / 0.518 GB, free: 26.39 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-06/0.3549, allocations: 7.031 kB / 0.518 GB, free: 26.39 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.3549, allocations: 0 / 0.518 GB, free: 26.39 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.825e-06/0.3549, allocations: 4.391 kB / 0.518 GB, free: 26.39 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00256/0.3575, allocations: 2.375 MB / 0.5203 GB, free: 26.06 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.3575, allocations: 0 / 0.5203 GB, free: 26.06 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004641/0.358, allocations: 115.5 kB / 0.5205 GB, free: 26.06 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.613e-06/0.358, allocations: 5.391 kB / 0.5205 GB, free: 26.06 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.428e-05/0.358, allocations: 14.42 kB / 0.5205 GB, free: 26.06 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.668e-06/0.3581, allocations: 2.719 kB / 0.5205 GB, free: 26.06 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.3581, allocations: 5.094 kB / 0.5205 GB, free: 26.06 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002066/0.3601, allocations: 1.879 MB / 0.5223 GB, free: 25.86 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001917/0.3603, allocations: 201.8 kB / 0.5225 GB, free: 25.69 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.635e-05/0.3604, allocations: 16.23 kB / 0.5225 GB, free: 25.69 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002176/0.3606, allocations: 15.19 kB / 0.5225 GB, free: 25.69 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.26e-05/0.3607, allocations: 44.45 kB / 0.5226 GB, free: 25.68 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.932e-05/0.3608, allocations: 18.48 kB / 0.5226 GB, free: 25.68 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001118/0.3619, allocations: 0.8921 MB / 0.5235 GB, free: 25.57 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3619, allocations: 0 / 0.5235 GB, free: 25.57 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000568/0.3625, allocations: 213.7 kB / 0.5237 GB, free: 25.54 MB / 398.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.002315/0.3648, allocations: 2.454 MB / 0.5261 GB, free: 24.79 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001458/0.3663, allocations: 0.9926 MB / 0.527 GB, free: 24.71 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.3663, allocations: 0 / 0.527 GB, free: 24.71 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007721/0.3671, allocations: 0.5124 MB / 0.5275 GB, free: 24.61 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006235/0.3677, allocations: 97.55 kB / 0.5276 GB, free: 24.54 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01472/0.3824, allocations: 11.49 MB / 0.5389 GB, free: 19.95 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008514/0.3833, allocations: 1.312 MB / 0.5401 GB, free: 19.19 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002519/0.3836, allocations: 76.23 kB / 0.5402 GB, free: 19.16 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004613/0.3841, allocations: 0.5909 MB / 0.5408 GB, free: 18.66 MB / 398.1 MB Notification: Performance of SimCode: time 1.382e-06/0.3841, allocations: 0 / 0.5408 GB, free: 18.66 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03473/0.4188, allocations: 18.39 MB / 0.5587 GB, free: 3.586 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.576/9.995, allocations: 7.797 kB / 0.5588 GB, free: 3.578 MB / 398.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)