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.001397/0.001397, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001619/0.001619, allocations: 195.2 kB / 16.14 MB, free: 6.652 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.394/1.394, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3054/0.3054, allocations: 28.78 MB / 318.7 MB, free: 5.934 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001072/0.001072, allocations: 55.92 kB / 385.9 MB, free: 4.113 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3658/0.3669, allocations: 56.41 MB / 442.3 MB, free: 39.8 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Sugar_Cane): time 0.003255/0.3703, allocations: 2.146 MB / 444.5 MB, free: 38.57 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006242/0.3709, allocations: 310.3 kB / 444.8 MB, free: 38.48 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001937/0.3711, allocations: 10.47 kB / 444.8 MB, free: 38.47 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002135/0.3713, allocations: 48.89 kB / 444.8 MB, free: 38.45 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001039/0.3715, allocations: 18.09 kB / 444.9 MB, free: 38.44 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003076/0.3718, allocations: 143.3 kB / 445 MB, free: 38.43 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003497/0.3721, allocations: 379.2 kB / 445.4 MB, free: 38.39 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004169/0.3726, allocations: 320.9 kB / 445.7 MB, free: 38.31 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.968e-05/0.3727, allocations: 132.3 kB / 445.8 MB, free: 38.27 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000165/0.3728, allocations: 186.7 kB / 446 MB, free: 38.2 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.149e-05/0.3729, allocations: 25.72 kB / 446 MB, free: 38.2 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.427e-05/0.3729, allocations: 25.19 kB / 446 MB, free: 38.2 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.724e-05/0.373, allocations: 81.3 kB / 446.1 MB, free: 38.18 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001445/0.3732, allocations: 200.1 kB / 446.3 MB, free: 38.1 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003398/0.3735, allocations: 379.2 kB / 446.7 MB, free: 38 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.3735, allocations: 2.938 kB / 446.7 MB, free: 38 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.3735, allocations: 0 / 446.7 MB, free: 38 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.596e-06/0.3736, allocations: 0 / 446.7 MB, free: 38 MB / 366.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.0009533/0.3745, allocations: 0.7251 MB / 447.4 MB, free: 37.5 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.488e-05/0.3746, allocations: 8.188 kB / 447.4 MB, free: 37.5 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.686e-05/0.3747, allocations: 59.39 kB / 447.5 MB, free: 37.47 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003496/0.375, allocations: 322 kB / 447.8 MB, free: 37.22 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.544e-05/0.3751, allocations: 42.12 kB / 447.8 MB, free: 37.22 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.178e-05/0.3752, allocations: 50.75 kB / 447.9 MB, free: 37.22 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006183/0.3758, allocations: 486.4 kB / 448.4 MB, free: 37.09 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.742e-05/0.3758, allocations: 4.125 kB / 448.4 MB, free: 37.09 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.611e-05/0.3759, allocations: 26.22 kB / 448.4 MB, free: 37.08 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.785e-05/0.3759, allocations: 14.19 kB / 448.4 MB, free: 37.08 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003947/0.3763, allocations: 253.9 kB / 448.6 MB, free: 37.07 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001647/0.3779, allocations: 1.751 MB / 450.4 MB, free: 35.8 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004214/0.3784, allocations: 209.2 kB / 450.6 MB, free: 35.71 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.917e-05/0.3785, allocations: 61.2 kB / 450.7 MB, free: 35.68 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.528e-05/0.3785, allocations: 6.906 kB / 450.7 MB, free: 35.67 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.901e-05/0.3785, allocations: 34.56 kB / 450.7 MB, free: 35.63 MB / 366.1 MB Notification: Performance of pre-optimization done (n=19): time 1.312e-06/0.3785, allocations: 0 / 450.7 MB, free: 35.63 MB / 366.1 MB Notification: Performance of matching and sorting (n=19): time 0.0003897/0.3789, allocations: 230.8 kB / 450.9 MB, free: 35.52 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.259e-05/0.379, allocations: 54.31 kB / 451 MB, free: 35.45 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002742/0.3793, allocations: 346.3 kB / 451.3 MB, free: 35.26 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.469e-05/0.3793, allocations: 29.7 kB / 451.3 MB, free: 35.23 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001038/0.3794, allocations: 255.7 kB / 451.6 MB, free: 35.02 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.247e-05/0.3794, allocations: 81.62 kB / 451.7 MB, free: 34.96 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.819e-05/0.3795, allocations: 46.33 kB / 451.7 MB, free: 34.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.163e-05/0.3796, allocations: 349.5 kB / 452.1 MB, free: 34.59 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.026e-05/0.3797, allocations: 58.02 kB / 452.1 MB, free: 34.57 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001211/0.3798, allocations: 133.4 kB / 452.3 MB, free: 34.46 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002403/0.3801, allocations: 198.2 kB / 452.4 MB, free: 34.32 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.3801, allocations: 3.938 kB / 452.4 MB, free: 34.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003307/0.3804, allocations: 261.1 kB / 452.7 MB, free: 34.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/0.3804, allocations: 5.875 kB / 452.7 MB, free: 34.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.3804, allocations: 2.969 kB / 452.7 MB, free: 34.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.879e-05/0.3805, allocations: 2.906 kB / 452.7 MB, free: 34.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001723/0.3806, allocations: 47.72 kB / 452.8 MB, free: 34.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.826e-06/0.3807, allocations: 6.75 kB / 452.8 MB, free: 34.17 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.483e-05/0.3808, allocations: 31.62 kB / 452.8 MB, free: 34.15 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.762e-05/0.3808, allocations: 12.16 kB / 452.8 MB, free: 34.14 MB / 366.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.0001355/0.3809, allocations: 160.1 kB / 453 MB, free: 34 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.514e-05/0.381, allocations: 31.41 kB / 453 MB, free: 33.98 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.818e-05/0.381, allocations: 35.48 kB / 453 MB, free: 33.96 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.381, allocations: 0 / 453 MB, free: 33.96 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.3811, allocations: 0 / 453 MB, free: 33.96 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.3811, allocations: 10.22 kB / 453 MB, free: 33.96 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003488/0.3814, allocations: 396.5 kB / 453.4 MB, free: 33.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.3814, allocations: 0 / 453.4 MB, free: 33.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001655/0.3816, allocations: 32.41 kB / 453.5 MB, free: 33.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.3816, allocations: 4 kB / 453.5 MB, free: 33.67 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.619e-05/0.3816, allocations: 6.234 kB / 453.5 MB, free: 33.67 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.3816, allocations: 0 / 453.5 MB, free: 33.67 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.175e-06/0.3816, allocations: 0 / 453.5 MB, free: 33.67 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003847/0.382, allocations: 357.7 kB / 453.8 MB, free: 33.44 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.295e-05/0.3821, allocations: 124.5 kB / 453.9 MB, free: 33.31 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.262e-05/0.3821, allocations: 4 kB / 453.9 MB, free: 33.31 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.815e-05/0.3823, allocations: 6.969 kB / 454 MB, free: 33.3 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.109e-05/0.3823, allocations: 6.203 kB / 454 MB, free: 33.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.005e-05/0.3823, allocations: 5.719 kB / 454 MB, free: 33.3 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001881/0.3825, allocations: 242 kB / 454.2 MB, free: 33.18 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3825, allocations: 0 / 454.2 MB, free: 33.18 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002933/0.3828, allocations: 73.06 kB / 454.3 MB, free: 33.15 MB / 366.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.372e-05/0.3829, allocations: 107.3 kB / 454.4 MB, free: 33.05 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002472/0.3832, allocations: 157.2 kB / 454.5 MB, free: 33 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3832, allocations: 0 / 454.5 MB, free: 33 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 8.422e-05/0.3833, allocations: 72.31 kB / 454.6 MB, free: 32.98 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004374/0.3837, allocations: 49.44 kB / 454.7 MB, free: 32.95 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008478/0.3846, allocations: 0.8431 MB / 455.5 MB, free: 32.36 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001899/0.3848, allocations: 0.8142 MB / 456.3 MB, free: 31.65 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.546e-05/0.3849, allocations: 29.64 kB / 456.3 MB, free: 31.64 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.146e-05/0.3849, allocations: 21.22 kB / 456.4 MB, free: 31.64 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3849, allocations: 0 / 456.4 MB, free: 31.64 MB / 366.1 MB Notification: Performance of Templates: time 0.004401/0.3893, allocations: 1.931 MB / 458.3 MB, free: 31.44 MB / 366.1 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)