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.001191/0.001191, allocations: 111 kB / 16.41 MB, free: 6.48 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.001284/0.001284, allocations: 185.5 kB / 17.34 MB, free: 5.754 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.315/1.315, allocations: 222.9 MB / 241 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.1702/0.1702, allocations: 28.79 MB / 320 MB, free: 1.895 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00142/0.00142, allocations: 67.89 kB / 444.9 MB, free: 2.582 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1029, allocations: 56.41 MB / 0.4896 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Sugar_Cane): time 0.003517/0.1065, allocations: 2.116 MB / 0.4917 GB, free: 7.996 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009404/0.1075, allocations: 326.7 kB / 0.492 GB, free: 7.676 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003962/0.1079, allocations: 15.94 kB / 0.492 GB, free: 7.66 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003032/0.1082, allocations: 63.25 kB / 0.4921 GB, free: 7.598 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002284/0.1085, allocations: 35.5 kB / 0.4921 GB, free: 7.562 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004212/0.1089, allocations: 163.8 kB / 0.4923 GB, free: 7.402 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005559/0.1095, allocations: 408.4 kB / 0.4926 GB, free: 7 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005128/0.11, allocations: 326.1 kB / 0.493 GB, free: 6.664 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001646/0.1102, allocations: 151.3 kB / 0.4931 GB, free: 6.516 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001908/0.1104, allocations: 186.9 kB / 0.4933 GB, free: 6.332 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.881e-05/0.1104, allocations: 44 kB / 0.4933 GB, free: 6.289 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.144e-05/0.1105, allocations: 40 kB / 0.4934 GB, free: 6.25 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.097e-05/0.1106, allocations: 107.6 kB / 0.4935 GB, free: 6.145 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001655/0.1108, allocations: 210.7 kB / 0.4937 GB, free: 5.938 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004392/0.1112, allocations: 438.1 kB / 0.4941 GB, free: 5.508 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.1112, allocations: 0 / 0.4941 GB, free: 5.508 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.496e-06/0.1112, allocations: 4 kB / 0.4941 GB, free: 5.504 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.338e-05/0.1113, allocations: 0 / 0.4941 GB, free: 5.504 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.0009626/0.1122, allocations: 0.7216 MB / 0.4948 GB, free: 4.73 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.1123, allocations: 8.031 kB / 0.4948 GB, free: 4.723 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001009/0.1124, allocations: 56.28 kB / 0.4948 GB, free: 4.668 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004534/0.1128, allocations: 340.2 kB / 0.4952 GB, free: 4.293 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.286e-05/0.1129, allocations: 41.69 kB / 0.4952 GB, free: 4.254 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.182e-05/0.113, allocations: 48.38 kB / 0.4953 GB, free: 4.207 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006802/0.1136, allocations: 496.7 kB / 0.4957 GB, free: 3.688 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/0.1137, allocations: 192 / 0.4957 GB, free: 3.688 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.657e-05/0.1137, allocations: 23.94 kB / 0.4958 GB, free: 3.664 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.442e-05/0.1137, allocations: 16 kB / 0.4958 GB, free: 3.648 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004073/0.1141, allocations: 255.8 kB / 0.496 GB, free: 3.398 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001861/0.116, allocations: 1.731 MB / 0.4977 GB, free: 1.582 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004199/0.1164, allocations: 210.7 kB / 0.4979 GB, free: 1.367 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001035/0.1165, allocations: 72.84 kB / 0.498 GB, free: 1.293 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.253e-05/0.1166, allocations: 0 / 0.498 GB, free: 1.293 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.147e-05/0.1166, allocations: 42.55 kB / 0.498 GB, free: 1.242 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 1.153e-06/0.1166, allocations: 0 / 0.498 GB, free: 1.242 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.000396/0.117, allocations: 219.8 kB / 0.4982 GB, free: 1.023 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.593e-05/0.117, allocations: 63.33 kB / 0.4983 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003149/0.1174, allocations: 341.6 kB / 0.4986 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.496e-05/0.1174, allocations: 29.7 kB / 0.4986 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001491/0.1176, allocations: 263.6 kB / 0.4989 GB, free: 320 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.299e-05/0.1176, allocations: 71 kB / 0.499 GB, free: 248 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.807e-05/0.1177, allocations: 49.7 kB / 0.499 GB, free: 192 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.1178, allocations: 354.7 kB / 0.4993 GB, free: 15.83 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.838e-05/0.1179, allocations: 51.98 kB / 0.4994 GB, free: 15.78 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001318/0.1181, allocations: 128.2 kB / 0.4995 GB, free: 15.63 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002387/0.1183, allocations: 191.6 kB / 0.4997 GB, free: 15.41 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.1183, allocations: 0 / 0.4997 GB, free: 15.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003532/0.1187, allocations: 260.3 kB / 0.4999 GB, free: 15.16 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.879e-05/0.1187, allocations: 7.984 kB / 0.5 GB, free: 15.15 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.1187, allocations: 4.25 kB / 0.5 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.764e-05/0.1187, allocations: 11.98 kB / 0.5 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001717/0.1189, allocations: 43.92 kB / 0.5 GB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.117e-05/0.1189, allocations: 4 kB / 0.5 GB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001119/0.1191, allocations: 39.47 kB / 0.5001 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.846e-05/0.1191, allocations: 12 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.0001508/0.1192, allocations: 153.7 kB / 0.5002 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.065e-05/0.1193, allocations: 31.62 kB / 0.5002 GB, free: 14.84 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.785e-05/0.1194, allocations: 39.33 kB / 0.5003 GB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.868e-06/0.1194, allocations: 4 kB / 0.5003 GB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.243e-06/0.1194, allocations: 7.984 kB / 0.5003 GB, free: 14.79 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.1194, allocations: 0 / 0.5003 GB, free: 14.79 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004014/0.1198, allocations: 397.2 kB / 0.5007 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.1198, allocations: 0 / 0.5007 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001682/0.12, allocations: 31.98 kB / 0.5007 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.017e-06/0.12, allocations: 0 / 0.5007 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.569e-05/0.12, allocations: 8 kB / 0.5007 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.12, allocations: 0 / 0.5007 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.12, allocations: 0 / 0.5007 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004094/0.1204, allocations: 361.4 kB / 0.5011 GB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.911e-05/0.1205, allocations: 104.7 kB / 0.5012 GB, free: 13.83 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.343e-05/0.1206, allocations: 8 kB / 0.5012 GB, free: 13.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.996e-05/0.1207, allocations: 4 kB / 0.5012 GB, free: 13.82 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.278e-05/0.1207, allocations: 8.031 kB / 0.5012 GB, free: 13.81 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.253e-05/0.1207, allocations: 11.98 kB / 0.5012 GB, free: 13.8 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002121/0.1209, allocations: 239.2 kB / 0.5014 GB, free: 13.56 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1209, allocations: 0 / 0.5014 GB, free: 13.56 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003055/0.1213, allocations: 79.47 kB / 0.5015 GB, free: 13.48 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.3e-05/0.1214, allocations: 107.1 kB / 0.5016 GB, free: 13.37 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002838/0.1216, allocations: 155.8 kB / 0.5017 GB, free: 13.22 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1217, allocations: 0 / 0.5017 GB, free: 13.22 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 9.718e-05/0.1218, allocations: 79.86 kB / 0.5018 GB, free: 13.14 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003849/0.1222, allocations: 47.55 kB / 0.5019 GB, free: 13.1 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001024/0.1232, allocations: 0.6917 MB / 0.5025 GB, free: 12.38 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004357/0.1236, allocations: 0.8106 MB / 0.5033 GB, free: 11.54 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.466e-05/0.1237, allocations: 23.44 kB / 0.5033 GB, free: 11.51 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1237, allocations: 0 / 0.5033 GB, free: 11.51 MB / 398.1 MB Notification: Performance of Templates: time 0.006757/0.1305, allocations: 3.741 MB / 0.507 GB, free: 7.766 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)