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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo", uses=false) Using package SystemDynamics with version 2.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(SystemDynamics.WorldDynamics.World3.Human_Fertility,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World3.Human_Fertility") translateModel(SystemDynamics.WorldDynamics.World3.Human_Fertility,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World3.Human_Fertility") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001253/0.001253, allocations: 182.4 kB / 15.98 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.415/1.415, allocations: 205.1 MB / 221.8 MB, free: 8.477 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001023/0.001023, allocations: 102.3 kB / 269.2 MB, free: 8.422 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo): time 0.1849/0.1849, allocations: 28.76 MB / 345.3 MB, free: 12.18 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009995/0.0009996, allocations: 47.92 kB / 409.7 MB, free: 47.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1083, allocations: 53.6 MB / 463.3 MB, free: 10.3 MB / 314.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Human_Fertility): time 0.00477/0.1131, allocations: 3.723 MB / 467 MB, free: 6.559 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001578/0.1147, allocations: 0.8217 MB / 467.8 MB, free: 5.734 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003381/0.115, allocations: 15.94 kB / 467.8 MB, free: 5.719 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004268/0.1155, allocations: 115 kB / 468 MB, free: 5.605 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002571/0.1158, allocations: 63.58 kB / 468 MB, free: 5.543 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008356/0.1166, allocations: 399.7 kB / 468.4 MB, free: 5.152 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009562/0.1176, allocations: 0.9414 MB / 469.4 MB, free: 4.203 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009876/0.1186, allocations: 0.6868 MB / 470 MB, free: 3.488 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002738/0.1188, allocations: 302.4 kB / 470.3 MB, free: 3.191 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003211/0.1192, allocations: 385.6 kB / 470.7 MB, free: 2.812 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001002/0.1193, allocations: 52 kB / 470.8 MB, free: 2.762 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001635/0.1195, allocations: 79.97 kB / 470.8 MB, free: 2.684 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002419/0.1197, allocations: 246.9 kB / 471.1 MB, free: 2.441 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004088/0.1201, allocations: 488.6 kB / 471.6 MB, free: 1.961 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001101/0.1212, allocations: 1.125 MB / 472.7 MB, free: 0.832 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.1212, allocations: 0 / 472.7 MB, free: 0.832 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1213, allocations: 0 / 472.7 MB, free: 0.832 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.216e-05/0.1213, allocations: 0 / 472.7 MB, free: 0.832 MB / 314.7 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.002086/0.1234, allocations: 1.387 MB / 474.1 MB, free: 15.39 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.425e-05/0.1234, allocations: 8.031 kB / 474.1 MB, free: 15.38 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001802/0.1236, allocations: 139.2 kB / 474.2 MB, free: 15.24 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008803/0.1245, allocations: 0.6944 MB / 474.9 MB, free: 14.51 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.461e-05/0.1246, allocations: 82.58 kB / 475 MB, free: 14.43 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000124/0.1247, allocations: 116.4 kB / 475.1 MB, free: 14.31 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001592/0.1263, allocations: 1.094 MB / 476.2 MB, free: 13.12 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.579e-05/0.1264, allocations: 7.938 kB / 476.2 MB, free: 13.11 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.486e-05/0.1264, allocations: 48 kB / 476.3 MB, free: 13.07 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.136e-05/0.1265, allocations: 24 kB / 476.3 MB, free: 13.04 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001136/0.1276, allocations: 0.7066 MB / 477 MB, free: 12.33 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004258/0.1319, allocations: 4.149 MB / 481.1 MB, free: 8.031 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000833/0.1327, allocations: 459.1 kB / 481.6 MB, free: 7.574 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000267/0.133, allocations: 193.3 kB / 481.8 MB, free: 7.383 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.231e-05/0.1331, allocations: 20.27 kB / 481.8 MB, free: 7.363 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.763e-05/0.1331, allocations: 34.84 kB / 481.8 MB, free: 7.32 MB / 330.7 MB Notification: Performance of pre-optimization done (n=34): time 3.226e-06/0.1331, allocations: 0 / 481.8 MB, free: 7.32 MB / 330.7 MB Notification: Performance of matching and sorting (n=34): time 0.001029/0.1342, allocations: 0.6395 MB / 482.5 MB, free: 6.676 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.591e-05/0.1342, allocations: 63.28 kB / 482.5 MB, free: 6.602 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007808/0.135, allocations: 0.6684 MB / 483.2 MB, free: 5.922 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.1e-05/0.1351, allocations: 37.7 kB / 483.2 MB, free: 5.879 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003835/0.1354, allocations: 0.5801 MB / 483.8 MB, free: 5.289 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001191/0.1356, allocations: 134.1 kB / 483.9 MB, free: 5.156 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000145/0.1357, allocations: 102.2 kB / 484 MB, free: 5.051 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.1359, allocations: 326 kB / 484.4 MB, free: 4.727 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003139/0.1362, allocations: 205 kB / 484.6 MB, free: 4.523 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003927/0.1366, allocations: 363.4 kB / 484.9 MB, free: 4.105 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007736/0.1374, allocations: 0.5718 MB / 485.5 MB, free: 3.469 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.1374, allocations: 0 / 485.5 MB, free: 3.469 MB / 330.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001/0.1384, allocations: 0.664 MB / 486.1 MB, free: 2.797 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.878e-05/0.1384, allocations: 8.625 kB / 486.2 MB, free: 2.789 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.388e-05/0.1385, allocations: 7.984 kB / 486.2 MB, free: 2.781 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.561e-05/0.1385, allocations: 12 kB / 486.2 MB, free: 2.77 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003785/0.1389, allocations: 103.8 kB / 486.3 MB, free: 2.668 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.663e-05/0.1389, allocations: 11.94 kB / 486.3 MB, free: 2.656 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002311/0.1391, allocations: 55.53 kB / 486.3 MB, free: 2.602 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.581e-05/0.1392, allocations: 20 kB / 486.4 MB, free: 2.582 MB / 330.7 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.0004875/0.1397, allocations: 283.8 kB / 486.6 MB, free: 2.297 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001057/0.1398, allocations: 67.16 kB / 486.7 MB, free: 2.23 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000911/0.1407, allocations: 0.5239 MB / 487.2 MB, free: 1.691 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.672e-06/0.1407, allocations: 7.938 kB / 487.2 MB, free: 1.684 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.1407, allocations: 0 / 487.2 MB, free: 1.684 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.144e-06/0.1408, allocations: 0 / 487.2 MB, free: 1.684 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001045/0.1418, allocations: 0.8522 MB / 488.1 MB, free: 0.7812 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.1418, allocations: 0 / 488.1 MB, free: 0.7812 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003308/0.1422, allocations: 63.91 kB / 488.2 MB, free: 0.7188 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/0.1422, allocations: 4 kB / 488.2 MB, free: 0.7148 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.02e-05/0.1422, allocations: 8 kB / 488.2 MB, free: 0.707 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.1422, allocations: 0 / 488.2 MB, free: 0.707 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1422, allocations: 0 / 488.2 MB, free: 0.707 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2392/0.3814, allocations: 5.491 MB / 493.7 MB, free: 30.17 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000125/0.3816, allocations: 146.3 kB / 493.8 MB, free: 30.04 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.272e-05/0.3817, allocations: 12.66 kB / 493.8 MB, free: 30.03 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001812/0.3818, allocations: 12.94 kB / 493.8 MB, free: 30.03 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.586e-05/0.3819, allocations: 26.95 kB / 493.8 MB, free: 30.03 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.236e-05/0.382, allocations: 11.66 kB / 493.9 MB, free: 30.02 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006638/0.3826, allocations: 471.4 kB / 494.3 MB, free: 29.82 MB / 330.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3827, allocations: 0 / 494.3 MB, free: 29.82 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008257/0.3835, allocations: 251.4 kB / 494.6 MB, free: 29.76 MB / 330.7 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.0002017/0.3837, allocations: 118.1 kB / 494.7 MB, free: 29.67 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0008473/0.3846, allocations: 486.6 kB / 495.2 MB, free: 29.55 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.3846, allocations: 3.656 kB / 495.2 MB, free: 29.55 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003547/0.3849, allocations: 230.5 kB / 495.4 MB, free: 29.49 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006704/0.3856, allocations: 92.27 kB / 495.5 MB, free: 29.45 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003359/0.389, allocations: 2.551 MB / 498 MB, free: 27.82 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007617/0.3898, allocations: 1.073 MB / 499.1 MB, free: 27.1 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003347/0.3901, allocations: 81.3 kB / 499.2 MB, free: 27.08 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001696/0.3903, allocations: 50.02 kB / 499.2 MB, free: 27.07 MB / 330.7 MB Notification: Performance of SimCode: time 1.203e-06/0.3903, allocations: 1.344 kB / 499.2 MB, free: 27.07 MB / 330.7 MB Notification: Performance of Templates: time 0.01665/0.4069, allocations: 6.356 MB / 0.4937 GB, free: 25.64 MB / 330.7 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World3.Human_Fertility.makefile (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 & ./SystemDynamics_SystemDynamics.WorldDynamics.World3.Human_Fertility -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World3.Human_Fertility.pipe 2>&1)