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.001582/0.001582, allocations: 110.2 kB / 16.41 MB, free: 6.512 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.00164/0.00164, allocations: 185.2 kB / 17.34 MB, free: 5.734 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.45/1.45, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2066/0.2066, allocations: 28.78 MB / 320 MB, free: 1.902 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002076/0.002076, allocations: 67.89 kB / 444.9 MB, free: 2.586 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1232, allocations: 56.41 MB / 0.4896 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Sugar_Cane): time 0.003644/0.1268, allocations: 2.124 MB / 0.4917 GB, free: 7.992 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006944/0.1275, allocations: 338.6 kB / 0.492 GB, free: 7.66 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001626/0.1277, allocations: 4 kB / 0.492 GB, free: 7.656 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002209/0.1279, allocations: 75.17 kB / 0.4921 GB, free: 7.582 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001266/0.1281, allocations: 35.5 kB / 0.4921 GB, free: 7.547 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003294/0.1284, allocations: 163.8 kB / 0.4923 GB, free: 7.387 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004639/0.1288, allocations: 412.4 kB / 0.4927 GB, free: 6.98 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004194/0.1293, allocations: 250.2 kB / 0.4929 GB, free: 6.719 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001587/0.1294, allocations: 155.3 kB / 0.493 GB, free: 6.566 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001851/0.1296, allocations: 183 kB / 0.4932 GB, free: 6.387 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.969e-05/0.1297, allocations: 40 kB / 0.4933 GB, free: 6.348 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.957e-05/0.1297, allocations: 48 kB / 0.4933 GB, free: 6.301 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.965e-05/0.1298, allocations: 91.64 kB / 0.4934 GB, free: 6.211 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001778/0.13, allocations: 210.7 kB / 0.4936 GB, free: 6.004 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005229/0.1305, allocations: 445.7 kB / 0.494 GB, free: 5.566 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.952e-06/0.1305, allocations: 7.938 kB / 0.494 GB, free: 5.559 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1305, allocations: 0 / 0.494 GB, free: 5.559 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.863e-06/0.1305, allocations: 0 / 0.494 GB, free: 5.559 MB / 382.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.0009634/0.1315, allocations: 0.7289 MB / 0.4947 GB, free: 4.777 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.222e-05/0.1315, allocations: 8.031 kB / 0.4947 GB, free: 4.77 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.724e-05/0.1316, allocations: 60.56 kB / 0.4948 GB, free: 4.711 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000505/0.1321, allocations: 340.4 kB / 0.4951 GB, free: 4.336 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.859e-05/0.1321, allocations: 37.69 kB / 0.4952 GB, free: 4.301 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.061e-05/0.1322, allocations: 60.38 kB / 0.4952 GB, free: 4.242 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007675/0.133, allocations: 488.6 kB / 0.4957 GB, free: 3.73 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.668e-05/0.133, allocations: 192 / 0.4957 GB, free: 3.73 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.409e-05/0.133, allocations: 27.94 kB / 0.4957 GB, free: 3.703 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.67e-05/0.1331, allocations: 16 kB / 0.4957 GB, free: 3.688 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004358/0.1335, allocations: 255.8 kB / 0.496 GB, free: 3.438 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002037/0.1355, allocations: 1.74 MB / 0.4977 GB, free: 1.613 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004669/0.136, allocations: 198.8 kB / 0.4979 GB, free: 1.41 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001133/0.1361, allocations: 60.84 kB / 0.4979 GB, free: 1.348 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.692e-05/0.1361, allocations: 0 / 0.4979 GB, free: 1.348 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.829e-05/0.1362, allocations: 38.56 kB / 0.498 GB, free: 1.301 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 1.132e-06/0.1362, allocations: 0 / 0.498 GB, free: 1.301 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.0004712/0.1366, allocations: 232.1 kB / 0.4982 GB, free: 1.07 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.057e-05/0.1367, allocations: 55.41 kB / 0.4982 GB, free: 1.004 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004009/0.1371, allocations: 345.6 kB / 0.4986 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.251e-05/0.1371, allocations: 29.7 kB / 0.4986 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002213/0.1373, allocations: 260.1 kB / 0.4988 GB, free: 376 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.452e-05/0.1374, allocations: 71.42 kB / 0.4989 GB, free: 304 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.973e-05/0.1375, allocations: 57.66 kB / 0.499 GB, free: 240 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002106/0.1377, allocations: 354.7 kB / 0.4993 GB, free: 15.88 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001097/0.1378, allocations: 51.98 kB / 0.4993 GB, free: 15.83 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001768/0.138, allocations: 128.2 kB / 0.4995 GB, free: 15.68 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000311/0.1383, allocations: 202 kB / 0.4997 GB, free: 15.45 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.1383, allocations: 0 / 0.4997 GB, free: 15.45 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003915/0.1387, allocations: 256.5 kB / 0.4999 GB, free: 15.2 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.997e-05/0.1387, allocations: 8 kB / 0.4999 GB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.251e-06/0.1387, allocations: 0 / 0.4999 GB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.301e-05/0.1388, allocations: 4 kB / 0.4999 GB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001924/0.1389, allocations: 55.91 kB / 0.5 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.018e-05/0.139, allocations: 4.25 kB / 0.5 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00012/0.1391, allocations: 39.67 kB / 0.5 GB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.627e-05/0.1391, allocations: 8 kB / 0.5 GB, free: 15.08 MB / 398.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.0001865/0.1393, allocations: 157.7 kB / 0.5002 GB, free: 14.92 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.766e-05/0.1393, allocations: 35.77 kB / 0.5002 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.468e-05/0.1394, allocations: 35.33 kB / 0.5002 GB, free: 14.85 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-06/0.1394, allocations: 4 kB / 0.5002 GB, free: 14.84 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.1394, allocations: 3.938 kB / 0.5002 GB, free: 14.84 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.1394, allocations: 3.984 kB / 0.5003 GB, free: 14.84 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004713/0.1399, allocations: 405.3 kB / 0.5006 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.1399, allocations: 0 / 0.5006 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001812/0.1401, allocations: 31.92 kB / 0.5007 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.043e-06/0.1401, allocations: 0 / 0.5007 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.753e-05/0.1401, allocations: 8 kB / 0.5007 GB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.552e-06/0.1401, allocations: 0 / 0.5007 GB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1401, allocations: 0 / 0.5007 GB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004806/0.1406, allocations: 353.4 kB / 0.501 GB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001078/0.1407, allocations: 112.9 kB / 0.5011 GB, free: 13.86 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.08e-05/0.1407, allocations: 8 kB / 0.5011 GB, free: 13.86 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001027/0.1408, allocations: 4 kB / 0.5011 GB, free: 13.85 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.795e-05/0.1409, allocations: 7.984 kB / 0.5011 GB, free: 13.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.071e-05/0.1409, allocations: 8 kB / 0.5011 GB, free: 13.84 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002738/0.1411, allocations: 239.2 kB / 0.5014 GB, free: 13.6 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1411, allocations: 3.938 kB / 0.5014 GB, free: 13.6 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003299/0.1415, allocations: 79.61 kB / 0.5015 GB, free: 13.52 MB / 398.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 0.0001344/0.1416, allocations: 99.19 kB / 0.5015 GB, free: 13.41 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003266/0.1419, allocations: 159.8 kB / 0.5017 GB, free: 13.26 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.1419, allocations: 0 / 0.5017 GB, free: 13.26 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001057/0.142, allocations: 67.91 kB / 0.5018 GB, free: 13.19 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004134/0.1425, allocations: 46.34 kB / 0.5018 GB, free: 13.15 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001124/0.1436, allocations: 0.6806 MB / 0.5025 GB, free: 12.44 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004684/0.144, allocations: 0.8188 MB / 0.5033 GB, free: 11.59 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.799e-05/0.1441, allocations: 22.97 kB / 0.5033 GB, free: 11.57 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.226e-05/0.1442, allocations: 23.44 kB / 0.5033 GB, free: 11.55 MB / 398.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1442, allocations: 0 / 0.5033 GB, free: 11.55 MB / 398.1 MB Notification: Performance of Templates: time 0.006437/0.1506, allocations: 2.093 MB / 0.5054 GB, free: 9.465 MB / 398.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 -s cvode -lv LOG_STATS > SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane.pipe 2>&1)