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.00117/0.00117, allocations: 105.8 kB / 16.27 MB, free: 6.414 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.001155/0.001156, allocations: 191.6 kB / 17.2 MB, free: 5.953 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.344/1.344, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1651/0.1651, allocations: 28.78 MB / 319.8 MB, free: 2.02 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001432, allocations: 64.09 kB / 387.2 MB, free: 41.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08932/0.09077, allocations: 56.44 MB / 443.7 MB, free: 3.82 MB / 318.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Sugar_Cane): time 0.003301/0.09411, allocations: 2.117 MB / 445.8 MB, free: 1.695 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006256/0.09476, allocations: 326.7 kB / 446.1 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001712/0.09494, allocations: 11.94 kB / 446.1 MB, free: 1.363 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002046/0.09516, allocations: 67.25 kB / 446.2 MB, free: 1.297 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001182/0.09532, allocations: 47.47 kB / 446.2 MB, free: 1.25 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002891/0.09561, allocations: 155.8 kB / 446.4 MB, free: 1.098 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003771/0.096, allocations: 400.5 kB / 446.8 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004204/0.09643, allocations: 326.1 kB / 447.1 MB, free: 380 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001081/0.09654, allocations: 151.3 kB / 447.2 MB, free: 228 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001499/0.0967, allocations: 179 kB / 447.4 MB, free: 48 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.471e-05/0.09676, allocations: 44 kB / 447.5 MB, free: 4 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.952e-05/0.09684, allocations: 44.05 kB / 447.5 MB, free: 15.96 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.454e-05/0.09692, allocations: 107.6 kB / 447.6 MB, free: 15.86 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001383/0.09706, allocations: 210.6 kB / 447.8 MB, free: 15.65 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003583/0.09743, allocations: 410.8 kB / 448.2 MB, free: 15.25 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.09744, allocations: 0 / 448.2 MB, free: 15.25 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.09745, allocations: 4 kB / 448.2 MB, free: 15.24 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.064e-06/0.09746, allocations: 0 / 448.2 MB, free: 15.24 MB / 334.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.0008569/0.09832, allocations: 0.71 MB / 448.9 MB, free: 14.48 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.09837, allocations: 8.031 kB / 448.9 MB, free: 14.47 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.23e-05/0.09845, allocations: 56.28 kB / 449 MB, free: 14.42 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003645/0.09883, allocations: 340.1 kB / 449.3 MB, free: 14.04 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.416e-05/0.09887, allocations: 41.69 kB / 449.4 MB, free: 14 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.172e-05/0.09894, allocations: 52.31 kB / 449.4 MB, free: 13.95 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006194/0.09956, allocations: 488.7 kB / 449.9 MB, free: 13.44 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.35e-05/0.09959, allocations: 192 / 449.9 MB, free: 13.44 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.978e-05/0.09963, allocations: 23.94 kB / 449.9 MB, free: 13.41 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.21e-05/0.09965, allocations: 12 kB / 449.9 MB, free: 13.4 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003885/0.1, allocations: 259.8 kB / 450.2 MB, free: 13.15 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001741/0.1018, allocations: 1.751 MB / 451.9 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004284/0.1022, allocations: 214.8 kB / 452.1 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.614e-05/0.1024, allocations: 68.78 kB / 452.2 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.407e-05/0.1024, allocations: 4 kB / 452.2 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.373e-05/0.1024, allocations: 34.56 kB / 452.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of pre-optimization done (n=19): time 1.483e-06/0.1024, allocations: 0 / 452.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=19): time 0.0004229/0.1028, allocations: 228.7 kB / 452.5 MB, free: 10.75 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.444e-05/0.1029, allocations: 51.41 kB / 452.5 MB, free: 10.69 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003052/0.1032, allocations: 341.6 kB / 452.9 MB, free: 10.34 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.899e-05/0.1032, allocations: 29.7 kB / 452.9 MB, free: 10.31 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001466/0.1034, allocations: 267.6 kB / 453.1 MB, free: 10.04 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.036e-05/0.1034, allocations: 67 kB / 453.2 MB, free: 9.977 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.58e-05/0.1035, allocations: 57.64 kB / 453.3 MB, free: 9.914 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001161/0.1036, allocations: 342.8 kB / 453.6 MB, free: 9.57 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.638e-05/0.1037, allocations: 59.97 kB / 453.7 MB, free: 9.512 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001383/0.1039, allocations: 132.2 kB / 453.8 MB, free: 9.355 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002435/0.1041, allocations: 194 kB / 454 MB, free: 9.141 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.589e-06/0.1041, allocations: 4 kB / 454 MB, free: 9.137 MB / 334.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003469/0.1045, allocations: 251.3 kB / 454.2 MB, free: 8.887 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.94e-05/0.1045, allocations: 8.25 kB / 454.2 MB, free: 8.879 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.1045, allocations: 4 kB / 454.2 MB, free: 8.875 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/0.1046, allocations: 4 kB / 454.2 MB, free: 8.871 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001818/0.1047, allocations: 47.92 kB / 454.3 MB, free: 8.824 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.033e-05/0.1048, allocations: 7.984 kB / 454.3 MB, free: 8.816 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001192/0.1049, allocations: 35.53 kB / 454.3 MB, free: 8.781 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.573e-05/0.1049, allocations: 8 kB / 454.3 MB, free: 8.773 MB / 334.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.0001448/0.1051, allocations: 161.7 kB / 454.5 MB, free: 8.605 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.062e-05/0.1051, allocations: 31.56 kB / 454.5 MB, free: 8.574 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.843e-05/0.1052, allocations: 39.33 kB / 454.6 MB, free: 8.539 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.1052, allocations: 7.938 kB / 454.6 MB, free: 8.531 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.167e-06/0.1052, allocations: 0 / 454.6 MB, free: 8.531 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.1052, allocations: 0 / 454.6 MB, free: 8.531 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003911/0.1056, allocations: 401.2 kB / 455 MB, free: 8.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.1056, allocations: 0 / 455 MB, free: 8.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001703/0.1058, allocations: 31.92 kB / 455 MB, free: 8.059 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/0.1058, allocations: 0 / 455 MB, free: 8.059 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.415e-05/0.1058, allocations: 8 kB / 455 MB, free: 8.051 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.1058, allocations: 0 / 455 MB, free: 8.051 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.1058, allocations: 3.984 kB / 455 MB, free: 8.047 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003994/0.1063, allocations: 355 kB / 455.4 MB, free: 7.684 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.205e-05/0.1063, allocations: 112.7 kB / 455.5 MB, free: 7.555 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.089e-05/0.1064, allocations: 8 kB / 455.5 MB, free: 7.547 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001006/0.1065, allocations: 0 / 455.5 MB, free: 7.547 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.027e-05/0.1065, allocations: 15.98 kB / 455.5 MB, free: 7.531 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.143e-06/0.1065, allocations: 4 kB / 455.5 MB, free: 7.527 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002257/0.1068, allocations: 243.2 kB / 455.7 MB, free: 7.289 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1068, allocations: 0 / 455.7 MB, free: 7.289 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003118/0.1071, allocations: 79.56 kB / 455.8 MB, free: 7.211 MB / 334.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.192e-05/0.1072, allocations: 95.25 kB / 455.9 MB, free: 7.109 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003072/0.1075, allocations: 174.3 kB / 456.1 MB, free: 6.941 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.1075, allocations: 0 / 456.1 MB, free: 6.941 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001069/0.1076, allocations: 75.91 kB / 456.1 MB, free: 6.867 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004463/0.1081, allocations: 47.48 kB / 456.2 MB, free: 6.828 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009991/0.1091, allocations: 0.6913 MB / 456.9 MB, free: 6.105 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003336/0.1094, allocations: 0.8146 MB / 457.7 MB, free: 5.262 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.863e-05/0.1095, allocations: 23.44 kB / 457.7 MB, free: 5.238 MB / 334.1 MB Notification: Performance of SimCode: time 4.6e-07/0.1095, allocations: 0 / 457.7 MB, free: 5.238 MB / 334.1 MB Notification: Performance of Templates: time 0.005577/0.1151, allocations: 3.706 MB / 461.4 MB, free: 1.527 MB / 334.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)