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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002283/0.002283, allocations: 185.7 kB / 7.466 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.33/1.33, allocations: 221.4 MB / 229.3 MB, free: 3.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001239/0.001239, allocations: 89.59 kB / 280.1 MB, free: 1.305 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1808/0.1808, allocations: 28.81 MB / 359.7 MB, free: 1.617 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.426e-06/8.466e-06, allocations: 4 kB / 423.2 MB, free: 44.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1348/0.1348, allocations: 57.47 MB / 480.7 MB, free: 2.676 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4425/0.5774, allocations: 78.38 MB / 0.546 GB, free: 11.24 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002139/0.5776, allocations: 55.98 kB / 0.546 GB, free: 11.18 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.01455/0.5922, allocations: 5.551 MB / 0.5514 GB, free: 5.633 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.871e-05/0.5923, allocations: 8 kB / 0.5514 GB, free: 5.625 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.0009511/0.5933, allocations: 0.6193 MB / 0.552 GB, free: 4.961 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.889e-05/0.5933, allocations: 8.031 kB / 0.5521 GB, free: 4.953 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001107/0.5935, allocations: 63.25 kB / 0.5521 GB, free: 4.891 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004815/0.5939, allocations: 323.5 kB / 0.5524 GB, free: 4.531 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.92e-05/0.594, allocations: 16 kB / 0.5524 GB, free: 4.516 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.676e-05/0.5941, allocations: 32 kB / 0.5525 GB, free: 4.484 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004335/0.5945, allocations: 210.5 kB / 0.5527 GB, free: 4.277 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006974/0.5952, allocations: 397.6 kB / 0.5531 GB, free: 3.855 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.092e-05/0.5952, allocations: 4 kB / 0.5531 GB, free: 3.852 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.123e-05/0.5953, allocations: 0 / 0.5531 GB, free: 3.852 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.843e-05/0.5953, allocations: 15.94 kB / 0.5531 GB, free: 3.836 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001916/0.5972, allocations: 1.626 MB / 0.5547 GB, free: 2.141 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004153/0.5977, allocations: 178.8 kB / 0.5548 GB, free: 1.957 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001054/0.5978, allocations: 56.86 kB / 0.5549 GB, free: 1.898 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.096e-05/0.5978, allocations: 7.984 kB / 0.5549 GB, free: 1.891 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.176e-05/0.5978, allocations: 30.56 kB / 0.5549 GB, free: 1.852 MB / 378.7 MB Notification: Performance of pre-optimization done (n=19): time 1.994e-06/0.5978, allocations: 0 / 0.5549 GB, free: 1.852 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.0003815/0.5982, allocations: 157.4 kB / 0.5551 GB, free: 1.691 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.043e-05/0.5983, allocations: 51.41 kB / 0.5551 GB, free: 1.629 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002173/0.5985, allocations: 192.2 kB / 0.5553 GB, free: 1.43 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.296e-05/0.5985, allocations: 25.7 kB / 0.5553 GB, free: 1.398 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000169/0.5987, allocations: 247.5 kB / 0.5556 GB, free: 1.152 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.251e-05/0.5988, allocations: 70.94 kB / 0.5556 GB, free: 1.082 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.756e-06/0.5988, allocations: 0 / 0.5556 GB, free: 1.082 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.599, allocations: 330.8 kB / 0.5559 GB, free: 0.75 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.37e-05/0.5991, allocations: 55.98 kB / 0.556 GB, free: 0.6953 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001361/0.5992, allocations: 119.7 kB / 0.5561 GB, free: 0.5508 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001141/0.5993, allocations: 65.81 kB / 0.5562 GB, free: 500 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.5993, allocations: 4 kB / 0.5562 GB, free: 496 kB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003213/0.5997, allocations: 217.8 kB / 0.5564 GB, free: 272 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/0.5997, allocations: 4 kB / 0.5564 GB, free: 268 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.5997, allocations: 0 / 0.5564 GB, free: 268 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.5997, allocations: 4.25 kB / 0.5564 GB, free: 264 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001868/0.5999, allocations: 51.92 kB / 0.5564 GB, free: 212 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.798e-06/0.5999, allocations: 7.984 kB / 0.5565 GB, free: 204 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.025e-05/0.6, allocations: 15.84 kB / 0.5565 GB, free: 188 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.589e-05/0.6001, allocations: 8 kB / 0.5565 GB, free: 180 kB / 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 () * 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.0001372/0.6002, allocations: 116.8 kB / 0.5566 GB, free: 56 kB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.57e-05/0.6002, allocations: 19.72 kB / 0.5566 GB, free: 36 kB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.922e-05/0.6003, allocations: 29.89 kB / 0.5566 GB, free: 4 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.6003, allocations: 0 / 0.5566 GB, free: 4 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.079e-05/0.6004, allocations: 4 kB / 0.5566 GB, free: 0 / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-06/0.6004, allocations: 4.125 kB / 0.5566 GB, free: 15.99 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000356/0.6007, allocations: 325.9 kB / 0.557 GB, free: 15.64 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.6007, allocations: 0 / 0.557 GB, free: 15.64 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001854/0.6009, allocations: 35.92 kB / 0.557 GB, free: 15.6 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.6009, allocations: 0 / 0.557 GB, free: 15.6 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.743e-05/0.601, allocations: 4 kB / 0.557 GB, free: 15.6 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.601, allocations: 3.938 kB / 0.557 GB, free: 15.59 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.601, allocations: 0 / 0.557 GB, free: 15.59 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004427/0.6014, allocations: 334.5 kB / 0.5573 GB, free: 15.25 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.674e-05/0.6015, allocations: 100.8 kB / 0.5574 GB, free: 15.14 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.037e-05/0.6016, allocations: 0 / 0.5574 GB, free: 15.14 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.402e-05/0.6016, allocations: 0 / 0.5574 GB, free: 15.14 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.161e-05/0.6017, allocations: 11.92 kB / 0.5574 GB, free: 15.12 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.308e-05/0.6017, allocations: 11.91 kB / 0.5574 GB, free: 15.11 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0001262/0.6018, allocations: 148.5 kB / 0.5576 GB, free: 14.97 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003376/0.6022, allocations: 75.38 kB / 0.5576 GB, free: 14.89 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 0.0001689/0.6024, allocations: 104.2 kB / 0.5577 GB, free: 14.79 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0003008/0.6027, allocations: 148.2 kB / 0.5579 GB, free: 14.64 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.6027, allocations: 0 / 0.5579 GB, free: 14.64 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 8.82e-05/0.6028, allocations: 63.94 kB / 0.5579 GB, free: 14.58 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003585/0.6031, allocations: 35.16 kB / 0.558 GB, free: 14.55 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009872/0.6041, allocations: 459.3 kB / 0.5584 GB, free: 14.07 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005557/0.6047, allocations: 0.8483 MB / 0.5592 GB, free: 13.2 MB / 394.7 MB Notification: Performance of SimCode: time 2.71e-07/0.6047, allocations: 0 / 0.5592 GB, free: 13.2 MB / 394.7 MB Notification: Performance of Templates: time 0.005403/0.6101, allocations: 1.765 MB / 0.561 GB, free: 11.44 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)