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.001143/0.001143, allocations: 110.2 kB / 19.69 MB, free: 2.254 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.001309/0.001309, allocations: 213.7 kB / 23.01 MB, free: 4.566 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.309/1.309, allocations: 230.6 MB / 256.8 MB, free: 7.996 MB / 206.1 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.1733/0.1733, allocations: 29.22 MB / 342.4 MB, free: 5.766 MB / 270.1 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: 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.001878/0.001878, allocations: 75.88 kB / 479.6 MB, free: 48 kB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2801/0.282, allocations: 60.79 MB / 0.5277 GB, free: 8.227 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Sugar_Cane): time 0.002846/0.2848, allocations: 2.129 MB / 0.5298 GB, free: 6.715 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005927/0.2854, allocations: 330.5 kB / 0.5301 GB, free: 6.469 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001743/0.2856, allocations: 10.06 kB / 0.5301 GB, free: 6.465 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001955/0.2858, allocations: 70.94 kB / 0.5302 GB, free: 6.414 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.948e-05/0.2859, allocations: 34.77 kB / 0.5302 GB, free: 6.383 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003246/0.2862, allocations: 164.7 kB / 0.5304 GB, free: 6.289 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003716/0.2866, allocations: 399.9 kB / 0.5308 GB, free: 6.094 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003449/0.2869, allocations: 259.5 kB / 0.531 GB, free: 5.938 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001106/0.2871, allocations: 156.3 kB / 0.5312 GB, free: 5.848 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001441/0.2872, allocations: 181.1 kB / 0.5313 GB, free: 5.734 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.6e-05/0.2873, allocations: 41.28 kB / 0.5314 GB, free: 5.734 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.532e-05/0.2873, allocations: 41.5 kB / 0.5314 GB, free: 5.734 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.526e-05/0.2874, allocations: 102.5 kB / 0.5315 GB, free: 5.664 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001127/0.2875, allocations: 205.2 kB / 0.5317 GB, free: 5.516 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003889/0.2879, allocations: 441.7 kB / 0.5321 GB, free: 5.281 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.2879, allocations: 0 / 0.5321 GB, free: 5.281 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.2879, allocations: 1.188 kB / 0.5321 GB, free: 5.281 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.815e-06/0.2879, allocations: 0 / 0.5321 GB, free: 5.281 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.0007503/0.2886, allocations: 0.6458 MB / 0.5328 GB, free: 4.793 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.101e-05/0.2887, allocations: 14.12 kB / 0.5328 GB, free: 4.789 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.901e-05/0.2887, allocations: 59.59 kB / 0.5328 GB, free: 4.758 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003676/0.2891, allocations: 282.4 kB / 0.5331 GB, free: 4.531 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.68e-05/0.2891, allocations: 38.66 kB / 0.5332 GB, free: 4.516 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.093e-05/0.2892, allocations: 51.25 kB / 0.5332 GB, free: 4.5 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005807/0.2898, allocations: 485.5 kB / 0.5337 GB, free: 4.234 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.675e-05/0.2898, allocations: 5.156 kB / 0.5337 GB, free: 4.23 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.014e-05/0.2898, allocations: 25.56 kB / 0.5337 GB, free: 4.211 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.26e-05/0.2898, allocations: 12.69 kB / 0.5337 GB, free: 4.211 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000386/0.2902, allocations: 256.9 kB / 0.5339 GB, free: 4.121 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001535/0.2917, allocations: 1.693 MB / 0.5356 GB, free: 2.84 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004044/0.2921, allocations: 196.5 kB / 0.5358 GB, free: 2.746 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.927e-05/0.2922, allocations: 61 kB / 0.5358 GB, free: 2.715 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.435e-05/0.2923, allocations: 6.766 kB / 0.5359 GB, free: 2.711 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.319e-05/0.2923, allocations: 38.95 kB / 0.5359 GB, free: 2.668 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 1.192e-06/0.2923, allocations: 4 kB / 0.5359 GB, free: 2.664 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.000423/0.2927, allocations: 232 kB / 0.5361 GB, free: 2.547 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.713e-05/0.2927, allocations: 53.41 kB / 0.5362 GB, free: 2.484 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003365/0.2931, allocations: 343.4 kB / 0.5365 GB, free: 2.305 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.307e-05/0.2931, allocations: 29.7 kB / 0.5365 GB, free: 2.27 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001253/0.2932, allocations: 261.5 kB / 0.5368 GB, free: 2.059 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.73e-05/0.2932, allocations: 70.62 kB / 0.5368 GB, free: 2.004 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.15e-05/0.2933, allocations: 55.5 kB / 0.5369 GB, free: 1.965 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.561e-05/0.2934, allocations: 349.7 kB / 0.5372 GB, free: 1.633 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.271e-05/0.2934, allocations: 59.69 kB / 0.5373 GB, free: 1.609 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000113/0.2936, allocations: 116.1 kB / 0.5374 GB, free: 1.516 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002213/0.2938, allocations: 196.4 kB / 0.5376 GB, free: 1.371 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.2938, allocations: 4 kB / 0.5376 GB, free: 1.367 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003217/0.2941, allocations: 259.5 kB / 0.5378 GB, free: 1.238 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.2941, allocations: 6.344 kB / 0.5378 GB, free: 1.238 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.2941, allocations: 2.844 kB / 0.5378 GB, free: 1.238 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.994e-05/0.2942, allocations: 2.922 kB / 0.5378 GB, free: 1.238 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000178/0.2943, allocations: 48.22 kB / 0.5379 GB, free: 1.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.087e-05/0.2943, allocations: 8.422 kB / 0.5379 GB, free: 1.227 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.314e-05/0.2944, allocations: 36.83 kB / 0.5379 GB, free: 1.199 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.543e-05/0.2944, allocations: 12.56 kB / 0.5379 GB, free: 1.195 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.0001184/0.2946, allocations: 155.1 kB / 0.5381 GB, free: 1.051 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.574e-05/0.2946, allocations: 33.89 kB / 0.5381 GB, free: 1.031 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.707e-05/0.2947, allocations: 36.83 kB / 0.5382 GB, free: 1.004 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.2947, allocations: 2.703 kB / 0.5382 GB, free: 1.004 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.2947, allocations: 1.094 kB / 0.5382 GB, free: 1.004 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.2947, allocations: 1.078 kB / 0.5382 GB, free: 1.004 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000416/0.2951, allocations: 374.2 kB / 0.5385 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.2951, allocations: 0 / 0.5385 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001568/0.2953, allocations: 24.5 kB / 0.5385 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.2953, allocations: 9.266 kB / 0.5386 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.452e-05/0.2953, allocations: 5.938 kB / 0.5386 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.2953, allocations: 1.844 kB / 0.5386 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.2953, allocations: 3.938 kB / 0.5386 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003604/0.2957, allocations: 351.2 kB / 0.5389 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.86e-05/0.2957, allocations: 32.91 kB / 0.5389 GB, free: 484 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.952e-05/0.2957, allocations: 5.438 kB / 0.5389 GB, free: 480 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.439e-05/0.2958, allocations: 8 kB / 0.5389 GB, free: 472 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.167e-05/0.2958, allocations: 12.97 kB / 0.539 GB, free: 464 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.556e-06/0.2959, allocations: 2.781 kB / 0.539 GB, free: 464 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001728/0.296, allocations: 244.6 kB / 0.5392 GB, free: 300 kB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.296, allocations: 0 / 0.5392 GB, free: 300 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002838/0.2963, allocations: 76.98 kB / 0.5393 GB, free: 268 kB / 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 7.34e-05/0.2964, allocations: 109.9 kB / 0.5394 GB, free: 164 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002514/0.2966, allocations: 154.6 kB / 0.5395 GB, free: 96 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2966, allocations: 0 / 0.5395 GB, free: 96 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 8.01e-05/0.2967, allocations: 68.83 kB / 0.5396 GB, free: 68 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003595/0.2971, allocations: 43.61 kB / 0.5396 GB, free: 44 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001044/0.2981, allocations: 0.7021 MB / 0.5403 GB, free: 15.54 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004931/0.2986, allocations: 0.8134 MB / 0.5411 GB, free: 14.78 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.299e-05/0.2987, allocations: 23.47 kB / 0.5411 GB, free: 14.77 MB / 398.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2987, allocations: 1.094 kB / 0.5411 GB, free: 14.77 MB / 398.1 MB Notification: Performance of Templates: time 0.006006/0.3047, allocations: 3.687 MB / 0.5447 GB, free: 12.82 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: 6.622869761893526] Failed to read output from testmodel.py, exit status != 0: 0.3125173330772668 0.326539291 0.035768599000000005 Calling exit ...