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.005042/0.005042, allocations: 101.6 kB / 15.73 MB, free: 5.539 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.00116/0.00116, allocations: 190.3 kB / 16.67 MB, free: 5.477 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.263/1.263, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1634/0.1634, allocations: 28.78 MB / 319.3 MB, free: 1.891 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001319/0.001319, allocations: 67.83 kB / 443.8 MB, free: 3.023 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1079, allocations: 56.41 MB / 0.4885 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_1): time 0.004911/0.1129, allocations: 3.638 MB / 0.4921 GB, free: 6.91 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001954/0.1149, allocations: 0.6701 MB / 0.4927 GB, free: 6.238 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008976/0.1158, allocations: 19.94 kB / 0.4928 GB, free: 6.219 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006727/0.1165, allocations: 166.3 kB / 0.4929 GB, free: 6.055 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000701/0.1172, allocations: 118.8 kB / 0.493 GB, free: 5.938 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001009/0.1183, allocations: 359.5 kB / 0.4934 GB, free: 5.586 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001137/0.1194, allocations: 0.8366 MB / 0.4942 GB, free: 4.746 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009656/0.1204, allocations: 0.652 MB / 0.4948 GB, free: 4.055 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003996/0.1208, allocations: 334.5 kB / 0.4951 GB, free: 3.727 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004477/0.1213, allocations: 425.5 kB / 0.4955 GB, free: 3.309 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001866/0.1215, allocations: 84 kB / 0.4956 GB, free: 3.227 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002135/0.1217, allocations: 116 kB / 0.4957 GB, free: 3.113 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003778/0.1221, allocations: 422.5 kB / 0.4961 GB, free: 2.699 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004909/0.1226, allocations: 0.6009 MB / 0.4967 GB, free: 2.094 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001066/0.1236, allocations: 1.225 MB / 0.4979 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1236, allocations: 0 / 0.4979 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1237, allocations: 4 kB / 0.4979 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.702e-05/0.1237, allocations: 0 / 0.4979 GB, free: 0.8594 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: 259 * Number of variables: 259 Notification: Performance of Generate backend data structure: time 0.001839/0.1255, allocations: 1.733 MB / 0.4996 GB, free: 15.06 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.1256, allocations: 12.03 kB / 0.4996 GB, free: 15.05 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001987/0.1258, allocations: 166.5 kB / 0.4998 GB, free: 14.88 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001983/0.126, allocations: 194.5 kB / 0.5 GB, free: 14.69 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007803/0.1268, allocations: 0.7463 MB / 0.5007 GB, free: 13.89 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.139e-05/0.1268, allocations: 78.47 kB / 0.5008 GB, free: 13.81 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001069/0.1269, allocations: 100.4 kB / 0.5009 GB, free: 13.71 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00136/0.1283, allocations: 1.151 MB / 0.502 GB, free: 12.5 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.286e-05/0.1283, allocations: 7.938 kB / 0.502 GB, free: 12.49 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.055e-05/0.1284, allocations: 40 kB / 0.502 GB, free: 12.45 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.102e-05/0.1284, allocations: 24 kB / 0.5021 GB, free: 12.43 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001238/0.1297, allocations: 1.058 MB / 0.5031 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00386/0.1335, allocations: 3.606 MB / 0.5066 GB, free: 7.641 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001426/0.135, allocations: 1.271 MB / 0.5079 GB, free: 6.359 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004788/0.1355, allocations: 462.4 kB / 0.5083 GB, free: 5.906 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.084e-05/0.1356, allocations: 24.77 kB / 0.5083 GB, free: 5.883 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.632e-05/0.1356, allocations: 43.12 kB / 0.5084 GB, free: 5.832 MB / 398.1 MB Notification: Performance of pre-optimization done (n=66): time 2.345e-06/0.1356, allocations: 0 / 0.5084 GB, free: 5.832 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.00159/0.1372, allocations: 1.446 MB / 0.5098 GB, free: 4.379 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.111e-05/0.1372, allocations: 59.91 kB / 0.5098 GB, free: 4.309 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001325/0.1386, allocations: 1.238 MB / 0.511 GB, free: 3.059 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.589e-05/0.1386, allocations: 37.7 kB / 0.5111 GB, free: 3.016 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005291/0.1392, allocations: 0.7556 MB / 0.5118 GB, free: 2.25 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001657/0.1393, allocations: 224.7 kB / 0.512 GB, free: 2.027 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001458/0.1395, allocations: 114.3 kB / 0.5121 GB, free: 1.91 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001248/0.1396, allocations: 326 kB / 0.5125 GB, free: 1.586 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004374/0.1401, allocations: 417.1 kB / 0.5129 GB, free: 1.18 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005118/0.1406, allocations: 0.5004 MB / 0.5133 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.215/0.3556, allocations: 0.9532 MB / 0.5143 GB, free: 26.47 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.883e-06/0.3556, allocations: 0.6875 kB / 0.5143 GB, free: 26.47 MB / 398.1 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001363/0.357, allocations: 1.133 MB / 0.5154 GB, free: 26.42 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/0.357, allocations: 6.062 kB / 0.5154 GB, free: 26.42 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.338e-06/0.3571, allocations: 3.031 kB / 0.5154 GB, free: 26.42 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.201e-05/0.3571, allocations: 7.078 kB / 0.5154 GB, free: 26.42 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004093/0.3575, allocations: 126.8 kB / 0.5155 GB, free: 26.42 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.107e-05/0.3575, allocations: 8.281 kB / 0.5155 GB, free: 26.42 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000215/0.3577, allocations: 53.97 kB / 0.5156 GB, free: 26.42 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.433e-05/0.3578, allocations: 25.23 kB / 0.5156 GB, free: 26.42 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 (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.0004267/0.3582, allocations: 371.4 kB / 0.516 GB, free: 26.3 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000114/0.3583, allocations: 137.2 kB / 0.5161 GB, free: 26.3 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001248/0.3596, allocations: 1.137 MB / 0.5172 GB, free: 26.25 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.564e-06/0.3596, allocations: 7 kB / 0.5172 GB, free: 26.25 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.533e-06/0.3596, allocations: 2.344 kB / 0.5172 GB, free: 26.25 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.3596, allocations: 6.062 kB / 0.5172 GB, free: 26.25 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002189/0.3618, allocations: 2.282 MB / 0.5194 GB, free: 25.93 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.3618, allocations: 0 / 0.5194 GB, free: 25.93 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004243/0.3623, allocations: 114.7 kB / 0.5195 GB, free: 25.93 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.24e-06/0.3623, allocations: 2.312 kB / 0.5196 GB, free: 25.93 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.015e-05/0.3623, allocations: 15 kB / 0.5196 GB, free: 25.93 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.929e-06/0.3623, allocations: 2.281 kB / 0.5196 GB, free: 25.93 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.3623, allocations: 4.688 kB / 0.5196 GB, free: 25.92 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001751/0.3641, allocations: 1.785 MB / 0.5213 GB, free: 25.73 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001397/0.3642, allocations: 205 kB / 0.5215 GB, free: 25.56 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.311e-05/0.3643, allocations: 15.31 kB / 0.5215 GB, free: 25.56 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00019/0.3645, allocations: 9.156 kB / 0.5215 GB, free: 25.56 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.7e-05/0.3646, allocations: 42.08 kB / 0.5216 GB, free: 25.56 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.872e-05/0.3646, allocations: 24.23 kB / 0.5216 GB, free: 25.56 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0009843/0.3656, allocations: 0.8552 MB / 0.5224 GB, free: 25.45 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3656, allocations: 0 / 0.5224 GB, free: 25.45 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005295/0.3661, allocations: 205.8 kB / 0.5226 GB, free: 25.42 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 (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.001937/0.3681, allocations: 2.357 MB / 0.5249 GB, free: 24.68 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001084/0.3692, allocations: 0.9438 MB / 0.5259 GB, free: 24.67 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3692, allocations: 3.812 kB / 0.5259 GB, free: 24.67 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004954/0.3697, allocations: 492.9 kB / 0.5263 GB, free: 24.66 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005961/0.3703, allocations: 94.94 kB / 0.5264 GB, free: 24.65 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01332/0.3836, allocations: 11.02 MB / 0.5372 GB, free: 20.18 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008327/0.3845, allocations: 1.289 MB / 0.5384 GB, free: 19.43 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002326/0.3847, allocations: 79.58 kB / 0.5385 GB, free: 19.42 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004508/0.3852, allocations: 0.5726 MB / 0.5391 GB, free: 18.93 MB / 398.1 MB Notification: Performance of SimCode: time 1.042e-06/0.3852, allocations: 1.375 kB / 0.5391 GB, free: 18.93 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03574/0.421, allocations: 18.34 MB / 0.557 GB, free: 5.449 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.01/10.43, allocations: 11.91 kB / 0.557 GB, free: 5.438 MB / 398.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)