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.001446/0.001446, allocations: 100.3 kB / 19.7 MB, free: 2.012 MB / 14.72 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.001769/0.001769, allocations: 221.8 kB / 23 MB, free: 4.914 MB / 14.72 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 1.462/1.462, allocations: 230.6 MB / 256.8 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] 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.2146/0.2146, allocations: 29.23 MB / 342.4 MB, free: 5.609 MB / 270.1 MB " [Timeout remaining time 179] 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: translateModel(SystemDynamics.IntroductoryExamples.Sugar_Cane,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane") translateModel(SystemDynamics.IntroductoryExamples.Sugar_Cane,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane") [Timeout 660] "Notification: SystemDynamics requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00248/0.00248, allocations: 63.97 kB / 479.5 MB, free: 15.95 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3849/0.3874, allocations: 60.79 MB / 0.5277 GB, free: 8.121 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Sugar_Cane): time 0.003416/0.3908, allocations: 1.846 MB / 0.5295 GB, free: 6.91 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007437/0.3916, allocations: 325.1 kB / 0.5298 GB, free: 6.672 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001861/0.3917, allocations: 9.656 kB / 0.5298 GB, free: 6.668 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002304/0.392, allocations: 66.22 kB / 0.5298 GB, free: 6.621 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001141/0.3921, allocations: 38.72 kB / 0.5299 GB, free: 6.586 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003375/0.3924, allocations: 168.8 kB / 0.53 GB, free: 6.488 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004858/0.3929, allocations: 396.4 kB / 0.5304 GB, free: 6.297 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004299/0.3933, allocations: 239 kB / 0.5307 GB, free: 6.16 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001417/0.3935, allocations: 156.6 kB / 0.5308 GB, free: 6.07 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001942/0.3937, allocations: 156.9 kB / 0.5309 GB, free: 5.98 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.848e-05/0.3938, allocations: 45.47 kB / 0.531 GB, free: 5.977 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.972e-05/0.3938, allocations: 41.62 kB / 0.531 GB, free: 5.977 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.2e-05/0.3939, allocations: 101.3 kB / 0.5311 GB, free: 5.906 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001314/0.394, allocations: 165.1 kB / 0.5313 GB, free: 5.797 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005066/0.3945, allocations: 439 kB / 0.5317 GB, free: 5.57 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.3945, allocations: 5.562 kB / 0.5317 GB, free: 5.566 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.3945, allocations: 0 / 0.5317 GB, free: 5.566 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.948e-06/0.3946, allocations: 0 / 0.5317 GB, free: 5.566 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.0008835/0.3954, allocations: 0.6466 MB / 0.5323 GB, free: 5.078 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.736e-05/0.3955, allocations: 9.812 kB / 0.5324 GB, free: 5.078 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.534e-05/0.3956, allocations: 59.78 kB / 0.5324 GB, free: 5.047 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004942/0.3961, allocations: 286.4 kB / 0.5327 GB, free: 4.816 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.722e-05/0.3961, allocations: 38.25 kB / 0.5327 GB, free: 4.801 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.253e-05/0.3962, allocations: 51.08 kB / 0.5328 GB, free: 4.785 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007696/0.397, allocations: 489 kB / 0.5332 GB, free: 4.52 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.967e-05/0.397, allocations: 1.562 kB / 0.5332 GB, free: 4.52 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.518e-05/0.397, allocations: 24.47 kB / 0.5333 GB, free: 4.5 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.12e-05/0.397, allocations: 17.38 kB / 0.5333 GB, free: 4.496 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004659/0.3975, allocations: 256.1 kB / 0.5335 GB, free: 4.402 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001593/0.3991, allocations: 1.505 MB / 0.535 GB, free: 3.211 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00042/0.3995, allocations: 193 kB / 0.5352 GB, free: 3.121 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001016/0.3996, allocations: 65.2 kB / 0.5352 GB, free: 3.086 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.533e-05/0.3996, allocations: 2.188 kB / 0.5352 GB, free: 3.086 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.944e-05/0.3997, allocations: 37.58 kB / 0.5353 GB, free: 3.043 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 1.243e-06/0.3997, allocations: 0 / 0.5353 GB, free: 3.043 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.0004294/0.4001, allocations: 216.9 kB / 0.5355 GB, free: 2.938 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.584e-05/0.4001, allocations: 55.45 kB / 0.5355 GB, free: 2.875 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002081/0.4003, allocations: 233.8 kB / 0.5358 GB, free: 2.727 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.159e-05/0.4004, allocations: 35.45 kB / 0.5358 GB, free: 2.688 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001463/0.4005, allocations: 279.3 kB / 0.5361 GB, free: 2.461 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.706e-05/0.4006, allocations: 73.25 kB / 0.5361 GB, free: 2.402 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.845e-05/0.4006, allocations: 48.78 kB / 0.5362 GB, free: 2.371 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.768e-05/0.4007, allocations: 341.2 kB / 0.5365 GB, free: 2.043 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.826e-05/0.4008, allocations: 54.73 kB / 0.5365 GB, free: 2.023 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001398/0.4009, allocations: 126 kB / 0.5367 GB, free: 1.922 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002409/0.4012, allocations: 200.1 kB / 0.5369 GB, free: 1.777 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/0.4012, allocations: 1.312 kB / 0.5369 GB, free: 1.777 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000342/0.4015, allocations: 245.4 kB / 0.5371 GB, free: 1.656 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.4015, allocations: 6.531 kB / 0.5371 GB, free: 1.656 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.4015, allocations: 2.812 kB / 0.5371 GB, free: 1.656 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.182e-05/0.4016, allocations: 7.391 kB / 0.5371 GB, free: 1.652 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001816/0.4018, allocations: 44.72 kB / 0.5372 GB, free: 1.648 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.999e-06/0.4018, allocations: 3.781 kB / 0.5372 GB, free: 1.648 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.683e-05/0.4018, allocations: 21.42 kB / 0.5372 GB, free: 1.633 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.609e-05/0.4019, allocations: 12.91 kB / 0.5372 GB, free: 1.629 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.0001266/0.402, allocations: 155.6 kB / 0.5373 GB, free: 1.484 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.187e-05/0.402, allocations: 22.77 kB / 0.5374 GB, free: 1.473 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.507e-05/0.4021, allocations: 31.09 kB / 0.5374 GB, free: 1.457 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.4021, allocations: 1.906 kB / 0.5374 GB, free: 1.457 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.764e-06/0.4021, allocations: 8.828 kB / 0.5374 GB, free: 1.449 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.219e-06/0.4021, allocations: 0.7969 kB / 0.5374 GB, free: 1.449 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003236/0.4024, allocations: 278.6 kB / 0.5377 GB, free: 1.258 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.4024, allocations: 3.938 kB / 0.5377 GB, free: 1.254 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001666/0.4026, allocations: 27.22 kB / 0.5377 GB, free: 1.254 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.4026, allocations: 1.406 kB / 0.5377 GB, free: 1.254 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.632e-05/0.4026, allocations: 9.75 kB / 0.5377 GB, free: 1.246 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.4026, allocations: 1.375 kB / 0.5377 GB, free: 1.246 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.4026, allocations: 0.5625 kB / 0.5377 GB, free: 1.246 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003901/0.403, allocations: 347.4 kB / 0.538 GB, free: 1.02 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.187e-05/0.403, allocations: 23.33 kB / 0.5381 GB, free: 1.004 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.894e-05/0.4031, allocations: 14.08 kB / 0.5381 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.781e-05/0.4032, allocations: 5.375 kB / 0.5381 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.668e-05/0.4032, allocations: 9.469 kB / 0.5381 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.869e-06/0.4032, allocations: 4.734 kB / 0.5381 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001234/0.4033, allocations: 162.6 kB / 0.5382 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4033, allocations: 1.375 kB / 0.5383 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003/0.4036, allocations: 88.89 kB / 0.5383 GB, free: 0.8438 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 8.433e-05/0.4037, allocations: 92.42 kB / 0.5384 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000294/0.404, allocations: 153.4 kB / 0.5386 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.404, allocations: 5.312 kB / 0.5386 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001096/0.4041, allocations: 69.97 kB / 0.5386 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003656/0.4045, allocations: 43.03 kB / 0.5387 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009366/0.4054, allocations: 0.6898 MB / 0.5394 GB, free: 192 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001804/0.4056, allocations: 211.6 kB / 0.5396 GB, free: 44 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.255e-05/0.4057, allocations: 18.94 kB / 0.5396 GB, free: 36 kB / 382.1 MB Notification: Performance of SimCode: time 3.01e-07/0.4057, allocations: 0.9062 kB / 0.5396 GB, free: 36 kB / 382.1 MB Notification: Performance of Templates: time 0.006482/0.4121, allocations: 3.509 MB / 0.543 GB, free: 14.17 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane.makefile [Timeout 660] (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) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.541284317616373] Failed to read output from testmodel.py, exit status != 0: 0.42133020190522075 0.435509625 0.03795806 Calling exit ...