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.0007493/0.0007493, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.0007898/0.0007899, allocations: 168.7 kB / 15.95 MB, free: 204 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.342/1.342, allocations: 223.3 MB / 240 MB, free: 5.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3371/0.3371, allocations: 28.84 MB / 319.9 MB, free: 6.285 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003496/0.0003496, allocations: 8 kB / 387.9 MB, free: 3.527 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3063/0.3066, allocations: 57.48 MB / 445.4 MB, free: 32.94 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Sugar_Cane): time 0.001933/0.3086, allocations: 1.628 MB / 447 MB, free: 31.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005074/0.3091, allocations: 310.3 kB / 447.3 MB, free: 31.51 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001673/0.3093, allocations: 12.28 kB / 447.3 MB, free: 31.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001503/0.3095, allocations: 44.22 kB / 447.3 MB, free: 31.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.093e-05/0.3096, allocations: 17.97 kB / 447.4 MB, free: 31.46 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002319/0.3098, allocations: 105.2 kB / 447.5 MB, free: 31.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002883/0.3101, allocations: 367 kB / 447.8 MB, free: 31.24 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000315/0.3105, allocations: 249.8 kB / 448.1 MB, free: 31.13 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.879e-05/0.3105, allocations: 87.14 kB / 448.1 MB, free: 31.08 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.595e-05/0.3106, allocations: 106.4 kB / 448.3 MB, free: 31.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.674e-05/0.3107, allocations: 11.44 kB / 448.3 MB, free: 31.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.321e-05/0.3107, allocations: 8.625 kB / 448.3 MB, free: 31.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.511e-05/0.3107, allocations: 52.3 kB / 448.3 MB, free: 30.99 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.435e-05/0.3108, allocations: 86.48 kB / 448.4 MB, free: 30.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001985/0.311, allocations: 271.3 kB / 448.7 MB, free: 30.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.311, allocations: 0 / 448.7 MB, free: 30.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.311, allocations: 0 / 448.7 MB, free: 30.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.414e-06/0.311, allocations: 2.781 kB / 448.7 MB, free: 30.84 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.0006377/0.3117, allocations: 0.6331 MB / 449.3 MB, free: 30.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.3117, allocations: 11.73 kB / 449.3 MB, free: 30.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.41e-05/0.3118, allocations: 57.77 kB / 449.4 MB, free: 30.29 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000315/0.3121, allocations: 319.7 kB / 449.7 MB, free: 30.01 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.728e-05/0.3121, allocations: 37.75 kB / 449.7 MB, free: 29.99 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.281e-05/0.3122, allocations: 54.78 kB / 449.8 MB, free: 29.97 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000579/0.3128, allocations: 483.6 kB / 450.3 MB, free: 29.71 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.618e-05/0.3128, allocations: 6.875 kB / 450.3 MB, free: 29.7 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.086e-05/0.3129, allocations: 23 kB / 450.3 MB, free: 29.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.46e-05/0.3129, allocations: 15.34 kB / 450.3 MB, free: 29.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003489/0.3132, allocations: 254.3 kB / 450.5 MB, free: 29.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001485/0.3147, allocations: 1.742 MB / 452.3 MB, free: 28.29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003797/0.3151, allocations: 210.6 kB / 452.5 MB, free: 28.19 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.61e-05/0.3152, allocations: 61.25 kB / 452.6 MB, free: 28.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.605e-05/0.3152, allocations: 2.625 kB / 452.6 MB, free: 28.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.545e-05/0.3153, allocations: 41.05 kB / 452.6 MB, free: 28.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 2.144e-06/0.3153, allocations: 3.938 kB / 452.6 MB, free: 28.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.0003746/0.3157, allocations: 237.6 kB / 452.8 MB, free: 27.99 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.644e-05/0.3157, allocations: 53.94 kB / 452.9 MB, free: 27.93 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002706/0.316, allocations: 337.5 kB / 453.2 MB, free: 27.74 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.62e-05/0.316, allocations: 31.95 kB / 453.2 MB, free: 27.71 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001205/0.3161, allocations: 255 kB / 453.5 MB, free: 27.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.035e-05/0.3162, allocations: 69.77 kB / 453.6 MB, free: 27.45 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.267e-06/0.3162, allocations: 4 kB / 453.6 MB, free: 27.45 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.681e-05/0.3163, allocations: 341.1 kB / 453.9 MB, free: 27.12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.101e-05/0.3163, allocations: 63.44 kB / 454 MB, free: 27.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001232/0.3165, allocations: 116.8 kB / 454.1 MB, free: 27 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001127/0.3166, allocations: 81.53 kB / 454.2 MB, free: 26.96 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.3166, allocations: 2.531 kB / 454.2 MB, free: 26.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.00032/0.3169, allocations: 254.1 kB / 454.4 MB, free: 26.83 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.317, allocations: 9.516 kB / 454.4 MB, free: 26.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.317, allocations: 2.875 kB / 454.4 MB, free: 26.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/0.317, allocations: 6.375 kB / 454.4 MB, free: 26.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001674/0.3172, allocations: 45.08 kB / 454.5 MB, free: 26.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.148e-06/0.3172, allocations: 6.031 kB / 454.5 MB, free: 26.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.369e-05/0.3173, allocations: 35.72 kB / 454.5 MB, free: 26.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.556e-05/0.3173, allocations: 12.75 kB / 454.5 MB, free: 26.79 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.0001228/0.3174, allocations: 152.1 kB / 454.7 MB, free: 26.64 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.338e-05/0.3175, allocations: 29.62 kB / 454.7 MB, free: 26.63 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.904e-05/0.3176, allocations: 42.5 kB / 454.7 MB, free: 26.59 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.3176, allocations: 2.719 kB / 454.7 MB, free: 26.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.3176, allocations: 4 kB / 454.7 MB, free: 26.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.3176, allocations: 7.359 kB / 454.8 MB, free: 26.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003471/0.3179, allocations: 398.1 kB / 455.1 MB, free: 26.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.3179, allocations: 0 / 455.1 MB, free: 26.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001579/0.3181, allocations: 30.47 kB / 455.2 MB, free: 26.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.3181, allocations: 2.906 kB / 455.2 MB, free: 26.3 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.628e-05/0.3181, allocations: 7.953 kB / 455.2 MB, free: 26.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.3182, allocations: 2.75 kB / 455.2 MB, free: 26.3 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.3182, allocations: 0 / 455.2 MB, free: 26.3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003472/0.3185, allocations: 357.9 kB / 455.5 MB, free: 26.06 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.276e-05/0.3186, allocations: 112.1 kB / 455.6 MB, free: 25.95 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.423e-05/0.3186, allocations: 6.688 kB / 455.6 MB, free: 25.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.57e-05/0.3187, allocations: 11.95 kB / 455.7 MB, free: 25.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.982e-05/0.3188, allocations: 11.77 kB / 455.7 MB, free: 25.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.726e-06/0.3188, allocations: 2.969 kB / 455.7 MB, free: 25.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001749/0.3189, allocations: 239 kB / 455.9 MB, free: 25.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.319, allocations: 3.938 kB / 455.9 MB, free: 25.8 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003191/0.3193, allocations: 71.88 kB / 456 MB, free: 25.78 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.743e-05/0.3194, allocations: 99.75 kB / 456.1 MB, free: 25.69 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002739/0.3197, allocations: 153.8 kB / 456.2 MB, free: 25.64 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.3197, allocations: 0 / 456.2 MB, free: 25.64 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.473e-05/0.3198, allocations: 74.83 kB / 456.3 MB, free: 25.61 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004506/0.3202, allocations: 45.5 kB / 456.3 MB, free: 25.59 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000941/0.3212, allocations: 0.8006 MB / 457.1 MB, free: 25.04 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002187/0.3214, allocations: 0.815 MB / 458 MB, free: 24.33 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.884e-05/0.3215, allocations: 37 kB / 458 MB, free: 24.32 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.298e-05/0.3216, allocations: 23.19 kB / 458 MB, free: 24.31 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3216, allocations: 0 / 458 MB, free: 24.31 MB / 350.1 MB Notification: Performance of Templates: time 0.004922/0.3265, allocations: 1.85 MB / 459.9 MB, free: 24.12 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: