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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008514/0.0008514, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001039/0.001039, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9147/0.9147, allocations: 177.1 MB / 202.8 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/package.mo): time 0.1185/0.1185, allocations: 21.79 MB / 281 MB, free: 7.402 MB / 266.7 MB " [Timeout remaining time 180] Using package SystemDynamics with version 2.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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 2.605e-06/2.605e-06, allocations: 0 / 417.7 MB, free: 9.469 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.391e-05/2.651e-05, allocations: 5.656 kB / 417.7 MB, free: 9.465 MB / 394.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Sugar_Cane): time 0.002678/0.002704, allocations: 1.848 MB / 419.5 MB, free: 7.613 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006648/0.003369, allocations: 318.8 kB / 419.8 MB, free: 7.301 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001989/0.003568, allocations: 11.94 kB / 419.9 MB, free: 7.289 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000187/0.003755, allocations: 71.17 kB / 419.9 MB, free: 7.219 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 8.583e-05/0.003841, allocations: 43.44 kB / 420 MB, free: 7.176 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002999/0.004141, allocations: 163.8 kB / 420.1 MB, free: 7.016 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004397/0.00458, allocations: 396.5 kB / 420.5 MB, free: 6.625 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002932/0.004873, allocations: 246.5 kB / 420.8 MB, free: 6.371 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001512/0.005025, allocations: 227.5 kB / 421 MB, free: 6.148 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.89e-05/0.005124, allocations: 119.5 kB / 421.1 MB, free: 6.031 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 4.5e-05/0.005169, allocations: 44 kB / 421.1 MB, free: 5.988 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.837e-05/0.005197, allocations: 43.94 kB / 421.2 MB, free: 5.945 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 5.273e-05/0.00525, allocations: 115.5 kB / 421.3 MB, free: 5.832 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 8.185e-05/0.005332, allocations: 119.6 kB / 421.4 MB, free: 5.715 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000331/0.005663, allocations: 442.3 kB / 421.8 MB, free: 5.281 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.005667, allocations: 0 / 421.8 MB, free: 5.281 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.005668, allocations: 0 / 421.8 MB, free: 5.281 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.182e-06/0.005675, allocations: 3.938 kB / 421.8 MB, free: 5.277 MB / 394.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.0006671/0.006342, allocations: 0.6457 MB / 422.5 MB, free: 4.598 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.911e-05/0.006381, allocations: 12.03 kB / 422.5 MB, free: 4.586 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001091/0.00649, allocations: 104 kB / 422.6 MB, free: 4.477 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.891e-05/0.006549, allocations: 64.55 kB / 422.7 MB, free: 4.414 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003959/0.006945, allocations: 273.8 kB / 422.9 MB, free: 4.117 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.997e-05/0.006975, allocations: 45.69 kB / 423 MB, free: 4.07 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.206e-05/0.007037, allocations: 56.36 kB / 423 MB, free: 4.016 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005069/0.007544, allocations: 0.4974 MB / 423.5 MB, free: 3.484 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.007557, allocations: 4.125 kB / 423.5 MB, free: 3.48 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.443e-05/0.007581, allocations: 20.38 kB / 423.6 MB, free: 3.461 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.162e-05/0.007593, allocations: 20.12 kB / 423.6 MB, free: 3.441 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002888/0.007881, allocations: 261 kB / 423.8 MB, free: 3.188 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001298/0.00918, allocations: 1.619 MB / 425.5 MB, free: 1.492 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000322/0.009502, allocations: 194.8 kB / 425.6 MB, free: 1.293 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.917e-05/0.009571, allocations: 56.84 kB / 425.7 MB, free: 1.234 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.274e-05/0.009583, allocations: 0 / 425.7 MB, free: 1.234 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.076e-05/0.009604, allocations: 42.5 kB / 425.7 MB, free: 1.184 MB / 394.7 MB Notification: Performance of pre-optimization done (n=19): time 1.413e-06/0.009606, allocations: 0 / 425.7 MB, free: 1.184 MB / 394.7 MB Notification: Performance of matching and sorting (n=19): time 0.0003163/0.009922, allocations: 229.4 kB / 426 MB, free: 0.9531 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.294e-05/0.009955, allocations: 55.41 kB / 426 MB, free: 0.8867 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000234/0.01019, allocations: 349.6 kB / 426.4 MB, free: 0.5391 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.298e-05/0.0102, allocations: 25.7 kB / 426.4 MB, free: 0.5078 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001223/0.01032, allocations: 272.1 kB / 426.6 MB, free: 244 kB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.657e-05/0.01036, allocations: 75.38 kB / 426.7 MB, free: 168 kB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.249e-05/0.01041, allocations: 45.7 kB / 426.8 MB, free: 116 kB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.729e-05/0.01051, allocations: 346.8 kB / 427.1 MB, free: 15.77 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.015e-05/0.01058, allocations: 55.98 kB / 427.2 MB, free: 15.71 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.526e-05/0.01068, allocations: 123.6 kB / 427.3 MB, free: 15.56 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001853/0.01086, allocations: 205.4 kB / 427.5 MB, free: 15.34 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.01086, allocations: 0 / 427.5 MB, free: 15.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002448/0.01111, allocations: 265 kB / 427.7 MB, free: 15.07 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/0.01112, allocations: 10.81 kB / 427.8 MB, free: 15.06 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.01113, allocations: 0 / 427.8 MB, free: 15.06 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-05/0.01114, allocations: 4 kB / 427.8 MB, free: 15.06 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000109/0.01125, allocations: 51.84 kB / 427.8 MB, free: 15.01 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.01126, allocations: 4 kB / 427.8 MB, free: 15 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.498e-05/0.01133, allocations: 39.61 kB / 427.8 MB, free: 14.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.13e-05/0.01134, allocations: 12 kB / 427.9 MB, free: 14.95 MB / 410.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.0001115/0.01145, allocations: 151.3 kB / 428 MB, free: 14.8 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.042e-05/0.01148, allocations: 39.95 kB / 428 MB, free: 14.76 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.429e-05/0.01152, allocations: 39.27 kB / 428.1 MB, free: 14.71 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.01153, allocations: 0 / 428.1 MB, free: 14.71 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.01153, allocations: 0 / 428.1 MB, free: 14.71 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.321e-06/0.01154, allocations: 7.922 kB / 428.1 MB, free: 14.7 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002732/0.01181, allocations: 344.5 kB / 428.4 MB, free: 14.32 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.548e-06/0.01181, allocations: 3.984 kB / 428.4 MB, free: 14.32 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001325/0.01195, allocations: 27.94 kB / 428.5 MB, free: 14.29 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.099e-06/0.01195, allocations: 4 kB / 428.5 MB, free: 14.29 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.377e-05/0.01197, allocations: 4 kB / 428.5 MB, free: 14.29 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.165e-06/0.01197, allocations: 3.984 kB / 428.5 MB, free: 14.28 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.674e-06/0.01197, allocations: 4 kB / 428.5 MB, free: 14.28 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003225/0.01229, allocations: 358.1 kB / 428.8 MB, free: 13.91 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.984e-05/0.01232, allocations: 31.78 kB / 428.9 MB, free: 13.88 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.918e-05/0.01234, allocations: 7.938 kB / 428.9 MB, free: 13.88 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.533e-05/0.0124, allocations: 8 kB / 428.9 MB, free: 13.87 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.887e-05/0.01242, allocations: 7.984 kB / 428.9 MB, free: 13.86 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.955e-06/0.01242, allocations: 11.92 kB / 428.9 MB, free: 13.85 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001492/0.01257, allocations: 239.2 kB / 429.1 MB, free: 13.62 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01257, allocations: 0 / 429.1 MB, free: 13.62 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002131/0.01279, allocations: 71.69 kB / 429.2 MB, free: 13.55 MB / 410.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 0.0004631/0.01325, allocations: 0.8956 MB / 430.1 MB, free: 12.62 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002108/0.01346, allocations: 143.9 kB / 430.2 MB, free: 12.48 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.01346, allocations: 0 / 430.2 MB, free: 12.48 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 6.398e-05/0.01353, allocations: 71.91 kB / 430.3 MB, free: 12.41 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002965/0.01382, allocations: 52.39 kB / 430.4 MB, free: 12.36 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002651/0.01647, allocations: 3.198 MB / 433.6 MB, free: 9.035 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001377/0.01661, allocations: 207.2 kB / 433.8 MB, free: 8.809 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 8.556e-05/0.0167, allocations: 34.91 kB / 433.8 MB, free: 8.773 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001262/0.01682, allocations: 156.4 kB / 433.9 MB, free: 8.621 MB / 410.7 MB Notification: Performance of SimCode: time 1.133e-06/0.01682, allocations: 0 / 433.9 MB, free: 8.621 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02035/0.03717, allocations: 6.385 MB / 440.3 MB, free: 2.363 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.065/7.102, allocations: 12 kB / 440.3 MB, free: 2.352 MB / 410.7 MB " [Timeout remaining time 653] (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: 9.264343362301588] Failed to read output from testmodel.py, exit status != 0: 7.188379284925759 7.390873263 7.383074131 Calling exit ...