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.001102/0.001102, allocations: 108.5 kB / 16.41 MB, free: 6.512 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.001339/0.001339, allocations: 186.7 kB / 17.35 MB, free: 5.723 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.299/1.299, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1627/0.1627, allocations: 28.79 MB / 320 MB, free: 1.91 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001329, allocations: 59.91 kB / 444.9 MB, free: 2.605 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1055, allocations: 56.42 MB / 0.4896 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Sugar_Cane): time 0.003529/0.109, allocations: 2.099 MB / 0.4917 GB, free: 8.023 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009447/0.11, allocations: 322.8 kB / 0.492 GB, free: 7.707 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003198/0.1103, allocations: 19.88 kB / 0.492 GB, free: 7.688 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002569/0.1106, allocations: 71.23 kB / 0.4921 GB, free: 7.617 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001674/0.1108, allocations: 35.5 kB / 0.4921 GB, free: 7.582 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003491/0.1112, allocations: 163.8 kB / 0.4923 GB, free: 7.422 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004957/0.1117, allocations: 412.4 kB / 0.4926 GB, free: 7.016 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004834/0.1122, allocations: 326.1 kB / 0.493 GB, free: 6.68 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001587/0.1123, allocations: 155.3 kB / 0.4931 GB, free: 6.527 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001845/0.1125, allocations: 182.9 kB / 0.4933 GB, free: 6.348 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.611e-05/0.1126, allocations: 44 kB / 0.4933 GB, free: 6.305 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.018e-05/0.1127, allocations: 40 kB / 0.4934 GB, free: 6.266 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.645e-05/0.1127, allocations: 103.6 kB / 0.4935 GB, free: 6.164 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001854/0.1129, allocations: 214.7 kB / 0.4937 GB, free: 5.953 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004818/0.1134, allocations: 442.1 kB / 0.4941 GB, free: 5.52 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.1134, allocations: 0 / 0.4941 GB, free: 5.52 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1135, allocations: 0 / 0.4941 GB, free: 5.52 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.306e-05/0.1135, allocations: 0 / 0.4941 GB, free: 5.52 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.000983/0.1145, allocations: 0.7216 MB / 0.4948 GB, free: 4.746 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.1145, allocations: 8.031 kB / 0.4948 GB, free: 4.738 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.835e-05/0.1146, allocations: 56.28 kB / 0.4949 GB, free: 4.684 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005074/0.1151, allocations: 344.2 kB / 0.4952 GB, free: 4.305 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.287e-05/0.1152, allocations: 41.69 kB / 0.4952 GB, free: 4.266 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.42e-05/0.1152, allocations: 48.38 kB / 0.4953 GB, free: 4.219 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006541/0.1159, allocations: 488.7 kB / 0.4957 GB, free: 3.707 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.879e-05/0.1159, allocations: 4.125 kB / 0.4957 GB, free: 3.703 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.855e-05/0.116, allocations: 27.94 kB / 0.4958 GB, free: 3.676 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.467e-05/0.116, allocations: 16 kB / 0.4958 GB, free: 3.66 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004194/0.1164, allocations: 251.8 kB / 0.496 GB, free: 3.414 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001924/0.1183, allocations: 1.739 MB / 0.4977 GB, free: 1.59 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004421/0.1188, allocations: 209.7 kB / 0.4979 GB, free: 1.379 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001117/0.1189, allocations: 68.84 kB / 0.498 GB, free: 1.309 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.729e-05/0.119, allocations: 0 / 0.498 GB, free: 1.309 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.438e-05/0.119, allocations: 38.56 kB / 0.498 GB, free: 1.262 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 1.704e-06/0.119, allocations: 0 / 0.498 GB, free: 1.262 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.0004161/0.1194, allocations: 221.2 kB / 0.4982 GB, free: 1.039 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.956e-05/0.1194, allocations: 59.34 kB / 0.4983 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003314/0.1198, allocations: 341.6 kB / 0.4986 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.538e-05/0.1198, allocations: 29.7 kB / 0.4986 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001625/0.12, allocations: 263.6 kB / 0.4989 GB, free: 340 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.668e-05/0.1201, allocations: 74.98 kB / 0.499 GB, free: 264 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.634e-05/0.1201, allocations: 49.7 kB / 0.499 GB, free: 208 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.1203, allocations: 346.8 kB / 0.4993 GB, free: 15.86 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001043/0.1204, allocations: 59.91 kB / 0.4994 GB, free: 15.8 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001441/0.1205, allocations: 128.2 kB / 0.4995 GB, free: 15.64 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002607/0.1208, allocations: 194 kB / 0.4997 GB, free: 15.43 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.1208, allocations: 0 / 0.4997 GB, free: 15.43 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003847/0.1212, allocations: 260.3 kB / 0.5 GB, free: 15.17 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.1212, allocations: 4 kB / 0.5 GB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.1212, allocations: 4.25 kB / 0.5 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.949e-05/0.1213, allocations: 8 kB / 0.5 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001834/0.1215, allocations: 43.92 kB / 0.5 GB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.1e-05/0.1215, allocations: 7.984 kB / 0.5 GB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001128/0.1216, allocations: 35.53 kB / 0.5001 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.722e-05/0.1216, allocations: 12 kB / 0.5001 GB, free: 15.06 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.0001523/0.1218, allocations: 153.7 kB / 0.5002 GB, free: 14.9 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.168e-05/0.1218, allocations: 31.62 kB / 0.5002 GB, free: 14.87 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.836e-05/0.1219, allocations: 39.27 kB / 0.5003 GB, free: 14.83 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.117e-06/0.1219, allocations: 4 kB / 0.5003 GB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.1219, allocations: 0 / 0.5003 GB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.779e-05/0.122, allocations: 116.7 kB / 0.5004 GB, free: 14.69 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.438e-05/0.1221, allocations: 15.88 kB / 0.5004 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001018/0.1222, allocations: 4 kB / 0.5004 GB, free: 14.67 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.608e-05/0.1222, allocations: 7.984 kB / 0.5004 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004432/0.1226, allocations: 267.3 kB / 0.5007 GB, free: 14.4 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004465/0.1231, allocations: 442.3 kB / 0.5011 GB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 9.652e-05/0.1232, allocations: 66.94 kB / 0.5012 GB, free: 13.89 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002128/0.1234, allocations: 243.1 kB / 0.5014 GB, free: 13.65 MB / 398.1 MB Notification: Performance of Backend: time 5.01e-07/0.1234, allocations: 0 / 0.5014 GB, free: 13.65 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004826/0.1239, allocations: 189.1 kB / 0.5016 GB, free: 13.46 MB / 398.1 MB Notification: Performance of SimCode: time 0.001324/0.1253, allocations: 1.119 MB / 0.5027 GB, free: 12.29 MB / 398.1 MB Notification: Performance of Templates: time 0.006337/0.1316, allocations: 2.676 MB / 0.5053 GB, free: 9.621 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)