Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World3.Human_Fertility.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.World3.Human_Fertility,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World3_Human_Fertility",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World3.Human_Fertility,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World3_Human_Fertility",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.007945/0.007945, allocations: 102.6 kB / 15.73 MB, free: 6.035 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.001365/0.001365, allocations: 190 kB / 16.67 MB, free: 5.973 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.42/1.42, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3565/0.3565, allocations: 28.81 MB / 319.3 MB, free: 5.656 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001195/0.001195, allocations: 67.7 kB / 443.8 MB, free: 36.82 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.1212, allocations: 56.42 MB / 0.4885 GB, free: 8.879 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Human_Fertility): time 0.005129/0.1264, allocations: 3.71 MB / 0.4921 GB, free: 5.895 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002544/0.129, allocations: 0.8799 MB / 0.493 GB, free: 5.152 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004526/0.1295, allocations: 21.19 kB / 0.493 GB, free: 5.145 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004139/0.13, allocations: 164.1 kB / 0.4932 GB, free: 4.992 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002871/0.1302, allocations: 107.9 kB / 0.4933 GB, free: 4.898 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007824/0.131, allocations: 444.6 kB / 0.4937 GB, free: 4.52 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008555/0.1319, allocations: 1.02 MB / 0.4947 GB, free: 3.863 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007436/0.1327, allocations: 0.7183 MB / 0.4954 GB, free: 3.266 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002388/0.1329, allocations: 366.4 kB / 0.4957 GB, free: 2.906 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002136/0.1331, allocations: 421.6 kB / 0.4961 GB, free: 2.492 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000101/0.1332, allocations: 116 kB / 0.4963 GB, free: 2.379 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001709/0.1334, allocations: 147.9 kB / 0.4964 GB, free: 2.234 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001827/0.1336, allocations: 314.9 kB / 0.4967 GB, free: 1.926 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002637/0.1339, allocations: 0.5397 MB / 0.4972 GB, free: 1.383 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008504/0.1347, allocations: 1.269 MB / 0.4985 GB, free: 112 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.1347, allocations: 0 / 0.4985 GB, free: 112 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1348, allocations: 0 / 0.4985 GB, free: 112 kB / 366.1 MB Notification: Performance of Transformations before backend: time 1.529e-05/0.1348, allocations: 0 / 0.4985 GB, free: 112 kB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 279 * Number of variables: 279 Notification: Performance of Generate backend data structure: time 0.001737/0.1365, allocations: 1.395 MB / 0.4998 GB, free: 14.66 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.158e-05/0.1366, allocations: 8.031 kB / 0.4998 GB, free: 14.65 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00021/0.1368, allocations: 167.3 kB / 0.5 GB, free: 14.47 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001594/0.1369, allocations: 143.2 kB / 0.5001 GB, free: 14.33 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008619/0.1378, allocations: 0.71 MB / 0.5008 GB, free: 13.58 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.877e-05/0.1379, allocations: 82.58 kB / 0.5009 GB, free: 13.5 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001138/0.138, allocations: 112.4 kB / 0.501 GB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001522/0.1395, allocations: 1.094 MB / 0.5021 GB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.39e-05/0.1396, allocations: 7.938 kB / 0.5021 GB, free: 12.19 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.52e-05/0.1397, allocations: 48 kB / 0.5021 GB, free: 12.14 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.199e-05/0.1397, allocations: 27.98 kB / 0.5022 GB, free: 12.11 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001081/0.1408, allocations: 0.7106 MB / 0.5029 GB, free: 11.39 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003967/0.1448, allocations: 4.095 MB / 0.5069 GB, free: 7.16 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007513/0.1455, allocations: 459.1 kB / 0.5073 GB, free: 6.703 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002452/0.1458, allocations: 193.3 kB / 0.5075 GB, free: 6.512 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.644e-05/0.1459, allocations: 16.27 kB / 0.5075 GB, free: 6.496 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.034e-05/0.1459, allocations: 42.83 kB / 0.5075 GB, free: 6.445 MB / 382.1 MB Notification: Performance of pre-optimization done (n=34): time 2.114e-06/0.1459, allocations: 0 / 0.5075 GB, free: 6.445 MB / 382.1 MB Notification: Performance of matching and sorting (n=34): time 0.0009785/0.1469, allocations: 0.6393 MB / 0.5082 GB, free: 5.797 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.693e-05/0.1469, allocations: 59.34 kB / 0.5082 GB, free: 5.727 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007228/0.1477, allocations: 0.6723 MB / 0.5089 GB, free: 5.043 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.473e-05/0.1477, allocations: 33.7 kB / 0.5089 GB, free: 5.004 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003392/0.1481, allocations: 0.5917 MB / 0.5095 GB, free: 4.402 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001064/0.1482, allocations: 126.2 kB / 0.5096 GB, free: 4.277 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000129/0.1483, allocations: 102.2 kB / 0.5097 GB, free: 4.172 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001034/0.1484, allocations: 326 kB / 0.51 GB, free: 3.848 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002989/0.1487, allocations: 205 kB / 0.5102 GB, free: 3.645 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003961/0.1491, allocations: 359.5 kB / 0.5105 GB, free: 3.234 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006861/0.1498, allocations: 0.5796 MB / 0.5111 GB, free: 2.59 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.528e-06/0.1498, allocations: 4 kB / 0.5111 GB, free: 2.586 MB / 382.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0009381/0.1508, allocations: 0.6646 MB / 0.5118 GB, free: 1.914 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.1508, allocations: 8.094 kB / 0.5118 GB, free: 1.906 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.275e-05/0.1508, allocations: 8 kB / 0.5118 GB, free: 1.898 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.917e-05/0.1509, allocations: 8 kB / 0.5118 GB, free: 1.891 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003573/0.1512, allocations: 103.8 kB / 0.5119 GB, free: 1.789 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.326e-05/0.1512, allocations: 8 kB / 0.5119 GB, free: 1.781 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002325/0.1515, allocations: 51.52 kB / 0.5119 GB, free: 1.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.301e-05/0.1515, allocations: 24 kB / 0.512 GB, free: 1.707 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 10 (Fert_Cont_Facil_PC.Smooth3.Integrator1.local_reset,Fert_Cont_Facil_PC.Smooth2.Integrator1.local_reset,Fert_Cont_Facil_PC.Smooth1.Integrator1.local_reset,Perc_Life_Expectancy.Smooth3.Integrator1.local_reset,Perc_Life_Expectancy.Smooth2.Integrator1.local_reset,Perc_Life_Expectancy.Smooth1.Integrator1.local_reset,Del_Ind_Out_PC.Smooth3.Integrator1.local_reset,Del_Ind_Out_PC.Smooth2.Integrator1.local_reset,Del_Ind_Out_PC.Smooth1.Integrator1.local_reset,Avg_Ind_Out_PC.Smooth_of_Input.Integrator1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 64 * 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.000391/0.1519, allocations: 280.3 kB / 0.5122 GB, free: 1.426 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.823e-05/0.152, allocations: 75.06 kB / 0.5123 GB, free: 1.352 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008114/0.1528, allocations: 0.5317 MB / 0.5128 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.1528, allocations: 4 kB / 0.5128 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.1529, allocations: 0 / 0.5128 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.1529, allocations: 3.984 kB / 0.5128 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000911/0.1538, allocations: 0.8444 MB / 0.5137 GB, free: 15.9 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.1538, allocations: 4 kB / 0.5137 GB, free: 15.9 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003276/0.1541, allocations: 67.89 kB / 0.5137 GB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.591e-06/0.1541, allocations: 4 kB / 0.5137 GB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.503e-05/0.1542, allocations: 8 kB / 0.5137 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.966e-06/0.1542, allocations: 0 / 0.5137 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.1542, allocations: 7.984 kB / 0.5137 GB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00104/0.1552, allocations: 0.8436 MB / 0.5146 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001072/0.1554, allocations: 136.2 kB / 0.5147 GB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.456e-05/0.1554, allocations: 8 kB / 0.5147 GB, free: 14.79 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001665/0.1556, allocations: 11.98 kB / 0.5147 GB, free: 14.78 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.839e-05/0.1557, allocations: 28 kB / 0.5147 GB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.66e-05/0.1557, allocations: 12 kB / 0.5148 GB, free: 14.74 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004845/0.1562, allocations: 471 kB / 0.5152 GB, free: 14.29 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1562, allocations: 0 / 0.5152 GB, free: 14.29 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005256/0.1567, allocations: 194.7 kB / 0.5154 GB, free: 14.1 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (Avg_Ind_Out_PC.Smooth_of_Input.Integrator1.y,Del_Ind_Out_PC.Smooth1.Integrator1.y,Del_Ind_Out_PC.Smooth2.Integrator1.y,Del_Ind_Out_PC.Smooth3.Integrator1.y,Perc_Life_Expectancy.Smooth1.Integrator1.y,Perc_Life_Expectancy.Smooth2.Integrator1.y,Perc_Life_Expectancy.Smooth3.Integrator1.y,Fert_Cont_Facil_PC.Smooth1.Integrator1.y,Fert_Cont_Facil_PC.Smooth2.Integrator1.y,Fert_Cont_Facil_PC.Smooth3.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 (36): * Single equations (assignments): 36 * 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.001312/0.158, allocations: 1.418 MB / 0.5168 GB, free: 12.65 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00072/0.1588, allocations: 487.4 kB / 0.5172 GB, free: 12.18 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1588, allocations: 3.938 kB / 0.5172 GB, free: 12.17 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002789/0.1591, allocations: 221 kB / 0.5175 GB, free: 11.96 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005918/0.1597, allocations: 103.4 kB / 0.5176 GB, free: 11.86 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008301/0.168, allocations: 6.652 MB / 0.524 GB, free: 5.004 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007033/0.1687, allocations: 1.065 MB / 0.5251 GB, free: 3.91 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002359/0.169, allocations: 56.27 kB / 0.5251 GB, free: 3.852 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004341/0.1694, allocations: 403.3 kB / 0.5255 GB, free: 3.461 MB / 398.1 MB Notification: Performance of SimCode: time 2.445e-06/0.1694, allocations: 4 kB / 0.5255 GB, free: 3.457 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03311/0.2025, allocations: 12.99 MB / 0.5382 GB, free: 6.559 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.89/9.092, allocations: 13.22 kB / 0.5382 GB, free: 6.547 MB / 414.1 MB (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World3.Human_Fertility.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World3.Human_Fertility.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World3.Human_Fertility.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World3.Human_Fertility.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World3_Human_Fertility_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World3_Human_Fertility.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World3.Human_Fertility.pipe 2>&1)