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.003937/0.003937, allocations: 171.9 kB / 15.12 MB, free: 5.969 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.14/1.14, allocations: 223.2 MB / 239 MB, free: 52 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008055/0.0008056, allocations: 100.5 kB / 290.2 MB, free: 4.543 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1404/0.1404, allocations: 28.84 MB / 370.2 MB, free: 36 kB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002806/0.0002806, allocations: 7.062 kB / 438.1 MB, free: 88.33 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07458/0.07487, allocations: 57.48 MB / 495.6 MB, free: 31.73 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2428/0.3177, allocations: 79.19 MB / 0.5613 GB, free: 11.48 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001549/0.3179, allocations: 61.81 kB / 0.5614 GB, free: 11.48 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01215/0.33, allocations: 5.914 MB / 0.5671 GB, free: 10.74 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.33, allocations: 0 / 0.5671 GB, free: 10.74 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.005e-05/0.3301, allocations: 14.56 kB / 0.5672 GB, free: 10.74 MB / 378.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.0005627/0.3306, allocations: 0.6424 MB / 0.5678 GB, free: 10.25 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.025e-05/0.3307, allocations: 9.188 kB / 0.5678 GB, free: 10.25 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.591e-05/0.3308, allocations: 59.42 kB / 0.5679 GB, free: 10.22 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002776/0.3311, allocations: 327 kB / 0.5682 GB, free: 9.969 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.895e-05/0.3311, allocations: 42.27 kB / 0.5682 GB, free: 9.961 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.631e-05/0.3312, allocations: 52.56 kB / 0.5683 GB, free: 9.961 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005304/0.3317, allocations: 477.4 kB / 0.5687 GB, free: 9.836 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.281e-05/0.3317, allocations: 1.375 kB / 0.5687 GB, free: 9.836 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.883e-05/0.3317, allocations: 23.5 kB / 0.5687 GB, free: 9.836 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.21e-05/0.3318, allocations: 13.16 kB / 0.5687 GB, free: 9.836 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003523/0.3321, allocations: 263.9 kB / 0.569 GB, free: 9.816 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001305/0.3334, allocations: 1.763 MB / 0.5707 GB, free: 8.734 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004063/0.3338, allocations: 210 kB / 0.5709 GB, free: 8.707 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.418e-05/0.3339, allocations: 4.922 kB / 0.5709 GB, free: 8.707 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.066e-05/0.3339, allocations: 38.91 kB / 0.571 GB, free: 8.664 MB / 378.7 MB Notification: Performance of pre-optimization done (n=19): time 1.192e-06/0.3339, allocations: 3.938 kB / 0.571 GB, free: 8.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.0003412/0.3342, allocations: 231.8 kB / 0.5712 GB, free: 8.598 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.187e-05/0.3343, allocations: 54.09 kB / 0.5712 GB, free: 8.535 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002355/0.3345, allocations: 303.8 kB / 0.5715 GB, free: 8.43 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.39e-05/0.3345, allocations: 32.02 kB / 0.5716 GB, free: 8.398 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.295e-05/0.3346, allocations: 257.8 kB / 0.5718 GB, free: 8.25 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.373e-05/0.3347, allocations: 66.64 kB / 0.5719 GB, free: 8.207 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.027e-06/0.3347, allocations: 12.62 kB / 0.5719 GB, free: 8.203 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.437e-05/0.3347, allocations: 342 kB / 0.5722 GB, free: 7.891 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.39e-05/0.3348, allocations: 59.88 kB / 0.5723 GB, free: 7.887 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.794e-05/0.3349, allocations: 117.3 kB / 0.5724 GB, free: 7.816 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001185/0.3351, allocations: 81.81 kB / 0.5725 GB, free: 7.809 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.644e-06/0.3351, allocations: 1.188 kB / 0.5725 GB, free: 7.809 MB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003474/0.3354, allocations: 259.6 kB / 0.5727 GB, free: 7.734 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/0.3354, allocations: 7.953 kB / 0.5727 GB, free: 7.734 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.3355, allocations: 2.688 kB / 0.5727 GB, free: 7.734 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.3355, allocations: 3.719 kB / 0.5727 GB, free: 7.734 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000167/0.3356, allocations: 43.94 kB / 0.5728 GB, free: 7.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.782e-06/0.3357, allocations: 8.109 kB / 0.5728 GB, free: 7.727 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.26e-05/0.3358, allocations: 26.88 kB / 0.5728 GB, free: 7.711 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.498e-05/0.3358, allocations: 15.81 kB / 0.5728 GB, free: 7.707 MB / 378.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.0001093/0.3359, allocations: 154.8 kB / 0.573 GB, free: 7.586 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.4e-05/0.3359, allocations: 37.75 kB / 0.573 GB, free: 7.562 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.653e-05/0.336, allocations: 38.5 kB / 0.573 GB, free: 7.559 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.336, allocations: 2.156 kB / 0.573 GB, free: 7.559 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.336, allocations: 0.875 kB / 0.573 GB, free: 7.559 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.336, allocations: 3.953 kB / 0.573 GB, free: 7.555 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003114/0.3363, allocations: 389.7 kB / 0.5734 GB, free: 7.367 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.3364, allocations: 1.312 kB / 0.5734 GB, free: 7.367 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001587/0.3365, allocations: 30.53 kB / 0.5734 GB, free: 7.363 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.3365, allocations: 1.156 kB / 0.5734 GB, free: 7.363 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.342e-05/0.3365, allocations: 4.156 kB / 0.5734 GB, free: 7.363 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.3366, allocations: 5.031 kB / 0.5734 GB, free: 7.359 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.3366, allocations: 1.125 kB / 0.5734 GB, free: 7.359 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003302/0.3369, allocations: 357.4 kB / 0.5738 GB, free: 7.203 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.758e-05/0.3369, allocations: 111 kB / 0.5739 GB, free: 7.09 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.683e-05/0.337, allocations: 5.469 kB / 0.5739 GB, free: 7.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.594e-05/0.3371, allocations: 4.719 kB / 0.5739 GB, free: 7.09 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.945e-05/0.3371, allocations: 16.16 kB / 0.5739 GB, free: 7.082 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.115e-06/0.3371, allocations: 4.031 kB / 0.5739 GB, free: 7.082 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001669/0.3373, allocations: 249.6 kB / 0.5742 GB, free: 6.988 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3373, allocations: 3.938 kB / 0.5742 GB, free: 6.984 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003222/0.3376, allocations: 78.31 kB / 0.5742 GB, free: 6.961 MB / 378.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.638e-05/0.3377, allocations: 97.41 kB / 0.5743 GB, free: 6.867 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002251/0.3379, allocations: 154.7 kB / 0.5745 GB, free: 6.859 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.462e-06/0.3379, allocations: 0.5 kB / 0.5745 GB, free: 6.859 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.449e-05/0.338, allocations: 78.08 kB / 0.5746 GB, free: 6.852 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002814/0.3383, allocations: 44.41 kB / 0.5746 GB, free: 6.84 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008151/0.3391, allocations: 0.8042 MB / 0.5754 GB, free: 6.34 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001926/0.3394, allocations: 0.8213 MB / 0.5762 GB, free: 5.637 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 8.175e-05/0.3394, allocations: 23.52 kB / 0.5762 GB, free: 5.633 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.42e-05/0.3395, allocations: 27.88 kB / 0.5762 GB, free: 5.625 MB / 378.7 MB Notification: Performance of SimCode: time 2.31e-07/0.3395, allocations: 4 kB / 0.5762 GB, free: 5.621 MB / 378.7 MB Notification: Performance of Templates: time 0.004029/0.3435, allocations: 1.844 MB / 0.578 GB, free: 5.453 MB / 378.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)