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.005048/0.005048, allocations: 97 kB / 15.73 MB, free: 5.949 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.001247/0.001247, allocations: 192.8 kB / 16.67 MB, free: 5.871 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.349/1.349, allocations: 222.9 MB / 240.4 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.1667/0.1667, allocations: 28.77 MB / 319.3 MB, free: 1.883 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 59.91 kB / 443.8 MB, free: 3.074 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09701/0.09838, allocations: 56.42 MB / 0.4885 GB, free: 10.59 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Sugar_Cane): time 0.003447/0.1019, allocations: 2.116 MB / 0.4905 GB, free: 8.477 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007624/0.1027, allocations: 326.7 kB / 0.4908 GB, free: 8.156 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002523/0.1029, allocations: 8 kB / 0.4909 GB, free: 8.148 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002608/0.1032, allocations: 75.17 kB / 0.4909 GB, free: 8.074 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001667/0.1034, allocations: 35.5 kB / 0.491 GB, free: 8.039 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003269/0.1037, allocations: 167.8 kB / 0.4911 GB, free: 7.875 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004284/0.1042, allocations: 400.4 kB / 0.4915 GB, free: 7.48 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004898/0.1047, allocations: 334.1 kB / 0.4918 GB, free: 7.137 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001283/0.1048, allocations: 151.3 kB / 0.492 GB, free: 6.988 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001575/0.105, allocations: 179 kB / 0.4921 GB, free: 6.812 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.611e-05/0.105, allocations: 40 kB / 0.4922 GB, free: 6.773 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.519e-05/0.1051, allocations: 44 kB / 0.4922 GB, free: 6.73 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.68e-05/0.1052, allocations: 107.6 kB / 0.4923 GB, free: 6.625 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001521/0.1053, allocations: 206.7 kB / 0.4925 GB, free: 6.422 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004589/0.1058, allocations: 449.6 kB / 0.4929 GB, free: 5.98 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.1058, allocations: 0 / 0.4929 GB, free: 5.98 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1058, allocations: 3.938 kB / 0.4929 GB, free: 5.977 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.286e-06/0.1059, allocations: 4 kB / 0.4929 GB, free: 5.973 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.0009009/0.1068, allocations: 0.725 MB / 0.4937 GB, free: 5.195 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.1068, allocations: 12.03 kB / 0.4937 GB, free: 5.184 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001369/0.1069, allocations: 104 kB / 0.4938 GB, free: 5.074 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.095e-05/0.107, allocations: 60.56 kB / 0.4938 GB, free: 5.016 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004908/0.1075, allocations: 356.2 kB / 0.4942 GB, free: 4.625 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.735e-05/0.1076, allocations: 41.69 kB / 0.4942 GB, free: 4.582 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.498e-05/0.1077, allocations: 56.38 kB / 0.4943 GB, free: 4.527 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006679/0.1083, allocations: 497.4 kB / 0.4947 GB, free: 4.008 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.651e-05/0.1084, allocations: 3.938 kB / 0.4947 GB, free: 4.004 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.573e-05/0.1084, allocations: 27.98 kB / 0.4948 GB, free: 3.977 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.159e-05/0.1084, allocations: 12 kB / 0.4948 GB, free: 3.965 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004453/0.1089, allocations: 265 kB / 0.495 GB, free: 3.703 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001911/0.1108, allocations: 1.768 MB / 0.4968 GB, free: 1.855 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000449/0.1113, allocations: 210.7 kB / 0.497 GB, free: 1.641 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001082/0.1114, allocations: 64.84 kB / 0.497 GB, free: 1.574 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.719e-05/0.1114, allocations: 0 / 0.497 GB, free: 1.574 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.63e-05/0.1114, allocations: 38.56 kB / 0.4971 GB, free: 1.527 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 1.092e-06/0.1114, allocations: 0 / 0.4971 GB, free: 1.527 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.0004369/0.1119, allocations: 232 kB / 0.4973 GB, free: 1.297 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.036e-05/0.1119, allocations: 59.41 kB / 0.4973 GB, free: 1.227 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003575/0.1123, allocations: 345.6 kB / 0.4977 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.358e-05/0.1123, allocations: 29.7 kB / 0.4977 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000182/0.1125, allocations: 276 kB / 0.498 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.484e-05/0.1126, allocations: 71.39 kB / 0.498 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.601e-05/0.1127, allocations: 49.7 kB / 0.4981 GB, free: 460 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.1128, allocations: 346.8 kB / 0.4984 GB, free: 104 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001036/0.1129, allocations: 55.98 kB / 0.4985 GB, free: 48 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001586/0.1131, allocations: 128.2 kB / 0.4986 GB, free: 15.89 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002563/0.1134, allocations: 195.6 kB / 0.4988 GB, free: 15.68 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.1134, allocations: 0 / 0.4988 GB, free: 15.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003642/0.1137, allocations: 257.1 kB / 0.499 GB, free: 15.42 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/0.1138, allocations: 8 kB / 0.499 GB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.1138, allocations: 0 / 0.499 GB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.989e-05/0.1138, allocations: 11.88 kB / 0.499 GB, free: 15.4 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001868/0.114, allocations: 43.92 kB / 0.4991 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.308e-05/0.114, allocations: 7.938 kB / 0.4991 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00013/0.1141, allocations: 35.67 kB / 0.4991 GB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.826e-05/0.1142, allocations: 12 kB / 0.4991 GB, free: 15.3 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.0001557/0.1143, allocations: 157.9 kB / 0.4993 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.682e-05/0.1144, allocations: 39.73 kB / 0.4993 GB, free: 15.1 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.067e-05/0.1145, allocations: 43.33 kB / 0.4994 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.688e-06/0.1145, allocations: 3.938 kB / 0.4994 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.1145, allocations: 0 / 0.4994 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.1145, allocations: 0 / 0.4994 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004541/0.115, allocations: 405.3 kB / 0.4997 GB, free: 14.6 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.115, allocations: 0 / 0.4997 GB, free: 14.6 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001786/0.1152, allocations: 28 kB / 0.4998 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.1152, allocations: 0 / 0.4998 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.781e-05/0.1152, allocations: 11.98 kB / 0.4998 GB, free: 14.56 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.1152, allocations: 7.938 kB / 0.4998 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.1152, allocations: 0 / 0.4998 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004482/0.1157, allocations: 356.9 kB / 0.5001 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.252e-05/0.1158, allocations: 109 kB / 0.5002 GB, free: 14.07 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.225e-05/0.1158, allocations: 8 kB / 0.5002 GB, free: 14.06 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001088/0.1159, allocations: 3.938 kB / 0.5002 GB, free: 14.06 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.614e-05/0.116, allocations: 11.98 kB / 0.5003 GB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.052e-05/0.116, allocations: 8 kB / 0.5003 GB, free: 14.04 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002442/0.1162, allocations: 247.1 kB / 0.5005 GB, free: 13.8 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1162, allocations: 0 / 0.5005 GB, free: 13.8 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003672/0.1166, allocations: 83.62 kB / 0.5006 GB, free: 13.72 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.000713/0.1173, allocations: 0.8876 MB / 0.5014 GB, free: 12.81 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002967/0.1176, allocations: 162.5 kB / 0.5016 GB, free: 12.65 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1177, allocations: 0 / 0.5016 GB, free: 12.65 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 9.648e-05/0.1178, allocations: 67.92 kB / 0.5017 GB, free: 12.59 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000416/0.1182, allocations: 59.62 kB / 0.5017 GB, free: 12.53 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003596/0.1218, allocations: 3.208 MB / 0.5049 GB, free: 9.188 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003652/0.1222, allocations: 0.8145 MB / 0.5056 GB, free: 8.348 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001101/0.1223, allocations: 30.95 kB / 0.5057 GB, free: 8.316 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001648/0.1225, allocations: 139.4 kB / 0.5058 GB, free: 8.18 MB / 398.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1225, allocations: 0 / 0.5058 GB, free: 8.18 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02463/0.1471, allocations: 5.797 MB / 0.5115 GB, free: 2.473 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.957/8.104, allocations: 15.14 kB / 0.5115 GB, free: 2.461 MB / 398.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)