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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo", uses=false) Using package SystemDynamics with version 2.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.0008753/0.0008754, allocations: 172.8 kB / 16.11 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.176/1.176, allocations: 205.4 MB / 222.3 MB, free: 13.73 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008547/0.0008547, allocations: 90.22 kB / 270.6 MB, free: 13.25 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo): time 0.1421/0.1421, allocations: 28.84 MB / 347.7 MB, free: 9.879 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003383/0.0003384, allocations: 16 kB / 413 MB, free: 35.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07552/0.07587, allocations: 54.65 MB / 467.7 MB, free: 12.89 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2453/0.3212, allocations: 78.39 MB / 0.5333 GB, free: 16.77 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001503/0.3214, allocations: 63.58 kB / 0.5333 GB, free: 16.77 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01146/0.3328, allocations: 5.914 MB / 0.5391 GB, free: 16.04 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3329, allocations: 0 / 0.5391 GB, free: 16.04 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.637e-05/0.3329, allocations: 11.53 kB / 0.5391 GB, free: 16.04 MB / 362.7 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.0005686/0.3335, allocations: 0.6474 MB / 0.5397 GB, free: 15.54 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.092e-05/0.3335, allocations: 7.812 kB / 0.5398 GB, free: 15.54 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.938e-05/0.3336, allocations: 55.28 kB / 0.5398 GB, free: 15.51 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002706/0.3339, allocations: 326.2 kB / 0.5401 GB, free: 15.26 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.111e-05/0.3339, allocations: 42.25 kB / 0.5402 GB, free: 15.26 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.981e-05/0.3339, allocations: 58.06 kB / 0.5402 GB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004966/0.3344, allocations: 479.9 kB / 0.5407 GB, free: 15.13 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.568e-05/0.3345, allocations: 4.062 kB / 0.5407 GB, free: 15.13 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.754e-05/0.3345, allocations: 28.72 kB / 0.5407 GB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.927e-06/0.3345, allocations: 15.52 kB / 0.5407 GB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003359/0.3349, allocations: 257.5 kB / 0.541 GB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001318/0.3362, allocations: 1.761 MB / 0.5427 GB, free: 14.02 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003388/0.3365, allocations: 207.8 kB / 0.5429 GB, free: 13.98 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.864e-05/0.3366, allocations: 64.75 kB / 0.5429 GB, free: 13.98 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.369e-05/0.3366, allocations: 0 / 0.5429 GB, free: 13.98 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.192e-05/0.3367, allocations: 41.38 kB / 0.543 GB, free: 13.93 MB / 362.7 MB Notification: Performance of pre-optimization done (n=19): time 1.162e-06/0.3367, allocations: 0 / 0.543 GB, free: 13.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=19): time 0.0003129/0.337, allocations: 234.7 kB / 0.5432 GB, free: 13.87 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.066e-05/0.337, allocations: 55.25 kB / 0.5433 GB, free: 13.81 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002316/0.3373, allocations: 339.4 kB / 0.5436 GB, free: 13.7 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.168e-05/0.3373, allocations: 25.7 kB / 0.5436 GB, free: 13.67 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.366e-05/0.3374, allocations: 255.4 kB / 0.5438 GB, free: 13.52 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.268e-05/0.3374, allocations: 78.48 kB / 0.5439 GB, free: 13.47 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.414e-06/0.3374, allocations: 3.312 kB / 0.5439 GB, free: 13.47 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.186e-05/0.3375, allocations: 348.7 kB / 0.5443 GB, free: 13.16 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.009e-05/0.3376, allocations: 57.48 kB / 0.5443 GB, free: 13.16 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.203e-05/0.3377, allocations: 119.3 kB / 0.5444 GB, free: 13.08 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001848/0.3378, allocations: 203.2 kB / 0.5446 GB, free: 12.99 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.3379, allocations: 0 / 0.5446 GB, free: 12.99 MB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002698/0.3381, allocations: 255 kB / 0.5449 GB, free: 12.92 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.323e-05/0.3382, allocations: 11.19 kB / 0.5449 GB, free: 12.92 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.91e-06/0.3382, allocations: 0 / 0.5449 GB, free: 12.92 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.3382, allocations: 3.844 kB / 0.5449 GB, free: 12.92 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001513/0.3383, allocations: 41.61 kB / 0.5449 GB, free: 12.92 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.3383, allocations: 8.125 kB / 0.5449 GB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.708e-05/0.3384, allocations: 31.25 kB / 0.545 GB, free: 12.9 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.294e-05/0.3385, allocations: 13.73 kB / 0.545 GB, free: 12.9 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001105/0.3386, allocations: 154.2 kB / 0.5451 GB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.045e-05/0.3386, allocations: 35.09 kB / 0.5451 GB, free: 12.75 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.222e-05/0.3387, allocations: 38.81 kB / 0.5452 GB, free: 12.75 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.3387, allocations: 3.875 kB / 0.5452 GB, free: 12.75 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.3387, allocations: 0 / 0.5452 GB, free: 12.75 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.3387, allocations: 0 / 0.5452 GB, free: 12.75 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002846/0.339, allocations: 400.5 kB / 0.5456 GB, free: 12.51 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.339, allocations: 0 / 0.5456 GB, free: 12.51 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000146/0.3392, allocations: 27.19 kB / 0.5456 GB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.3392, allocations: 3.938 kB / 0.5456 GB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.365e-05/0.3392, allocations: 11.27 kB / 0.5456 GB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.3392, allocations: 3.938 kB / 0.5456 GB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.3392, allocations: 0 / 0.5456 GB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000321/0.3395, allocations: 351.3 kB / 0.546 GB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.206e-05/0.3396, allocations: 111.9 kB / 0.5461 GB, free: 12.21 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.704e-05/0.3396, allocations: 11.19 kB / 0.5461 GB, free: 12.2 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.165e-05/0.3397, allocations: 4 kB / 0.5461 GB, free: 12.2 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.226e-05/0.3397, allocations: 11.3 kB / 0.5461 GB, free: 12.2 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.244e-06/0.3397, allocations: 3.812 kB / 0.5461 GB, free: 12.2 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001659/0.3399, allocations: 236.4 kB / 0.5463 GB, free: 12.08 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3399, allocations: 7.719 kB / 0.5463 GB, free: 12.08 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002675/0.3402, allocations: 80.84 kB / 0.5464 GB, free: 12.05 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 7.525e-05/0.3403, allocations: 98.28 kB / 0.5465 GB, free: 11.96 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002092/0.3405, allocations: 161.2 kB / 0.5466 GB, free: 11.93 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3405, allocations: 0 / 0.5466 GB, free: 11.93 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.547e-05/0.3406, allocations: 74.64 kB / 0.5467 GB, free: 11.92 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003822/0.341, allocations: 40.28 kB / 0.5468 GB, free: 11.91 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007845/0.3418, allocations: 0.8048 MB / 0.5475 GB, free: 11.36 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001725/0.3419, allocations: 0.8192 MB / 0.5483 GB, free: 10.6 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.317e-05/0.342, allocations: 22.5 kB / 0.5484 GB, free: 10.59 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.033e-05/0.3421, allocations: 22.91 kB / 0.5484 GB, free: 10.59 MB / 362.7 MB Notification: Performance of SimCode: time 6.42e-07/0.3421, allocations: 0 / 0.5484 GB, free: 10.59 MB / 362.7 MB Notification: Performance of Templates: time 0.003936/0.346, allocations: 1.864 MB / 0.5502 GB, free: 9.684 MB / 362.7 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)