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: "" <> buildModelFMU(SystemDynamics.IntroductoryExamples.Sugar_Cane,fileNamePrefix="SystemDynamics_SystemDynamics_IntroductoryExamples_Sugar_Cane",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.IntroductoryExamples.Sugar_Cane,fileNamePrefix="SystemDynamics_SystemDynamics_IntroductoryExamples_Sugar_Cane",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004668/0.004668, allocations: 96 kB / 15.73 MB, free: 6.059 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.001262/0.001262, allocations: 189.9 kB / 16.67 MB, free: 5.98 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.404/1.404, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2854/0.2854, allocations: 28.81 MB / 319.4 MB, free: 5.637 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003005/0.003006, allocations: 62.59 kB / 443.8 MB, free: 36.8 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1221, allocations: 56.42 MB / 0.4885 GB, free: 8.91 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Sugar_Cane): time 0.003976/0.1261, allocations: 2.131 MB / 0.4906 GB, free: 7.223 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001012/0.1271, allocations: 328.3 kB / 0.4909 GB, free: 6.949 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004449/0.1276, allocations: 10.81 kB / 0.4909 GB, free: 6.945 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003478/0.128, allocations: 64.62 kB / 0.491 GB, free: 6.883 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002712/0.1283, allocations: 42.23 kB / 0.491 GB, free: 6.844 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004629/0.1288, allocations: 160.4 kB / 0.4911 GB, free: 6.707 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006162/0.1294, allocations: 410.3 kB / 0.4915 GB, free: 6.449 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006304/0.13, allocations: 334 kB / 0.4919 GB, free: 6.227 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001633/0.1302, allocations: 151.2 kB / 0.492 GB, free: 6.121 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002166/0.1305, allocations: 181.5 kB / 0.4922 GB, free: 5.969 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.879e-05/0.1306, allocations: 41.56 kB / 0.4922 GB, free: 5.969 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.102e-05/0.1307, allocations: 43.34 kB / 0.4923 GB, free: 5.969 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.544e-05/0.1308, allocations: 102 kB / 0.4924 GB, free: 5.883 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001982/0.131, allocations: 218.4 kB / 0.4926 GB, free: 5.707 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005402/0.1315, allocations: 436.1 kB / 0.493 GB, free: 5.367 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.1316, allocations: 4 kB / 0.493 GB, free: 5.363 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1316, allocations: 0 / 0.493 GB, free: 5.363 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.762e-05/0.1316, allocations: 0 / 0.493 GB, free: 5.363 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.001163/0.1328, allocations: 0.7258 MB / 0.4937 GB, free: 4.723 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.618e-05/0.1328, allocations: 9.344 kB / 0.4937 GB, free: 4.723 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000168/0.133, allocations: 106.3 kB / 0.4938 GB, free: 4.629 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001451/0.1332, allocations: 68.92 kB / 0.4939 GB, free: 4.59 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005621/0.1338, allocations: 346.8 kB / 0.4942 GB, free: 4.258 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.306e-05/0.1338, allocations: 43.75 kB / 0.4942 GB, free: 4.234 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001005/0.1339, allocations: 53.56 kB / 0.4943 GB, free: 4.219 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009723/0.1349, allocations: 0.4921 MB / 0.4948 GB, free: 3.789 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.583e-05/0.135, allocations: 7.938 kB / 0.4948 GB, free: 3.781 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.962e-05/0.135, allocations: 28 kB / 0.4948 GB, free: 3.754 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.592e-05/0.135, allocations: 12 kB / 0.4948 GB, free: 3.742 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006603/0.1357, allocations: 261 kB / 0.4951 GB, free: 3.484 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002164/0.1379, allocations: 1.768 MB / 0.4968 GB, free: 1.637 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005816/0.1385, allocations: 214.7 kB / 0.497 GB, free: 1.418 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001466/0.1387, allocations: 64.84 kB / 0.4971 GB, free: 1.352 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.775e-05/0.1387, allocations: 0 / 0.4971 GB, free: 1.352 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.658e-05/0.1387, allocations: 34.56 kB / 0.4971 GB, free: 1.309 MB / 366.1 MB Notification: Performance of pre-optimization done (n=19): time 1.653e-06/0.1387, allocations: 3.938 kB / 0.4971 GB, free: 1.305 MB / 366.1 MB Notification: Performance of matching and sorting (n=19): time 0.0006021/0.1393, allocations: 239.4 kB / 0.4973 GB, free: 1.066 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.384e-05/0.1394, allocations: 55.41 kB / 0.4974 GB, free: 1 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003922/0.1398, allocations: 337.7 kB / 0.4977 GB, free: 0.6641 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.801e-05/0.1398, allocations: 33.69 kB / 0.4977 GB, free: 0.625 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001426/0.14, allocations: 268.1 kB / 0.498 GB, free: 368 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.626e-05/0.1401, allocations: 75.36 kB / 0.4981 GB, free: 292 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.506e-05/0.1402, allocations: 53.7 kB / 0.4981 GB, free: 232 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.1403, allocations: 342.8 kB / 0.4984 GB, free: 15.88 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001868/0.1405, allocations: 59.98 kB / 0.4985 GB, free: 15.82 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000269/0.1408, allocations: 128.2 kB / 0.4986 GB, free: 15.67 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004788/0.1413, allocations: 193.8 kB / 0.4988 GB, free: 15.46 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.285e-06/0.1413, allocations: 4 kB / 0.4988 GB, free: 15.45 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000696/0.142, allocations: 261 kB / 0.4991 GB, free: 15.19 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.577e-05/0.1421, allocations: 11.98 kB / 0.4991 GB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.847e-06/0.1421, allocations: 0 / 0.4991 GB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.233e-05/0.1421, allocations: 7.938 kB / 0.4991 GB, free: 15.17 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003204/0.1425, allocations: 43.92 kB / 0.4991 GB, free: 15.13 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.439e-05/0.1425, allocations: 4 kB / 0.4991 GB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002139/0.1427, allocations: 35.67 kB / 0.4992 GB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.669e-05/0.1428, allocations: 8.25 kB / 0.4992 GB, free: 15.08 MB / 382.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.0002716/0.1431, allocations: 161.7 kB / 0.4993 GB, free: 14.91 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.214e-05/0.1432, allocations: 31.77 kB / 0.4993 GB, free: 14.88 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001055/0.1433, allocations: 35.33 kB / 0.4994 GB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.389e-05/0.1433, allocations: 11.92 kB / 0.4994 GB, free: 14.83 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.1433, allocations: 3.938 kB / 0.4994 GB, free: 14.83 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.89e-06/0.1433, allocations: 0 / 0.4994 GB, free: 14.83 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007181/0.1441, allocations: 405.3 kB / 0.4998 GB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.1441, allocations: 0 / 0.4998 GB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003169/0.1444, allocations: 31.92 kB / 0.4998 GB, free: 14.35 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.596e-06/0.1444, allocations: 4 kB / 0.4998 GB, free: 14.35 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.873e-05/0.1445, allocations: 8 kB / 0.4998 GB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.472e-06/0.1445, allocations: 3.938 kB / 0.4998 GB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.1445, allocations: 0 / 0.4998 GB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007538/0.1453, allocations: 358.1 kB / 0.5002 GB, free: 13.97 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001328/0.1454, allocations: 112.9 kB / 0.5003 GB, free: 13.84 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.147e-05/0.1455, allocations: 4.094 kB / 0.5003 GB, free: 13.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001868/0.1457, allocations: 7.938 kB / 0.5003 GB, free: 13.83 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.396e-05/0.1457, allocations: 15.97 kB / 0.5003 GB, free: 13.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.092e-05/0.1458, allocations: 8 kB / 0.5003 GB, free: 13.81 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003891/0.1462, allocations: 239.2 kB / 0.5005 GB, free: 13.58 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.1462, allocations: 3.938 kB / 0.5005 GB, free: 13.58 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000578/0.1468, allocations: 79.69 kB / 0.5006 GB, free: 13.5 MB / 382.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.001021/0.1478, allocations: 0.8918 MB / 0.5015 GB, free: 12.58 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003373/0.1482, allocations: 162 kB / 0.5016 GB, free: 12.42 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.1482, allocations: 0 / 0.5016 GB, free: 12.42 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001091/0.1483, allocations: 67.92 kB / 0.5017 GB, free: 12.36 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000469/0.1488, allocations: 56.16 kB / 0.5018 GB, free: 12.3 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003848/0.1526, allocations: 3.195 MB / 0.5049 GB, free: 8.984 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004486/0.1531, allocations: 0.8184 MB / 0.5057 GB, free: 8.141 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.336e-05/0.1532, allocations: 26.95 kB / 0.5057 GB, free: 8.113 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000183/0.1534, allocations: 147.4 kB / 0.5058 GB, free: 7.969 MB / 382.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1534, allocations: 0 / 0.5058 GB, free: 7.969 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02801/0.1814, allocations: 5.791 MB / 0.5115 GB, free: 2.254 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.965/8.147, allocations: 15.8 kB / 0.5115 GB, free: 2.238 MB / 382.1 MB (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 & python3 -m fmpy simulate --output-file SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane_res.csv --start-time 0 --stop-time 20 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.008 SystemDynamics_SystemDynamics_IntroductoryExamples_Sugar_Cane.fmu > SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane.pipe 2>&1)