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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo", uses=false) Using package SystemDynamics with version 2.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001064/0.001064, allocations: 182.2 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.418/1.418, allocations: 205.1 MB / 221.8 MB, free: 8.477 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00102/0.00102, allocations: 94.28 kB / 269.2 MB, free: 8.434 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo): time 0.1784/0.1784, allocations: 28.77 MB / 345.3 MB, free: 12.19 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009892/0.0009893, allocations: 51.92 kB / 409.7 MB, free: 47.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.11, allocations: 53.6 MB / 463.3 MB, free: 10.31 MB / 314.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Sugar_Cane): time 0.003709/0.1138, allocations: 2.161 MB / 465.4 MB, free: 8.141 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006589/0.1145, allocations: 318.8 kB / 465.8 MB, free: 7.828 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001759/0.1146, allocations: 7.938 kB / 465.8 MB, free: 7.82 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001955/0.1148, allocations: 47.56 kB / 465.8 MB, free: 7.773 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000109/0.115, allocations: 19.8 kB / 465.8 MB, free: 7.754 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002733/0.1152, allocations: 143.9 kB / 466 MB, free: 7.613 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003584/0.1156, allocations: 376.5 kB / 466.3 MB, free: 7.246 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004105/0.116, allocations: 330.4 kB / 466.7 MB, free: 6.914 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001069/0.1161, allocations: 135.3 kB / 466.8 MB, free: 6.781 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001622/0.1163, allocations: 174.9 kB / 467 MB, free: 6.609 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.917e-05/0.1164, allocations: 24 kB / 467 MB, free: 6.586 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.623e-05/0.1164, allocations: 27.94 kB / 467 MB, free: 6.559 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 6.657e-05/0.1165, allocations: 83.62 kB / 467.1 MB, free: 6.477 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001496/0.1166, allocations: 194.7 kB / 467.3 MB, free: 6.285 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003455/0.117, allocations: 382.6 kB / 467.7 MB, free: 5.91 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.117, allocations: 0 / 467.7 MB, free: 5.91 MB / 314.7 MB Notification: Performance of FrontEnd: time 7.92e-07/0.117, allocations: 3.938 kB / 467.7 MB, free: 5.906 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.787e-05/0.117, allocations: 4 kB / 467.7 MB, free: 5.902 MB / 314.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.0008937/0.1179, allocations: 0.7139 MB / 468.4 MB, free: 5.137 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.386e-05/0.118, allocations: 12.03 kB / 468.4 MB, free: 5.125 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.846e-05/0.1181, allocations: 60.22 kB / 468.4 MB, free: 5.066 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004125/0.1185, allocations: 328.4 kB / 468.8 MB, free: 4.703 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.139e-05/0.1185, allocations: 37.69 kB / 468.8 MB, free: 4.664 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.532e-05/0.1186, allocations: 56.38 kB / 468.9 MB, free: 4.609 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000614/0.1192, allocations: 484.8 kB / 469.3 MB, free: 4.102 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.1192, allocations: 192 / 469.3 MB, free: 4.102 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.189e-05/0.1193, allocations: 23.94 kB / 469.4 MB, free: 4.078 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.153e-05/0.1193, allocations: 12 kB / 469.4 MB, free: 4.066 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003992/0.1197, allocations: 259.8 kB / 469.6 MB, free: 3.816 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001741/0.1215, allocations: 1.751 MB / 471.4 MB, free: 1.98 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004309/0.1219, allocations: 210.8 kB / 471.6 MB, free: 1.766 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.934e-05/0.122, allocations: 64.84 kB / 471.6 MB, free: 1.699 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.761e-05/0.122, allocations: 0 / 471.6 MB, free: 1.699 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.111e-05/0.1221, allocations: 38.56 kB / 471.7 MB, free: 1.652 MB / 314.7 MB Notification: Performance of pre-optimization done (n=19): time 2.214e-06/0.1221, allocations: 3.984 kB / 471.7 MB, free: 1.648 MB / 314.7 MB Notification: Performance of matching and sorting (n=19): time 0.0004033/0.1225, allocations: 229.1 kB / 471.9 MB, free: 1.418 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.191e-05/0.1225, allocations: 59.34 kB / 472 MB, free: 1.348 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003103/0.1228, allocations: 341.6 kB / 472.3 MB, free: 1.004 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.931e-05/0.1229, allocations: 29.7 kB / 472.3 MB, free: 0.9688 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001503/0.123, allocations: 263.6 kB / 472.6 MB, free: 0.707 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.812e-05/0.1231, allocations: 67 kB / 472.7 MB, free: 0.6406 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.836e-05/0.1232, allocations: 53.7 kB / 472.7 MB, free: 0.582 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.1233, allocations: 350.7 kB / 473 MB, free: 236 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.997e-05/0.1234, allocations: 59.97 kB / 473.1 MB, free: 176 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001308/0.1235, allocations: 119.7 kB / 473.2 MB, free: 28 kB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002678/0.1238, allocations: 199.6 kB / 473.4 MB, free: 15.8 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.1238, allocations: 0 / 473.4 MB, free: 15.8 MB / 330.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003519/0.1242, allocations: 256.7 kB / 473.7 MB, free: 15.55 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.1242, allocations: 8 kB / 473.7 MB, free: 15.54 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.1242, allocations: 0 / 473.7 MB, free: 15.54 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.608e-05/0.1242, allocations: 4 kB / 473.7 MB, free: 15.54 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001786/0.1244, allocations: 51.86 kB / 473.7 MB, free: 15.48 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.1244, allocations: 4.25 kB / 473.7 MB, free: 15.48 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001079/0.1246, allocations: 39.53 kB / 473.8 MB, free: 15.44 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.555e-05/0.1246, allocations: 12 kB / 473.8 MB, free: 15.43 MB / 330.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 () * 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.0001482/0.1247, allocations: 155.1 kB / 473.9 MB, free: 15.27 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.933e-05/0.1248, allocations: 35.61 kB / 474 MB, free: 15.23 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.744e-05/0.1249, allocations: 35.33 kB / 474 MB, free: 15.2 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.527e-06/0.1249, allocations: 7.938 kB / 474 MB, free: 15.2 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.1249, allocations: 0 / 474 MB, free: 15.2 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.365e-06/0.1249, allocations: 0 / 474 MB, free: 15.2 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003836/0.1253, allocations: 401.2 kB / 474.4 MB, free: 14.75 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.1253, allocations: 4 kB / 474.4 MB, free: 14.75 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001662/0.1255, allocations: 27.98 kB / 474.4 MB, free: 14.72 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.1255, allocations: 0 / 474.4 MB, free: 14.72 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.601e-05/0.1255, allocations: 8 kB / 474.4 MB, free: 14.71 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.1255, allocations: 0 / 474.4 MB, free: 14.71 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.1255, allocations: 0 / 474.4 MB, free: 14.71 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002531/0.128, allocations: 2.069 MB / 476.5 MB, free: 12.5 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.672e-05/0.1281, allocations: 108.7 kB / 476.6 MB, free: 12.38 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.531e-05/0.1281, allocations: 8 kB / 476.6 MB, free: 12.37 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.939e-05/0.1283, allocations: 4 kB / 476.6 MB, free: 12.37 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.284e-05/0.1283, allocations: 8.156 kB / 476.6 MB, free: 12.36 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.067e-06/0.1283, allocations: 4 kB / 476.6 MB, free: 12.36 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002024/0.1285, allocations: 239.2 kB / 476.9 MB, free: 12.12 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1285, allocations: 4 kB / 476.9 MB, free: 12.12 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003601/0.1289, allocations: 107.4 kB / 477 MB, free: 12.01 MB / 330.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 () * 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.959e-05/0.129, allocations: 95.23 kB / 477.1 MB, free: 11.91 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002631/0.1292, allocations: 163.8 kB / 477.2 MB, free: 11.75 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.1293, allocations: 0 / 477.2 MB, free: 11.75 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.544e-05/0.1294, allocations: 71.92 kB / 477.3 MB, free: 11.68 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005144/0.1299, allocations: 43.95 kB / 477.4 MB, free: 11.64 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001222/0.1311, allocations: 1.026 MB / 478.4 MB, free: 10.57 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003678/0.1315, allocations: 0.819 MB / 479.2 MB, free: 9.723 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001122/0.1316, allocations: 30.95 kB / 479.2 MB, free: 9.691 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.752e-05/0.1317, allocations: 27.44 kB / 479.3 MB, free: 9.664 MB / 330.7 MB Notification: Performance of SimCode: time 3e-07/0.1317, allocations: 0 / 479.3 MB, free: 9.664 MB / 330.7 MB Notification: Performance of Templates: time 0.00562/0.1373, allocations: 2.655 MB / 481.9 MB, free: 7.004 MB / 330.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)