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.001154/0.001154, allocations: 108.1 kB / 16.41 MB, free: 6.504 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.001532/0.001533, allocations: 188.3 kB / 17.35 MB, free: 5.738 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.337/1.337, allocations: 222.9 MB / 241 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1811/0.1811, allocations: 28.79 MB / 320 MB, free: 1.891 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001194/0.001194, allocations: 63.89 kB / 445 MB, free: 2.594 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1166, allocations: 56.41 MB / 0.4896 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Sugar_Cane): time 0.00323/0.1199, allocations: 2.112 MB / 0.4917 GB, free: 8.008 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006513/0.1205, allocations: 326.7 kB / 0.492 GB, free: 7.688 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001607/0.1207, allocations: 11.94 kB / 0.492 GB, free: 7.676 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002023/0.1209, allocations: 71.23 kB / 0.4921 GB, free: 7.605 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001118/0.1211, allocations: 35.5 kB / 0.4921 GB, free: 7.57 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003581/0.1214, allocations: 167.8 kB / 0.4923 GB, free: 7.406 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003763/0.1218, allocations: 408.4 kB / 0.4927 GB, free: 7.004 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004153/0.1222, allocations: 322.1 kB / 0.493 GB, free: 6.672 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001196/0.1224, allocations: 155.3 kB / 0.4931 GB, free: 6.52 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001486/0.1225, allocations: 186.9 kB / 0.4933 GB, free: 6.336 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.964e-05/0.1226, allocations: 44 kB / 0.4933 GB, free: 6.293 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.514e-05/0.1226, allocations: 44 kB / 0.4934 GB, free: 6.25 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.122e-05/0.1227, allocations: 103.6 kB / 0.4935 GB, free: 6.148 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001512/0.1229, allocations: 206.7 kB / 0.4937 GB, free: 5.945 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004313/0.1233, allocations: 446.1 kB / 0.4941 GB, free: 5.508 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.1233, allocations: 0 / 0.4941 GB, free: 5.508 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.1233, allocations: 0 / 0.4941 GB, free: 5.508 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.885e-06/0.1233, allocations: 0 / 0.4941 GB, free: 5.508 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.001069/0.1244, allocations: 0.7177 MB / 0.4948 GB, free: 4.738 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.222e-05/0.1245, allocations: 12.03 kB / 0.4948 GB, free: 4.727 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001163/0.1246, allocations: 52.28 kB / 0.4949 GB, free: 4.676 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005902/0.1252, allocations: 340.2 kB / 0.4952 GB, free: 4.301 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.308e-05/0.1253, allocations: 41.69 kB / 0.4952 GB, free: 4.262 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.873e-05/0.1253, allocations: 56.38 kB / 0.4953 GB, free: 4.207 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007448/0.1261, allocations: 484.7 kB / 0.4957 GB, free: 3.699 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.748e-05/0.1261, allocations: 8.188 kB / 0.4957 GB, free: 3.691 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.905e-05/0.1262, allocations: 23.94 kB / 0.4958 GB, free: 3.668 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.59e-05/0.1262, allocations: 12 kB / 0.4958 GB, free: 3.656 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004258/0.1266, allocations: 255.8 kB / 0.496 GB, free: 3.406 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001912/0.1285, allocations: 1.731 MB / 0.4977 GB, free: 1.59 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00046/0.129, allocations: 218.7 kB / 0.4979 GB, free: 1.367 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.783e-05/0.1291, allocations: 60.84 kB / 0.498 GB, free: 1.305 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.671e-05/0.1291, allocations: 8 kB / 0.498 GB, free: 1.297 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.589e-05/0.1292, allocations: 34.56 kB / 0.498 GB, free: 1.254 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 1.884e-06/0.1292, allocations: 0 / 0.498 GB, free: 1.254 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.0004068/0.1296, allocations: 231.8 kB / 0.4982 GB, free: 1.023 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.224e-05/0.1296, allocations: 51.41 kB / 0.4983 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003107/0.13, allocations: 345.6 kB / 0.4986 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.112e-05/0.13, allocations: 33.7 kB / 0.4986 GB, free: 0.582 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001427/0.1301, allocations: 255.7 kB / 0.4989 GB, free: 332 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.657e-05/0.1302, allocations: 78.98 kB / 0.499 GB, free: 252 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.12e-05/0.1303, allocations: 49.64 kB / 0.499 GB, free: 196 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.1304, allocations: 350.7 kB / 0.4994 GB, free: 15.84 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.787e-05/0.1305, allocations: 55.98 kB / 0.4994 GB, free: 15.79 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001338/0.1307, allocations: 124.2 kB / 0.4995 GB, free: 15.64 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002459/0.1309, allocations: 199.6 kB / 0.4997 GB, free: 15.41 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.1309, allocations: 0 / 0.4997 GB, free: 15.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003415/0.1313, allocations: 256.3 kB / 0.5 GB, free: 15.16 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.1313, allocations: 4 kB / 0.5 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.341e-05/0.1313, allocations: 4 kB / 0.5 GB, free: 15.15 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.058e-05/0.1313, allocations: 4.234 kB / 0.5 GB, free: 15.15 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001817/0.1315, allocations: 55.91 kB / 0.5 GB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.53e-05/0.1315, allocations: 4 kB / 0.5 GB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001104/0.1317, allocations: 39.47 kB / 0.5001 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.324e-05/0.1317, allocations: 8 kB / 0.5001 GB, free: 15.04 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.0001632/0.1318, allocations: 161.7 kB / 0.5002 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.802e-05/0.1319, allocations: 27.62 kB / 0.5003 GB, free: 14.85 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.905e-05/0.132, allocations: 39.33 kB / 0.5003 GB, free: 14.81 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.421e-06/0.132, allocations: 3.984 kB / 0.5003 GB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.132, allocations: 0 / 0.5003 GB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.67e-05/0.1321, allocations: 112.7 kB / 0.5004 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.5e-05/0.1321, allocations: 3.938 kB / 0.5004 GB, free: 14.67 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001133/0.1322, allocations: 8 kB / 0.5004 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.469e-05/0.1323, allocations: 7.984 kB / 0.5004 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004555/0.1327, allocations: 267.2 kB / 0.5007 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004501/0.1332, allocations: 438.3 kB / 0.5011 GB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001017/0.1333, allocations: 64.02 kB / 0.5012 GB, free: 13.88 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002032/0.1335, allocations: 247.1 kB / 0.5014 GB, free: 13.64 MB / 398.1 MB Notification: Performance of Backend: time 5.81e-07/0.1335, allocations: 0 / 0.5014 GB, free: 13.64 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004607/0.134, allocations: 192.3 kB / 0.5016 GB, free: 13.45 MB / 398.1 MB Notification: Performance of SimCode: time 0.001165/0.1352, allocations: 1.119 MB / 0.5027 GB, free: 12.29 MB / 398.1 MB Notification: Performance of Templates: time 0.005714/0.1409, allocations: 2.686 MB / 0.5053 GB, free: 9.605 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)