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.001223/0.001222, allocations: 98.83 kB / 15.05 MB, free: 1.105 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.001102/0.001102, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.433/1.433, allocations: 223.2 MB / 239.9 MB, free: 5.457 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3684/0.3684, allocations: 28.84 MB / 319.8 MB, free: 6.293 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003957/0.0003959, allocations: 4 kB / 387.8 MB, free: 3.566 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3601/0.3606, allocations: 57.48 MB / 445.3 MB, free: 32.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Sugar_Cane): time 0.001788/0.3624, allocations: 1.63 MB / 446.9 MB, free: 31.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005553/0.363, allocations: 321.5 kB / 447.2 MB, free: 31.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001831/0.3632, allocations: 5.406 kB / 447.2 MB, free: 31.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.51e-05/0.3632, allocations: 40.03 kB / 447.2 MB, free: 31.37 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000141/0.3634, allocations: 28.94 kB / 447.3 MB, free: 31.35 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000213/0.3636, allocations: 110.2 kB / 447.4 MB, free: 31.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000265/0.3639, allocations: 242.4 kB / 447.6 MB, free: 31.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003125/0.3642, allocations: 251.2 kB / 447.9 MB, free: 31.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.861e-05/0.3643, allocations: 82.91 kB / 447.9 MB, free: 31.01 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.987e-05/0.3644, allocations: 115.5 kB / 448.1 MB, free: 30.94 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.485e-05/0.3644, allocations: 8.719 kB / 448.1 MB, free: 30.94 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.192e-05/0.3644, allocations: 9 kB / 448.1 MB, free: 30.94 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.48e-05/0.3645, allocations: 53.08 kB / 448.1 MB, free: 30.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.347e-05/0.3645, allocations: 89.95 kB / 448.2 MB, free: 30.83 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002019/0.3647, allocations: 264.5 kB / 448.5 MB, free: 30.77 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.3647, allocations: 0 / 448.5 MB, free: 30.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3647, allocations: 0 / 448.5 MB, free: 30.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.374e-05/0.3648, allocations: 0 / 448.5 MB, free: 30.77 MB / 350.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.0006577/0.3654, allocations: 0.6356 MB / 449.1 MB, free: 30.24 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.72e-05/0.3655, allocations: 8.531 kB / 449.1 MB, free: 30.24 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.064e-05/0.3656, allocations: 60.2 kB / 449.2 MB, free: 30.21 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003073/0.3659, allocations: 323.6 kB / 449.5 MB, free: 29.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.678e-05/0.3659, allocations: 40.41 kB / 449.5 MB, free: 29.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.67e-05/0.366, allocations: 54.69 kB / 449.6 MB, free: 29.89 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000537/0.3665, allocations: 475.4 kB / 450 MB, free: 29.63 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.322e-05/0.3666, allocations: 3 kB / 450 MB, free: 29.63 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.008e-05/0.3666, allocations: 22.95 kB / 450.1 MB, free: 29.61 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.166e-05/0.3666, allocations: 18.53 kB / 450.1 MB, free: 29.61 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003324/0.367, allocations: 260.5 kB / 450.3 MB, free: 29.51 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001395/0.3684, allocations: 1.744 MB / 452.1 MB, free: 28.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000418/0.3688, allocations: 218.9 kB / 452.3 MB, free: 28.11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.758e-05/0.3688, allocations: 7.375 kB / 452.3 MB, free: 28.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.474e-05/0.3688, allocations: 30.56 kB / 452.3 MB, free: 28.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.212e-06/0.3688, allocations: 0 / 452.3 MB, free: 28.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.0003626/0.3692, allocations: 231.2 kB / 452.6 MB, free: 27.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.758e-05/0.3692, allocations: 56.72 kB / 452.6 MB, free: 27.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003185/0.3696, allocations: 343.3 kB / 453 MB, free: 27.7 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.754e-05/0.3696, allocations: 29.7 kB / 453 MB, free: 27.66 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001229/0.3697, allocations: 253.5 kB / 453.2 MB, free: 27.46 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.136e-05/0.3698, allocations: 73.2 kB / 453.3 MB, free: 27.4 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.04e-05/0.3698, allocations: 4 kB / 453.3 MB, free: 27.4 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.3e-05/0.3699, allocations: 352.1 kB / 453.6 MB, free: 27.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.558e-05/0.37, allocations: 55.84 kB / 453.7 MB, free: 27.04 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001091/0.3701, allocations: 119.5 kB / 453.8 MB, free: 26.95 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001052/0.3702, allocations: 76.06 kB / 453.9 MB, free: 26.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.3702, allocations: 4 kB / 453.9 MB, free: 26.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002954/0.3705, allocations: 254.2 kB / 454.1 MB, free: 26.78 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.917e-05/0.3705, allocations: 7.562 kB / 454.2 MB, free: 26.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.3705, allocations: 7.406 kB / 454.2 MB, free: 26.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.3706, allocations: 2.625 kB / 454.2 MB, free: 26.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001692/0.3707, allocations: 51.11 kB / 454.2 MB, free: 26.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.885e-06/0.3707, allocations: 2.875 kB / 454.2 MB, free: 26.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.697e-05/0.3709, allocations: 42.03 kB / 454.3 MB, free: 26.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.27e-05/0.3709, allocations: 11.88 kB / 454.3 MB, free: 26.73 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001103/0.371, allocations: 145.5 kB / 454.4 MB, free: 26.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.186e-05/0.371, allocations: 31.38 kB / 454.4 MB, free: 26.58 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.669e-05/0.3711, allocations: 41.69 kB / 454.5 MB, free: 26.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.3711, allocations: 2.625 kB / 454.5 MB, free: 26.55 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.3711, allocations: 3.953 kB / 454.5 MB, free: 26.54 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.3711, allocations: 0 / 454.5 MB, free: 26.54 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003237/0.3714, allocations: 400.2 kB / 454.9 MB, free: 26.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-06/0.3715, allocations: 4 kB / 454.9 MB, free: 26.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001585/0.3716, allocations: 26.8 kB / 454.9 MB, free: 26.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.3716, allocations: 5.812 kB / 454.9 MB, free: 26.26 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.586e-05/0.3717, allocations: 8 kB / 454.9 MB, free: 26.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.3717, allocations: 6.875 kB / 454.9 MB, free: 26.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.3717, allocations: 0 / 454.9 MB, free: 26.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003301/0.372, allocations: 349.5 kB / 455.3 MB, free: 26.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.121e-05/0.3721, allocations: 112.3 kB / 455.4 MB, free: 25.9 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.079e-05/0.3721, allocations: 10.81 kB / 455.4 MB, free: 25.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.842e-05/0.3722, allocations: 4 kB / 455.4 MB, free: 25.89 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.777e-05/0.3722, allocations: 11.75 kB / 455.4 MB, free: 25.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.336e-06/0.3722, allocations: 6.547 kB / 455.4 MB, free: 25.89 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000166/0.3724, allocations: 242.5 kB / 455.6 MB, free: 25.76 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3724, allocations: 0 / 455.6 MB, free: 25.76 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002863/0.3727, allocations: 66.28 kB / 455.7 MB, free: 25.74 MB / 350.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 (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 8.108e-05/0.3728, allocations: 98.66 kB / 455.8 MB, free: 25.65 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002382/0.3731, allocations: 162.7 kB / 456 MB, free: 25.59 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.3731, allocations: 0 / 456 MB, free: 25.59 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.869e-05/0.3731, allocations: 71.5 kB / 456 MB, free: 25.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003442/0.3735, allocations: 47.58 kB / 456.1 MB, free: 25.54 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008501/0.3744, allocations: 0.8145 MB / 456.9 MB, free: 24.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002202/0.3746, allocations: 0.823 MB / 457.7 MB, free: 24.27 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.755e-05/0.3747, allocations: 24.67 kB / 457.7 MB, free: 24.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.832e-05/0.3747, allocations: 24.06 kB / 457.8 MB, free: 24.26 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3747, allocations: 0 / 457.8 MB, free: 24.26 MB / 350.1 MB Notification: Performance of Templates: time 0.004622/0.3794, allocations: 1.836 MB / 459.6 MB, free: 24.07 MB / 350.1 MB make -j1 -f SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: