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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001359/0.001359, allocations: 110.2 kB / 18.93 MB, free: 2.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001712/0.001712, allocations: 191.9 kB / 22.23 MB, free: 5.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.579/1.579, allocations: 225.6 MB / 251 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2412/0.2412, allocations: 29.23 MB / 335.5 MB, free: 11.3 MB / 270.1 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002424/0.002424, allocations: 63.89 kB / 469.9 MB, free: 7.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4109/0.4133, allocations: 59.6 MB / 0.517 GB, free: 9.754 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Sugar_Cane): time 0.003907/0.4172, allocations: 2.137 MB / 0.5191 GB, free: 8.234 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001068/0.4183, allocations: 331.3 kB / 0.5195 GB, free: 7.988 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003913/0.4187, allocations: 11.38 kB / 0.5195 GB, free: 7.984 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002611/0.4189, allocations: 72.41 kB / 0.5195 GB, free: 7.93 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002012/0.4191, allocations: 40.31 kB / 0.5196 GB, free: 7.895 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004465/0.4196, allocations: 159.8 kB / 0.5197 GB, free: 7.805 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006033/0.4202, allocations: 413.4 kB / 0.5201 GB, free: 7.602 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004588/0.4206, allocations: 261.2 kB / 0.5204 GB, free: 7.441 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001764/0.4208, allocations: 158 kB / 0.5205 GB, free: 7.352 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001899/0.421, allocations: 181.1 kB / 0.5207 GB, free: 7.238 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.109e-05/0.4211, allocations: 41.66 kB / 0.5207 GB, free: 7.238 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.285e-05/0.4211, allocations: 42.28 kB / 0.5208 GB, free: 7.238 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.673e-05/0.4212, allocations: 101.9 kB / 0.5209 GB, free: 7.168 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001692/0.4214, allocations: 210.2 kB / 0.5211 GB, free: 7.016 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007477/0.4221, allocations: 446.9 kB / 0.5215 GB, free: 6.777 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.4221, allocations: 0 / 0.5215 GB, free: 6.777 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.4221, allocations: 1.094 kB / 0.5215 GB, free: 6.777 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.287e-05/0.4222, allocations: 4 kB / 0.5215 GB, free: 6.773 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.001089/0.4232, allocations: 0.7258 MB / 0.5222 GB, free: 6.188 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.88e-05/0.4233, allocations: 8.906 kB / 0.5222 GB, free: 6.188 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001724/0.4235, allocations: 105.3 kB / 0.5223 GB, free: 6.109 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001192/0.4236, allocations: 61.27 kB / 0.5224 GB, free: 6.078 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006452/0.4242, allocations: 347.2 kB / 0.5227 GB, free: 5.781 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.534e-05/0.4243, allocations: 44.16 kB / 0.5227 GB, free: 5.758 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.99e-05/0.4244, allocations: 53.3 kB / 0.5228 GB, free: 5.742 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009334/0.4253, allocations: 0.4926 MB / 0.5233 GB, free: 5.473 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.942e-05/0.4254, allocations: 3.938 kB / 0.5233 GB, free: 5.469 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.89e-05/0.4254, allocations: 21.5 kB / 0.5233 GB, free: 5.453 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.401e-05/0.4254, allocations: 14.11 kB / 0.5233 GB, free: 5.453 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005338/0.4259, allocations: 267.1 kB / 0.5236 GB, free: 5.359 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00223/0.4282, allocations: 1.774 MB / 0.5253 GB, free: 4.035 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004749/0.4287, allocations: 201.4 kB / 0.5255 GB, free: 3.941 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001086/0.4288, allocations: 60.19 kB / 0.5256 GB, free: 3.91 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.089e-05/0.4288, allocations: 2.719 kB / 0.5256 GB, free: 3.91 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.601e-05/0.4288, allocations: 36.62 kB / 0.5256 GB, free: 3.867 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 2.104e-06/0.4288, allocations: 0 / 0.5256 GB, free: 3.867 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.0004872/0.4293, allocations: 236.4 kB / 0.5258 GB, free: 3.746 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.897e-05/0.4293, allocations: 59.55 kB / 0.5259 GB, free: 3.68 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004005/0.4297, allocations: 342.1 kB / 0.5262 GB, free: 3.496 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.01e-05/0.4298, allocations: 26.98 kB / 0.5262 GB, free: 3.465 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001628/0.4299, allocations: 270.8 kB / 0.5265 GB, free: 3.246 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.503e-05/0.43, allocations: 71.47 kB / 0.5266 GB, free: 3.191 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.24e-05/0.4301, allocations: 55.94 kB / 0.5266 GB, free: 3.152 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.4302, allocations: 346 kB / 0.5269 GB, free: 2.824 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001083/0.4303, allocations: 55.25 kB / 0.527 GB, free: 2.805 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001573/0.4304, allocations: 123.6 kB / 0.5271 GB, free: 2.703 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002664/0.4307, allocations: 195.2 kB / 0.5273 GB, free: 2.562 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.4307, allocations: 4.938 kB / 0.5273 GB, free: 2.559 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004086/0.4311, allocations: 260.7 kB / 0.5275 GB, free: 2.426 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/0.4311, allocations: 6.984 kB / 0.5276 GB, free: 2.426 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.4311, allocations: 1.469 kB / 0.5276 GB, free: 2.426 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.535e-05/0.4312, allocations: 8.125 kB / 0.5276 GB, free: 2.422 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002061/0.4314, allocations: 43.89 kB / 0.5276 GB, free: 2.418 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.355e-05/0.4314, allocations: 11.84 kB / 0.5276 GB, free: 2.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001183/0.4315, allocations: 37.27 kB / 0.5276 GB, free: 2.383 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.073e-05/0.4315, allocations: 12.09 kB / 0.5277 GB, free: 2.379 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.000178/0.4317, allocations: 152.7 kB / 0.5278 GB, free: 2.238 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.129e-05/0.4318, allocations: 29.88 kB / 0.5278 GB, free: 2.223 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.687e-05/0.4318, allocations: 36.41 kB / 0.5279 GB, free: 2.199 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.191e-06/0.4318, allocations: 10.27 kB / 0.5279 GB, free: 2.191 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.696e-06/0.4319, allocations: 1.219 kB / 0.5279 GB, free: 2.191 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.4319, allocations: 1.266 kB / 0.5279 GB, free: 2.191 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005739/0.4324, allocations: 405.5 kB / 0.5283 GB, free: 1.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.4324, allocations: 1.375 kB / 0.5283 GB, free: 1.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001889/0.4326, allocations: 27 kB / 0.5283 GB, free: 1.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/0.4326, allocations: 1.922 kB / 0.5283 GB, free: 1.91 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.874e-05/0.4326, allocations: 9.406 kB / 0.5283 GB, free: 1.902 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.402e-06/0.4327, allocations: 5.828 kB / 0.5283 GB, free: 1.898 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.4327, allocations: 0 / 0.5283 GB, free: 1.898 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006002/0.4333, allocations: 355 kB / 0.5287 GB, free: 1.668 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.923e-05/0.4333, allocations: 111 kB / 0.5288 GB, free: 1.551 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.597e-05/0.4334, allocations: 6.875 kB / 0.5288 GB, free: 1.547 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001038/0.4335, allocations: 5.156 kB / 0.5288 GB, free: 1.543 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.491e-05/0.4335, allocations: 9.672 kB / 0.5288 GB, free: 1.543 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.392e-05/0.4335, allocations: 11.38 kB / 0.5288 GB, free: 1.535 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003029/0.4338, allocations: 239.1 kB / 0.529 GB, free: 1.41 MB / 382.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.4338, allocations: 0 / 0.529 GB, free: 1.41 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000376/0.4342, allocations: 83.8 kB / 0.5291 GB, free: 1.375 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.0006682/0.4349, allocations: 0.8951 MB / 0.53 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003347/0.4352, allocations: 152.6 kB / 0.5301 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.4352, allocations: 1.25 kB / 0.5301 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001208/0.4353, allocations: 66.75 kB / 0.5302 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004862/0.4358, allocations: 51.94 kB / 0.5302 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004311/0.4401, allocations: 3.215 MB / 0.5334 GB, free: 14.41 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005193/0.4406, allocations: 0.8192 MB / 0.5342 GB, free: 13.71 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001229/0.4408, allocations: 25.78 kB / 0.5342 GB, free: 13.7 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002183/0.441, allocations: 142.3 kB / 0.5343 GB, free: 13.59 MB / 398.1 MB Notification: Performance of SimCode: time 1.032e-06/0.441, allocations: 1.125 kB / 0.5343 GB, free: 13.59 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03487/0.4759, allocations: 5.944 MB / 0.5401 GB, free: 11.96 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.723/9.199, allocations: 8.391 kB / 0.5401 GB, free: 11.96 MB / 398.1 MB " [Timeout remaining time 651] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.363607373088598] Failed to read output from testmodel.py, exit status != 0: 9.27420477103442 9.30109123 8.873372175 Calling exit ...