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.001429/0.001429, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001833/0.001832, allocations: 194 kB / 16.53 MB, free: 6.391 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.444/1.444, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3569/0.3569, allocations: 28.81 MB / 319.2 MB, free: 5.695 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001433, allocations: 67.91 kB / 386.6 MB, free: 3.613 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3367/0.3382, allocations: 56.41 MB / 443 MB, free: 39.62 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Sugar_Cane): time 0.003137/0.3413, allocations: 2.114 MB / 445.1 MB, free: 38.39 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005717/0.3419, allocations: 320.8 kB / 445.5 MB, free: 38.3 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001871/0.3421, allocations: 9.844 kB / 445.5 MB, free: 38.3 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001931/0.3423, allocations: 69.28 kB / 445.5 MB, free: 38.26 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001146/0.3425, allocations: 38.25 kB / 445.6 MB, free: 38.23 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002897/0.3428, allocations: 169.1 kB / 445.7 MB, free: 38.21 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003245/0.3431, allocations: 403.3 kB / 446.1 MB, free: 38.17 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003712/0.3435, allocations: 331.3 kB / 446.5 MB, free: 38.09 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001032/0.3436, allocations: 149.9 kB / 446.6 MB, free: 38.05 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001249/0.3437, allocations: 185.8 kB / 446.8 MB, free: 37.99 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.451e-05/0.3438, allocations: 43.19 kB / 446.8 MB, free: 37.99 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.378e-05/0.3438, allocations: 42.34 kB / 446.9 MB, free: 37.99 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.268e-05/0.3439, allocations: 101.5 kB / 447 MB, free: 37.97 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001525/0.3441, allocations: 210.7 kB / 447.2 MB, free: 37.89 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003197/0.3444, allocations: 407.3 kB / 447.6 MB, free: 37.8 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.3444, allocations: 4 kB / 447.6 MB, free: 37.79 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.3444, allocations: 0 / 447.6 MB, free: 37.79 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.175e-06/0.3444, allocations: 0 / 447.6 MB, free: 37.79 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.0008138/0.3452, allocations: 0.7173 MB / 448.3 MB, free: 37.3 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.231e-05/0.3453, allocations: 8.656 kB / 448.3 MB, free: 37.3 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.294e-05/0.3454, allocations: 56.66 kB / 448.4 MB, free: 37.27 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003244/0.3457, allocations: 331.5 kB / 448.7 MB, free: 37.01 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.781e-05/0.3458, allocations: 41.31 kB / 448.7 MB, free: 37.01 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.724e-05/0.3458, allocations: 51.34 kB / 448.8 MB, free: 37.01 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005433/0.3464, allocations: 484.8 kB / 449.2 MB, free: 36.81 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.536e-05/0.3464, allocations: 192 / 449.2 MB, free: 36.81 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.139e-05/0.3464, allocations: 29.89 kB / 449.3 MB, free: 36.79 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.276e-05/0.3464, allocations: 18 kB / 449.3 MB, free: 36.78 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003539/0.3468, allocations: 254.2 kB / 449.5 MB, free: 36.7 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001356/0.3482, allocations: 1.748 MB / 451.3 MB, free: 35.39 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004326/0.3486, allocations: 216.6 kB / 451.5 MB, free: 35.28 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.066e-05/0.3487, allocations: 67.06 kB / 451.6 MB, free: 35.25 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.454e-05/0.3487, allocations: 2.844 kB / 451.6 MB, free: 35.25 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.609e-05/0.3488, allocations: 40.69 kB / 451.6 MB, free: 35.2 MB / 366.1 MB Notification: Performance of pre-optimization done (n=19): time 1.132e-06/0.3488, allocations: 0 / 451.6 MB, free: 35.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=19): time 0.0004136/0.3492, allocations: 230.5 kB / 451.8 MB, free: 35.09 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.389e-05/0.3492, allocations: 54.22 kB / 451.9 MB, free: 35.02 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002787/0.3495, allocations: 341.9 kB / 452.2 MB, free: 34.84 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.918e-05/0.3495, allocations: 32.64 kB / 452.2 MB, free: 34.8 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000133/0.3497, allocations: 257.1 kB / 452.5 MB, free: 34.6 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.506e-05/0.3497, allocations: 70.97 kB / 452.6 MB, free: 34.54 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.443e-05/0.3498, allocations: 59.84 kB / 452.6 MB, free: 34.5 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.663e-05/0.3499, allocations: 346.6 kB / 453 MB, free: 34.17 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.159e-05/0.35, allocations: 61.36 kB / 453 MB, free: 34.14 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001174/0.3501, allocations: 126.3 kB / 453.1 MB, free: 34.04 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002241/0.3504, allocations: 198.5 kB / 453.3 MB, free: 33.9 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.3504, allocations: 6.812 kB / 453.3 MB, free: 33.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003193/0.3507, allocations: 252.2 kB / 453.6 MB, free: 33.77 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.3507, allocations: 5.531 kB / 453.6 MB, free: 33.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.597e-06/0.3507, allocations: 6.328 kB / 453.6 MB, free: 33.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.3507, allocations: 2.875 kB / 453.6 MB, free: 33.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001681/0.3509, allocations: 45.84 kB / 453.7 MB, free: 33.76 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.408e-06/0.3509, allocations: 9.594 kB / 453.7 MB, free: 33.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000101/0.351, allocations: 36.41 kB / 453.7 MB, free: 33.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.266e-05/0.3511, allocations: 5.719 kB / 453.7 MB, free: 33.73 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.0001279/0.3512, allocations: 164.4 kB / 453.9 MB, free: 33.58 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.827e-05/0.3512, allocations: 37.33 kB / 453.9 MB, free: 33.56 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.763e-05/0.3513, allocations: 35.28 kB / 453.9 MB, free: 33.54 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.3513, allocations: 2.719 kB / 453.9 MB, free: 33.54 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.3513, allocations: 0 / 453.9 MB, free: 33.54 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.3513, allocations: 0 / 453.9 MB, free: 33.54 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003434/0.3517, allocations: 402.3 kB / 454.3 MB, free: 33.26 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.3517, allocations: 4 kB / 454.3 MB, free: 33.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001616/0.3519, allocations: 28.56 kB / 454.4 MB, free: 33.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.297e-06/0.3519, allocations: 0 / 454.4 MB, free: 33.25 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.559e-05/0.3519, allocations: 10.59 kB / 454.4 MB, free: 33.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.3519, allocations: 0 / 454.4 MB, free: 33.25 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.3519, allocations: 0 / 454.4 MB, free: 33.25 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003543/0.3523, allocations: 356.5 kB / 454.7 MB, free: 33.02 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.286e-05/0.3523, allocations: 113.5 kB / 454.8 MB, free: 32.89 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.184e-05/0.3524, allocations: 10.03 kB / 454.8 MB, free: 32.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.877e-05/0.3525, allocations: 4 kB / 454.8 MB, free: 32.89 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.048e-05/0.3525, allocations: 13.77 kB / 454.9 MB, free: 32.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.654e-06/0.3525, allocations: 2.812 kB / 454.9 MB, free: 32.88 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001778/0.3527, allocations: 236.8 kB / 455.1 MB, free: 32.75 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3527, allocations: 0 / 455.1 MB, free: 32.75 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003103/0.353, allocations: 75.97 kB / 455.2 MB, free: 32.73 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 7.846e-05/0.3531, allocations: 99.86 kB / 455.3 MB, free: 32.64 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002781/0.3534, allocations: 173 kB / 455.4 MB, free: 32.57 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.3534, allocations: 0 / 455.4 MB, free: 32.57 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 8.41e-05/0.3535, allocations: 77.45 kB / 455.5 MB, free: 32.54 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000429/0.3539, allocations: 44.09 kB / 455.6 MB, free: 32.52 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008561/0.3548, allocations: 0.6731 MB / 456.2 MB, free: 32.11 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002271/0.355, allocations: 0.8101 MB / 457 MB, free: 31.4 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.546e-05/0.3551, allocations: 35.91 kB / 457.1 MB, free: 31.39 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.062e-05/0.3552, allocations: 27.06 kB / 457.1 MB, free: 31.38 MB / 366.1 MB Notification: Performance of SimCode: time 1.91e-07/0.3552, allocations: 0 / 457.1 MB, free: 31.38 MB / 366.1 MB Notification: Performance of Templates: time 0.005017/0.3602, allocations: 2.035 MB / 459.1 MB, free: 31.18 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)