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.0009956/0.0009957, allocations: 98.19 kB / 15.36 MB, free: 0.7344 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.006353/0.006353, allocations: 171.4 kB / 16.27 MB, free: 6.328 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.343/1.343, allocations: 223.3 MB / 240.3 MB, free: 5.254 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3443/0.3443, allocations: 28.83 MB / 320.3 MB, free: 6.176 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003331/0.0003332, allocations: 12 kB / 388.5 MB, free: 3.199 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3726/0.373, allocations: 57.49 MB / 446 MB, free: 32.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Sugar_Cane): time 0.002017/0.375, allocations: 1.748 MB / 447.7 MB, free: 31.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005655/0.3756, allocations: 313.3 kB / 448 MB, free: 31.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001734/0.3758, allocations: 9.688 kB / 448 MB, free: 31.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001553/0.376, allocations: 47.73 kB / 448.1 MB, free: 31.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001088/0.3761, allocations: 30.14 kB / 448.1 MB, free: 31.24 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002507/0.3763, allocations: 130.9 kB / 448.2 MB, free: 31.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003194/0.3767, allocations: 377.5 kB / 448.6 MB, free: 30.99 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003706/0.377, allocations: 305.2 kB / 448.9 MB, free: 30.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.385e-05/0.3771, allocations: 90 kB / 449 MB, free: 30.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001349/0.3773, allocations: 122 kB / 449.1 MB, free: 30.69 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.915e-05/0.3773, allocations: 8.344 kB / 449.1 MB, free: 30.69 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.499e-05/0.3773, allocations: 8.5 kB / 449.1 MB, free: 30.69 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.378e-05/0.3774, allocations: 60.88 kB / 449.2 MB, free: 30.65 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001144/0.3775, allocations: 183.1 kB / 449.4 MB, free: 30.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002798/0.3778, allocations: 355.2 kB / 449.7 MB, free: 30.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.3778, allocations: 0 / 449.7 MB, free: 30.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.3778, allocations: 5.25 kB / 449.7 MB, free: 30.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.553e-06/0.3778, allocations: 0 / 449.7 MB, free: 30.36 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.000616/0.3784, allocations: 0.6279 MB / 450.3 MB, free: 29.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.3785, allocations: 15.22 kB / 450.4 MB, free: 29.83 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.659e-05/0.3786, allocations: 57 kB / 450.4 MB, free: 29.8 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002924/0.3789, allocations: 329.6 kB / 450.7 MB, free: 29.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.794e-05/0.3789, allocations: 38.31 kB / 450.8 MB, free: 29.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.795e-05/0.379, allocations: 49.47 kB / 450.8 MB, free: 29.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006021/0.3796, allocations: 490.2 kB / 451.3 MB, free: 29.21 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.66e-05/0.3796, allocations: 3.062 kB / 451.3 MB, free: 29.21 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.301e-05/0.3797, allocations: 26.97 kB / 451.3 MB, free: 29.19 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.354e-05/0.3797, allocations: 14.62 kB / 451.3 MB, free: 29.19 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003529/0.38, allocations: 252.5 kB / 451.6 MB, free: 29.11 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001405/0.3814, allocations: 1.755 MB / 453.3 MB, free: 27.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003798/0.3818, allocations: 206.7 kB / 453.6 MB, free: 27.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.541e-05/0.3819, allocations: 68.03 kB / 453.6 MB, free: 27.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.644e-05/0.382, allocations: 3.156 kB / 453.6 MB, free: 27.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.361e-05/0.382, allocations: 38.03 kB / 453.7 MB, free: 27.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.203e-06/0.382, allocations: 0 / 453.7 MB, free: 27.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.0003728/0.3824, allocations: 225 kB / 453.9 MB, free: 27.51 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.997e-05/0.3824, allocations: 58.03 kB / 453.9 MB, free: 27.44 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002715/0.3827, allocations: 348.5 kB / 454.3 MB, free: 27.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.837e-05/0.3827, allocations: 29.7 kB / 454.3 MB, free: 27.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001422/0.3829, allocations: 258.6 kB / 454.6 MB, free: 27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.167e-05/0.3829, allocations: 73.86 kB / 454.6 MB, free: 26.95 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.056e-05/0.383, allocations: 32.08 kB / 454.7 MB, free: 26.92 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.993e-05/0.383, allocations: 342.3 kB / 455 MB, free: 26.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.115e-05/0.3831, allocations: 63.16 kB / 455.1 MB, free: 26.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001198/0.3833, allocations: 126.8 kB / 455.2 MB, free: 26.46 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000228/0.3835, allocations: 198.2 kB / 455.4 MB, free: 26.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.3835, allocations: 0 / 455.4 MB, free: 26.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003229/0.3838, allocations: 260.4 kB / 455.6 MB, free: 26.19 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.461e-05/0.3839, allocations: 5.75 kB / 455.6 MB, free: 26.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.3839, allocations: 2.688 kB / 455.6 MB, free: 26.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.763e-05/0.3839, allocations: 7.125 kB / 455.6 MB, free: 26.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001661/0.3841, allocations: 51.52 kB / 455.7 MB, free: 26.17 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.337e-06/0.3841, allocations: 5.906 kB / 455.7 MB, free: 26.17 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.723e-05/0.3842, allocations: 32.06 kB / 455.7 MB, free: 26.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.322e-05/0.3842, allocations: 14.44 kB / 455.7 MB, free: 26.14 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000123/0.3843, allocations: 159 kB / 455.9 MB, free: 26 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.384e-05/0.3844, allocations: 34.44 kB / 455.9 MB, free: 25.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.447e-05/0.3845, allocations: 34.38 kB / 456 MB, free: 25.96 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.3845, allocations: 3.062 kB / 456 MB, free: 25.96 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.3845, allocations: 7.328 kB / 456 MB, free: 25.95 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.3845, allocations: 0 / 456 MB, free: 25.95 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003413/0.3848, allocations: 397.4 kB / 456.4 MB, free: 25.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.3848, allocations: 0 / 456.4 MB, free: 25.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001679/0.385, allocations: 27.16 kB / 456.4 MB, free: 25.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.385, allocations: 0 / 456.4 MB, free: 25.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.574e-05/0.385, allocations: 6.688 kB / 456.4 MB, free: 25.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.3851, allocations: 3.281 kB / 456.4 MB, free: 25.67 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.021e-06/0.3851, allocations: 0 / 456.4 MB, free: 25.67 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003843/0.3855, allocations: 361.3 kB / 456.8 MB, free: 25.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.949e-05/0.3855, allocations: 114.5 kB / 456.9 MB, free: 25.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.883e-05/0.3855, allocations: 4 kB / 456.9 MB, free: 25.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.609e-05/0.3856, allocations: 2.625 kB / 456.9 MB, free: 25.31 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.66e-05/0.3857, allocations: 12.72 kB / 456.9 MB, free: 25.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.304e-06/0.3857, allocations: 2.625 kB / 456.9 MB, free: 25.31 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001835/0.3859, allocations: 239.3 kB / 457.1 MB, free: 25.18 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3859, allocations: 0 / 457.1 MB, free: 25.18 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002904/0.3862, allocations: 78.78 kB / 457.2 MB, free: 25.15 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.494e-05/0.3863, allocations: 101.8 kB / 457.3 MB, free: 25.05 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002755/0.3866, allocations: 163.5 kB / 457.5 MB, free: 25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.3866, allocations: 0 / 457.5 MB, free: 25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.234e-05/0.3867, allocations: 69.27 kB / 457.5 MB, free: 24.98 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000439/0.3871, allocations: 46.64 kB / 457.6 MB, free: 24.96 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00102/0.3881, allocations: 0.8599 MB / 458.4 MB, free: 24.36 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002434/0.3884, allocations: 0.8145 MB / 459.2 MB, free: 23.65 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.685e-05/0.3885, allocations: 28.69 kB / 459.3 MB, free: 23.64 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.666e-05/0.3885, allocations: 20.56 kB / 459.3 MB, free: 23.64 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3885, allocations: 0 / 459.3 MB, free: 23.64 MB / 350.1 MB Notification: Performance of Templates: time 0.005014/0.3936, allocations: 1.905 MB / 461.2 MB, free: 23.45 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: