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 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) 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 4.0.0+maint.om/package.mo): time 0.001152/0.001152, allocations: 172 kB / 12.73 MB, free: 2.586 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.175/1.175, allocations: 221.4 MB / 234.6 MB, free: 14.46 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008163/0.0008164, allocations: 88.97 kB / 285.6 MB, free: 13.01 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3223/0.3223, allocations: 28.81 MB / 365.3 MB, free: 42.04 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.334e-05/2.336e-05, allocations: 7.984 kB / 430.7 MB, free: 4.457 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09589/0.09593, allocations: 57.47 MB / 488.1 MB, free: 10.91 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2802/0.3761, allocations: 79.12 MB / 0.554 GB, free: 25.59 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001355/0.3763, allocations: 57.56 kB / 0.554 GB, free: 25.57 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01221/0.3885, allocations: 5.927 MB / 0.5598 GB, free: 22.43 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3885, allocations: 0 / 0.5598 GB, free: 22.43 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.77e-05/0.3886, allocations: 13.06 kB / 0.5598 GB, free: 22.41 MB / 394.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.0005257/0.3891, allocations: 0.6164 MB / 0.5604 GB, free: 21.84 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.302e-05/0.3891, allocations: 8.031 kB / 0.5604 GB, free: 21.83 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.853e-05/0.3892, allocations: 59.12 kB / 0.5605 GB, free: 21.78 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002811/0.3895, allocations: 321.3 kB / 0.5608 GB, free: 21.48 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.429e-05/0.3895, allocations: 38.69 kB / 0.5608 GB, free: 21.46 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.248e-05/0.3896, allocations: 57.61 kB / 0.5609 GB, free: 21.42 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000541/0.3901, allocations: 471 kB / 0.5613 GB, free: 21.11 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.3902, allocations: 4 kB / 0.5613 GB, free: 21.1 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.922e-05/0.3902, allocations: 20.31 kB / 0.5613 GB, free: 21.1 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.358e-06/0.3902, allocations: 15.95 kB / 0.5614 GB, free: 21.08 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003241/0.3905, allocations: 247.4 kB / 0.5616 GB, free: 20.92 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001306/0.3919, allocations: 1.763 MB / 0.5633 GB, free: 19.51 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003835/0.3923, allocations: 205.8 kB / 0.5635 GB, free: 19.38 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.684e-05/0.3923, allocations: 68.55 kB / 0.5636 GB, free: 19.33 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.526e-05/0.3924, allocations: 1.797 kB / 0.5636 GB, free: 19.33 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.146e-05/0.3924, allocations: 42.52 kB / 0.5636 GB, free: 19.28 MB / 394.7 MB Notification: Performance of pre-optimization done (n=19): time 1.302e-06/0.3924, allocations: 4 kB / 0.5636 GB, free: 19.27 MB / 394.7 MB Notification: Performance of matching and sorting (n=19): time 0.0002493/0.3926, allocations: 172.6 kB / 0.5638 GB, free: 19.14 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.835e-05/0.3927, allocations: 55.41 kB / 0.5638 GB, free: 19.08 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002148/0.3929, allocations: 294.2 kB / 0.5641 GB, free: 18.86 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.21e-05/0.3929, allocations: 29.64 kB / 0.5642 GB, free: 18.83 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.723e-05/0.393, allocations: 267.2 kB / 0.5644 GB, free: 18.65 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.303e-05/0.393, allocations: 67.84 kB / 0.5645 GB, free: 18.6 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.225e-06/0.3931, allocations: 3.625 kB / 0.5645 GB, free: 18.6 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 5.106e-05/0.3931, allocations: 349.2 kB / 0.5648 GB, free: 18.27 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.237e-05/0.3932, allocations: 61.75 kB / 0.5649 GB, free: 18.23 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.323e-05/0.3933, allocations: 114 kB / 0.565 GB, free: 18.12 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001073/0.3934, allocations: 73.05 kB / 0.565 GB, free: 18.09 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.3934, allocations: 0 / 0.565 GB, free: 18.09 MB / 394.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002689/0.3937, allocations: 242.2 kB / 0.5653 GB, free: 17.91 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.266e-05/0.3937, allocations: 12 kB / 0.5653 GB, free: 17.9 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.3937, allocations: 0 / 0.5653 GB, free: 17.9 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.124e-05/0.3937, allocations: 4 kB / 0.5653 GB, free: 17.89 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001586/0.3939, allocations: 45.05 kB / 0.5653 GB, free: 17.86 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.305e-06/0.3939, allocations: 11.89 kB / 0.5653 GB, free: 17.84 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.418e-05/0.394, allocations: 31.53 kB / 0.5654 GB, free: 17.82 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.264e-05/0.394, allocations: 11.31 kB / 0.5654 GB, free: 17.81 MB / 394.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 () * 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 4.959e-05/0.3941, allocations: 122.1 kB / 0.5655 GB, free: 17.69 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.173e-05/0.3941, allocations: 32.89 kB / 0.5655 GB, free: 17.66 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.069e-05/0.3942, allocations: 41.38 kB / 0.5656 GB, free: 17.64 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.3942, allocations: 5.312 kB / 0.5656 GB, free: 17.64 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.848e-06/0.3942, allocations: 0 / 0.5656 GB, free: 17.64 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.137e-06/0.3942, allocations: 9.391 kB / 0.5656 GB, free: 17.63 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002925/0.3945, allocations: 390.1 kB / 0.566 GB, free: 17.34 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.3945, allocations: 0 / 0.566 GB, free: 17.34 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001562/0.3947, allocations: 31.38 kB / 0.566 GB, free: 17.32 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.3947, allocations: 0 / 0.566 GB, free: 17.32 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.303e-05/0.3947, allocations: 4 kB / 0.566 GB, free: 17.31 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.3947, allocations: 0 / 0.566 GB, free: 17.31 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.3947, allocations: 7.938 kB / 0.566 GB, free: 17.3 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003035/0.395, allocations: 351.3 kB / 0.5663 GB, free: 17.03 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.408e-05/0.3951, allocations: 115.2 kB / 0.5664 GB, free: 16.91 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.611e-05/0.3951, allocations: 4 kB / 0.5664 GB, free: 16.9 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.62e-05/0.3952, allocations: 7.484 kB / 0.5665 GB, free: 16.9 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.084e-05/0.3953, allocations: 7.938 kB / 0.5665 GB, free: 16.89 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.376e-06/0.3953, allocations: 6.938 kB / 0.5665 GB, free: 16.89 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001539/0.3954, allocations: 236.6 kB / 0.5667 GB, free: 16.71 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3954, allocations: 6.25 kB / 0.5667 GB, free: 16.71 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002528/0.3957, allocations: 69.69 kB / 0.5668 GB, free: 16.65 MB / 394.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 () * 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.932e-05/0.3958, allocations: 105.4 kB / 0.5669 GB, free: 16.54 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002015/0.396, allocations: 152.3 kB / 0.567 GB, free: 16.44 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.396, allocations: 3.5 kB / 0.567 GB, free: 16.44 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 7.391e-05/0.3961, allocations: 69.42 kB / 0.5671 GB, free: 16.39 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002659/0.3963, allocations: 50.17 kB / 0.5671 GB, free: 16.36 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006576/0.397, allocations: 484.4 kB / 0.5676 GB, free: 15.96 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000183/0.3972, allocations: 0.8205 MB / 0.5684 GB, free: 15.17 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 8.572e-05/0.3973, allocations: 35.33 kB / 0.5684 GB, free: 15.14 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.951e-05/0.3974, allocations: 23.44 kB / 0.5685 GB, free: 15.12 MB / 394.7 MB Notification: Performance of SimCode: time 2.71e-07/0.3974, allocations: 0 / 0.5685 GB, free: 15.12 MB / 394.7 MB Notification: Performance of Templates: time 0.004162/0.4015, allocations: 1.851 MB / 0.5703 GB, free: 14.02 MB / 394.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)