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.0008118/0.0008118, allocations: 72.5 kB / 19.93 MB, free: 4.633 MB / 18.57 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.001124/0.001124, allocations: 178.2 kB / 23.22 MB, free: 1.348 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.8636/0.8636, allocations: 177.1 MB / 203.5 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.1163/0.1163, allocations: 21.79 MB / 281.7 MB, free: 7.406 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: 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: Performance of FrontEnd - loaded program: time 1.964e-06/1.964e-06, allocations: 0 / 418.9 MB, free: 5.77 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.221e-05/2.418e-05, allocations: 2.281 kB / 418.9 MB, free: 5.766 MB / 330.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Sugar_Cane): time 0.001897/0.001921, allocations: 1.853 MB / 420.8 MB, free: 4.539 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004998/0.002421, allocations: 332.3 kB / 421.1 MB, free: 4.293 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001443/0.002565, allocations: 14.41 kB / 421.1 MB, free: 4.285 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001572/0.002722, allocations: 69.83 kB / 421.2 MB, free: 4.234 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 7.16e-05/0.002794, allocations: 35.81 kB / 421.2 MB, free: 4.203 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000235/0.003029, allocations: 163.7 kB / 421.4 MB, free: 4.109 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002963/0.003325, allocations: 396.9 kB / 421.8 MB, free: 3.922 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002664/0.003592, allocations: 242.5 kB / 422 MB, free: 3.781 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001437/0.003735, allocations: 230.2 kB / 422.2 MB, free: 3.668 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001046/0.00384, allocations: 118.1 kB / 422.4 MB, free: 3.617 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 5.511e-05/0.003895, allocations: 44.97 kB / 422.4 MB, free: 3.613 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.414e-05/0.003929, allocations: 41.81 kB / 422.4 MB, free: 3.613 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 5.029e-05/0.003979, allocations: 105.5 kB / 422.5 MB, free: 3.539 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 7.076e-05/0.00405, allocations: 126.9 kB / 422.7 MB, free: 3.469 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003193/0.004369, allocations: 437.2 kB / 423.1 MB, free: 3.25 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.866e-06/0.004372, allocations: 0.6562 kB / 423.1 MB, free: 3.25 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.004374, allocations: 0 / 423.1 MB, free: 3.25 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.893e-06/0.004381, allocations: 1.062 kB / 423.1 MB, free: 3.25 MB / 330.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.0005791/0.00496, allocations: 0.6443 MB / 423.7 MB, free: 2.758 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.004996, allocations: 10.36 kB / 423.7 MB, free: 2.758 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.068e-05/0.005057, allocations: 63.16 kB / 423.8 MB, free: 2.723 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002934/0.00535, allocations: 282.4 kB / 424.1 MB, free: 2.496 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.296e-05/0.005373, allocations: 42.22 kB / 424.1 MB, free: 2.473 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.729e-05/0.005421, allocations: 51.16 kB / 424.2 MB, free: 2.457 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004364/0.005857, allocations: 488.9 kB / 424.7 MB, free: 2.199 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.366e-05/0.005871, allocations: 1.281 kB / 424.7 MB, free: 2.199 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.259e-05/0.005893, allocations: 25.84 kB / 424.7 MB, free: 2.18 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.152e-05/0.005905, allocations: 13.47 kB / 424.7 MB, free: 2.18 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002966/0.006201, allocations: 255.3 kB / 424.9 MB, free: 2.09 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001282/0.007483, allocations: 1.487 MB / 426.4 MB, free: 0.9102 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003156/0.007799, allocations: 195.8 kB / 426.6 MB, free: 0.8164 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.169e-05/0.00787, allocations: 60.91 kB / 426.7 MB, free: 0.7852 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.475e-05/0.007885, allocations: 1.375 kB / 426.7 MB, free: 0.7852 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.481e-05/0.0079, allocations: 46.12 kB / 426.7 MB, free: 0.7344 MB / 330.7 MB Notification: Performance of pre-optimization done (n=19): time 1.422e-06/0.007901, allocations: 0 / 426.7 MB, free: 0.7344 MB / 330.7 MB Notification: Performance of matching and sorting (n=19): time 0.0003272/0.008228, allocations: 218.3 kB / 426.9 MB, free: 0.625 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.374e-05/0.008252, allocations: 54.95 kB / 427 MB, free: 0.5625 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001572/0.008409, allocations: 235.2 kB / 427.2 MB, free: 428 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.387e-06/0.008419, allocations: 30.77 kB / 427.3 MB, free: 392 kB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.74e-05/0.008516, allocations: 271 kB / 427.5 MB, free: 172 kB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.05e-05/0.008547, allocations: 77.25 kB / 427.6 MB, free: 108 kB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.202e-05/0.008599, allocations: 47.59 kB / 427.6 MB, free: 76 kB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001011/0.0087, allocations: 336.9 kB / 428 MB, free: 15.75 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.602e-05/0.008786, allocations: 64.83 kB / 428 MB, free: 15.72 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001091/0.008895, allocations: 128.9 kB / 428.2 MB, free: 15.62 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002073/0.009102, allocations: 192.5 kB / 428.3 MB, free: 15.48 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.009106, allocations: 1.312 kB / 428.3 MB, free: 15.48 MB / 346.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002703/0.009376, allocations: 256 kB / 428.6 MB, free: 15.35 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.744e-05/0.009394, allocations: 9.688 kB / 428.6 MB, free: 15.35 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.0094, allocations: 1.375 kB / 428.6 MB, free: 15.35 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.713e-05/0.009417, allocations: 4.922 kB / 428.6 MB, free: 15.35 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000119/0.009536, allocations: 43.23 kB / 428.7 MB, free: 15.34 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/0.009544, allocations: 4.484 kB / 428.7 MB, free: 15.34 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.917e-05/0.009593, allocations: 17.73 kB / 428.7 MB, free: 15.33 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.384e-05/0.009607, allocations: 12.42 kB / 428.7 MB, free: 15.33 MB / 346.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.000113/0.00972, allocations: 156.1 kB / 428.8 MB, free: 15.18 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.015e-05/0.00975, allocations: 33.62 kB / 428.9 MB, free: 15.16 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.142e-05/0.009791, allocations: 35.31 kB / 428.9 MB, free: 15.13 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.009795, allocations: 3.078 kB / 428.9 MB, free: 15.13 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.0098, allocations: 0 / 428.9 MB, free: 15.13 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.337e-06/0.009804, allocations: 0.75 kB / 428.9 MB, free: 15.13 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002488/0.01005, allocations: 270.2 kB / 429.2 MB, free: 14.95 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.01005, allocations: 1.406 kB / 429.2 MB, free: 14.95 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001058/0.01016, allocations: 35.28 kB / 429.2 MB, free: 14.94 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.01016, allocations: 1.344 kB / 429.2 MB, free: 14.94 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.138e-05/0.01017, allocations: 10.12 kB / 429.2 MB, free: 14.93 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.01018, allocations: 1.406 kB / 429.2 MB, free: 14.93 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.01018, allocations: 0 / 429.2 MB, free: 14.93 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003251/0.0105, allocations: 346.8 kB / 429.6 MB, free: 14.71 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.12e-05/0.01052, allocations: 27.97 kB / 429.6 MB, free: 14.69 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.822e-05/0.01054, allocations: 5.781 kB / 429.6 MB, free: 14.68 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.683e-05/0.01059, allocations: 1.188 kB / 429.6 MB, free: 14.68 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.486e-05/0.01061, allocations: 14.8 kB / 429.6 MB, free: 14.68 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.553e-06/0.01062, allocations: 3.078 kB / 429.6 MB, free: 14.68 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001074/0.01073, allocations: 168.6 kB / 429.8 MB, free: 14.57 MB / 346.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01073, allocations: 4 kB / 429.8 MB, free: 14.57 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002065/0.01093, allocations: 85.64 kB / 429.9 MB, free: 14.53 MB / 346.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 8.247e-05/0.01102, allocations: 96.45 kB / 430 MB, free: 14.44 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002028/0.01122, allocations: 157.5 kB / 430.1 MB, free: 14.38 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.01122, allocations: 0 / 430.1 MB, free: 14.38 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.58e-05/0.01129, allocations: 67.88 kB / 430.2 MB, free: 14.36 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002539/0.01154, allocations: 42.47 kB / 430.2 MB, free: 14.34 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007279/0.01227, allocations: 0.6693 MB / 430.9 MB, free: 13.91 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001586/0.01243, allocations: 206.8 kB / 431.1 MB, free: 13.81 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.738e-05/0.01247, allocations: 19.81 kB / 431.1 MB, free: 13.8 MB / 346.7 MB Notification: Performance of SimCode: time 3.71e-07/0.01247, allocations: 1.031 kB / 431.1 MB, free: 13.8 MB / 346.7 MB Notification: Performance of Templates: time 0.004401/0.01687, allocations: 3.526 MB / 434.6 MB, free: 12.71 MB / 346.7 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: 4.1949711963534355] Failed to read output from testmodel.py, exit status != 0: 0.02184252254664898 0.030244319000000002 0.024256051 Calling exit ...