Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane.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: translateModel(SystemDynamics.IntroductoryExamples.Sugar_Cane,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane") translateModel(SystemDynamics.IntroductoryExamples.Sugar_Cane,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008027/0.008027, allocations: 99.86 kB / 15.73 MB, free: 6.055 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.001666/0.001666, allocations: 192.7 kB / 16.67 MB, free: 5.969 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.378/1.378, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.19/0.19, allocations: 28.78 MB / 319.3 MB, free: 1.879 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.00134, allocations: 55.91 kB / 444.3 MB, free: 2.586 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1073, allocations: 56.42 MB / 0.4889 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Sugar_Cane): time 0.002943/0.1102, allocations: 2.116 MB / 0.491 GB, free: 7.992 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006056/0.1109, allocations: 334.7 kB / 0.4913 GB, free: 7.664 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001822/0.1111, allocations: 7.938 kB / 0.4913 GB, free: 7.656 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002477/0.1113, allocations: 67.25 kB / 0.4914 GB, free: 7.59 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001377/0.1115, allocations: 39.47 kB / 0.4914 GB, free: 7.551 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003509/0.1118, allocations: 167.8 kB / 0.4916 GB, free: 7.387 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004886/0.1123, allocations: 408.5 kB / 0.492 GB, free: 6.984 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004847/0.1128, allocations: 326.1 kB / 0.4923 GB, free: 6.648 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00014/0.113, allocations: 155.2 kB / 0.4925 GB, free: 6.496 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001841/0.1132, allocations: 190.9 kB / 0.4926 GB, free: 6.309 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.052e-05/0.1132, allocations: 44 kB / 0.4927 GB, free: 6.266 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.179e-05/0.1133, allocations: 40 kB / 0.4927 GB, free: 6.227 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.806e-05/0.1134, allocations: 99.62 kB / 0.4928 GB, free: 6.129 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001668/0.1136, allocations: 210.7 kB / 0.493 GB, free: 5.922 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004717/0.114, allocations: 441.7 kB / 0.4934 GB, free: 5.488 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.1141, allocations: 8 kB / 0.4934 GB, free: 5.48 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.1141, allocations: 0 / 0.4934 GB, free: 5.48 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.079e-05/0.1141, allocations: 4 kB / 0.4934 GB, free: 5.477 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: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.0009341/0.115, allocations: 0.7249 MB / 0.4941 GB, free: 4.699 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.706e-05/0.1151, allocations: 8.031 kB / 0.4942 GB, free: 4.691 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.308e-05/0.1152, allocations: 60.56 kB / 0.4942 GB, free: 4.633 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004202/0.1156, allocations: 340.4 kB / 0.4945 GB, free: 4.258 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.555e-05/0.1156, allocations: 41.69 kB / 0.4946 GB, free: 4.219 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.273e-05/0.1157, allocations: 52.38 kB / 0.4946 GB, free: 4.168 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006668/0.1164, allocations: 488.7 kB / 0.4951 GB, free: 3.656 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.406e-05/0.1164, allocations: 192 / 0.4951 GB, free: 3.656 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.685e-05/0.1164, allocations: 23.94 kB / 0.4951 GB, free: 3.633 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.245e-05/0.1165, allocations: 12 kB / 0.4951 GB, free: 3.621 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004183/0.1169, allocations: 259.8 kB / 0.4954 GB, free: 3.367 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001707/0.1186, allocations: 1.743 MB / 0.4971 GB, free: 1.539 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004359/0.119, allocations: 214.8 kB / 0.4973 GB, free: 1.32 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.97e-05/0.1192, allocations: 64.84 kB / 0.4973 GB, free: 1.254 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.44e-05/0.1192, allocations: 0 / 0.4973 GB, free: 1.254 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.08e-05/0.1192, allocations: 34.56 kB / 0.4974 GB, free: 1.211 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 1.182e-06/0.1192, allocations: 0 / 0.4974 GB, free: 1.211 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.000414/0.1196, allocations: 232.1 kB / 0.4976 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.96e-05/0.1197, allocations: 59.41 kB / 0.4977 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000316/0.12, allocations: 341.7 kB / 0.498 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.974e-05/0.12, allocations: 29.7 kB / 0.498 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001475/0.1202, allocations: 268 kB / 0.4983 GB, free: 276 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.729e-05/0.1202, allocations: 67.44 kB / 0.4983 GB, free: 208 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.806e-05/0.1203, allocations: 53.66 kB / 0.4984 GB, free: 148 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.1205, allocations: 346.7 kB / 0.4987 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.551e-05/0.1206, allocations: 59.97 kB / 0.4988 GB, free: 15.74 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001379/0.1207, allocations: 132.2 kB / 0.4989 GB, free: 15.58 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002488/0.121, allocations: 195.6 kB / 0.4991 GB, free: 15.36 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.121, allocations: 0 / 0.4991 GB, free: 15.36 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003417/0.1213, allocations: 257.1 kB / 0.4993 GB, free: 15.11 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/0.1213, allocations: 4 kB / 0.4993 GB, free: 15.1 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.904e-06/0.1214, allocations: 4 kB / 0.4993 GB, free: 15.1 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.624e-05/0.1214, allocations: 4 kB / 0.4993 GB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001783/0.1216, allocations: 47.92 kB / 0.4994 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.879e-05/0.1216, allocations: 7.938 kB / 0.4994 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001024/0.1217, allocations: 35.67 kB / 0.4994 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.452e-05/0.1217, allocations: 8 kB / 0.4994 GB, free: 15 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 4 (Water_Inside.Integrator1.local_reset,Water_Outside.Integrator1.local_reset,Sucrose_Outside.Integrator1.local_reset,Sucrose_Inside.Integrator1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 31 * 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.0001539/0.1219, allocations: 165.9 kB / 0.4996 GB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.722e-05/0.1219, allocations: 35.77 kB / 0.4996 GB, free: 14.79 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.91e-05/0.122, allocations: 35.33 kB / 0.4997 GB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-06/0.122, allocations: 4 kB / 0.4997 GB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.122, allocations: 0 / 0.4997 GB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.1221, allocations: 3.984 kB / 0.4997 GB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003893/0.1224, allocations: 397.3 kB / 0.5 GB, free: 14.31 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.1225, allocations: 4 kB / 0.5001 GB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001661/0.1226, allocations: 27.98 kB / 0.5001 GB, free: 14.28 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.1226, allocations: 0 / 0.5001 GB, free: 14.28 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.761e-05/0.1227, allocations: 12 kB / 0.5001 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.1227, allocations: 0 / 0.5001 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.1227, allocations: 0 / 0.5001 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004142/0.1231, allocations: 364.8 kB / 0.5004 GB, free: 13.9 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.318e-05/0.1232, allocations: 112.9 kB / 0.5005 GB, free: 13.77 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.22e-05/0.1232, allocations: 4 kB / 0.5005 GB, free: 13.77 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001017/0.1233, allocations: 4 kB / 0.5006 GB, free: 13.76 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.678e-05/0.1234, allocations: 7.984 kB / 0.5006 GB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.151e-05/0.1234, allocations: 12 kB / 0.5006 GB, free: 13.74 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002132/0.1236, allocations: 243.1 kB / 0.5008 GB, free: 13.5 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1236, allocations: 0 / 0.5008 GB, free: 13.5 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003175/0.1239, allocations: 79.61 kB / 0.5009 GB, free: 13.43 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Sucrose_Inside.Integrator1.y,Sucrose_Outside.Integrator1.y,Water_Outside.Integrator1.y,Water_Inside.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 (19): * Single equations (assignments): 19 * 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 9.419e-05/0.124, allocations: 99.19 kB / 0.501 GB, free: 13.32 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002798/0.1243, allocations: 159.8 kB / 0.5011 GB, free: 13.16 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1243, allocations: 0.5 kB / 0.5011 GB, free: 13.16 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 9.311e-05/0.1244, allocations: 79.92 kB / 0.5012 GB, free: 13.09 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000405/0.1248, allocations: 49.94 kB / 0.5012 GB, free: 13.04 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009681/0.1258, allocations: 0.6752 MB / 0.5019 GB, free: 12.34 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003627/0.1262, allocations: 0.8144 MB / 0.5027 GB, free: 11.5 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.08e-05/0.1263, allocations: 26.97 kB / 0.5027 GB, free: 11.47 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.458e-05/0.1263, allocations: 23.44 kB / 0.5028 GB, free: 11.45 MB / 398.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1263, allocations: 0 / 0.5028 GB, free: 11.45 MB / 398.1 MB Notification: Performance of Templates: time 0.005372/0.1317, allocations: 2.083 MB / 0.5048 GB, free: 9.371 MB / 398.1 MB make -j1 -f SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane.makefile (rm -f SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane.pipe ; mkfifo SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane.pipe >> ../files/SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane.sim & ./SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane.pipe 2>&1)