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.001596/0.001596, allocations: 110.1 kB / 19.58 MB, free: 2.336 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.001576/0.001576, allocations: 188.4 kB / 22.85 MB, free: 5.641 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.51/1.51, allocations: 225.6 MB / 251.5 MB, free: 13.05 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.2008/0.2008, allocations: 29.24 MB / 336 MB, free: 11.36 MB / 270.1 MB " [Timeout remaining time 180] 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: 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 0.00213/0.00213, allocations: 59.91 kB / 470.7 MB, free: 6.984 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3226/0.3247, allocations: 59.61 MB / 0.5179 GB, free: 10.02 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Sugar_Cane): time 0.002958/0.3277, allocations: 2.133 MB / 0.52 GB, free: 8.5 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006321/0.3283, allocations: 335.5 kB / 0.5203 GB, free: 8.25 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001894/0.3285, allocations: 14.56 kB / 0.5203 GB, free: 8.242 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000212/0.3287, allocations: 66 kB / 0.5204 GB, free: 8.195 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000126/0.3288, allocations: 40.52 kB / 0.5204 GB, free: 8.16 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003122/0.3291, allocations: 163.8 kB / 0.5206 GB, free: 8.066 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004168/0.3296, allocations: 405.3 kB / 0.521 GB, free: 7.871 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003827/0.3299, allocations: 262.6 kB / 0.5212 GB, free: 7.711 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001289/0.3301, allocations: 158 kB / 0.5214 GB, free: 7.621 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001862/0.3302, allocations: 190 kB / 0.5215 GB, free: 7.5 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.11e-05/0.3303, allocations: 41.12 kB / 0.5216 GB, free: 7.5 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.065e-05/0.3304, allocations: 42.19 kB / 0.5216 GB, free: 7.5 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.172e-05/0.3305, allocations: 102 kB / 0.5217 GB, free: 7.43 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001324/0.3306, allocations: 214.4 kB / 0.5219 GB, free: 7.273 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004533/0.331, allocations: 441.2 kB / 0.5223 GB, free: 7.043 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.3311, allocations: 4.781 kB / 0.5224 GB, free: 7.039 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3311, allocations: 0 / 0.5224 GB, free: 7.039 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.698e-06/0.3311, allocations: 1.25 kB / 0.5224 GB, free: 7.039 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.0008461/0.3319, allocations: 0.654 MB / 0.523 GB, free: 6.543 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.3319, allocations: 9.094 kB / 0.523 GB, free: 6.543 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.505e-05/0.332, allocations: 60.11 kB / 0.5231 GB, free: 6.512 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004294/0.3325, allocations: 278.7 kB / 0.5233 GB, free: 6.289 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.656e-05/0.3325, allocations: 43.44 kB / 0.5234 GB, free: 6.27 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.979e-05/0.3326, allocations: 51.86 kB / 0.5234 GB, free: 6.254 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007543/0.3333, allocations: 480.8 kB / 0.5239 GB, free: 5.992 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.841e-05/0.3334, allocations: 5.438 kB / 0.5239 GB, free: 5.988 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.819e-05/0.3334, allocations: 25.19 kB / 0.5239 GB, free: 5.969 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.681e-05/0.3334, allocations: 13.86 kB / 0.5239 GB, free: 5.969 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004862/0.3339, allocations: 256.3 kB / 0.5242 GB, free: 5.875 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001667/0.3356, allocations: 1.676 MB / 0.5258 GB, free: 4.602 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004078/0.336, allocations: 201.2 kB / 0.526 GB, free: 4.504 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.63e-05/0.3361, allocations: 65.02 kB / 0.5261 GB, free: 4.469 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.86e-05/0.3361, allocations: 1.375 kB / 0.5261 GB, free: 4.469 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.619e-05/0.3361, allocations: 33.41 kB / 0.5261 GB, free: 4.43 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 1.152e-06/0.3361, allocations: 0 / 0.5261 GB, free: 4.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.0004159/0.3365, allocations: 234.1 kB / 0.5263 GB, free: 4.312 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.235e-05/0.3365, allocations: 54.33 kB / 0.5264 GB, free: 4.25 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003208/0.3369, allocations: 338.3 kB / 0.5267 GB, free: 4.074 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.413e-05/0.3369, allocations: 35.02 kB / 0.5267 GB, free: 4.035 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001201/0.337, allocations: 270.7 kB / 0.527 GB, free: 3.816 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.27e-05/0.337, allocations: 69.81 kB / 0.527 GB, free: 3.762 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.867e-05/0.3371, allocations: 55.39 kB / 0.5271 GB, free: 3.723 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.755e-05/0.3372, allocations: 346.5 kB / 0.5274 GB, free: 3.395 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000109/0.3373, allocations: 59.5 kB / 0.5275 GB, free: 3.371 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001269/0.3374, allocations: 119.6 kB / 0.5276 GB, free: 3.273 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000255/0.3377, allocations: 200 kB / 0.5278 GB, free: 3.129 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.3377, allocations: 1.156 kB / 0.5278 GB, free: 3.129 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003638/0.338, allocations: 251.3 kB / 0.528 GB, free: 3.004 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.671e-05/0.338, allocations: 10.78 kB / 0.528 GB, free: 3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.3381, allocations: 2.25 kB / 0.528 GB, free: 3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.036e-05/0.3381, allocations: 11.66 kB / 0.5281 GB, free: 2.992 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001881/0.3383, allocations: 48.23 kB / 0.5281 GB, free: 2.984 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.073e-05/0.3383, allocations: 3.703 kB / 0.5281 GB, free: 2.984 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001036/0.3384, allocations: 37.91 kB / 0.5281 GB, free: 2.957 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.749e-05/0.3384, allocations: 11.56 kB / 0.5281 GB, free: 2.953 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.0001296/0.3385, allocations: 156.1 kB / 0.5283 GB, free: 2.809 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.512e-05/0.3386, allocations: 34.7 kB / 0.5283 GB, free: 2.789 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.896e-05/0.3386, allocations: 36.66 kB / 0.5284 GB, free: 2.762 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.3387, allocations: 2.375 kB / 0.5284 GB, free: 2.762 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.3387, allocations: 4 kB / 0.5284 GB, free: 2.758 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/0.3387, allocations: 2.422 kB / 0.5284 GB, free: 2.758 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000428/0.3391, allocations: 371.5 kB / 0.5287 GB, free: 2.512 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.3391, allocations: 1.344 kB / 0.5287 GB, free: 2.512 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001688/0.3393, allocations: 26.81 kB / 0.5288 GB, free: 2.512 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.3393, allocations: 2 kB / 0.5288 GB, free: 2.512 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.57e-05/0.3393, allocations: 5 kB / 0.5288 GB, free: 2.508 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.3393, allocations: 2.516 kB / 0.5288 GB, free: 2.508 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.3393, allocations: 0 / 0.5288 GB, free: 2.508 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004511/0.3397, allocations: 362.3 kB / 0.5291 GB, free: 2.27 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.294e-05/0.3398, allocations: 35.56 kB / 0.5291 GB, free: 2.246 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.18e-05/0.3398, allocations: 6.156 kB / 0.5291 GB, free: 2.242 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.762e-05/0.3399, allocations: 0 / 0.5291 GB, free: 2.242 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.536e-05/0.3399, allocations: 15.06 kB / 0.5292 GB, free: 2.238 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.916e-06/0.34, allocations: 2.781 kB / 0.5292 GB, free: 2.238 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002041/0.3402, allocations: 239.7 kB / 0.5294 GB, free: 2.113 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3402, allocations: 0 / 0.5294 GB, free: 2.113 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003014/0.3405, allocations: 82.17 kB / 0.5295 GB, free: 2.078 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 7.24e-05/0.3405, allocations: 97.7 kB / 0.5296 GB, free: 1.988 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002917/0.3408, allocations: 157.4 kB / 0.5297 GB, free: 1.934 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.3408, allocations: 0 / 0.5297 GB, free: 1.934 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 9.629e-05/0.3409, allocations: 72.2 kB / 0.5298 GB, free: 1.906 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003903/0.3413, allocations: 45.3 kB / 0.5298 GB, free: 1.891 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001031/0.3423, allocations: 0.684 MB / 0.5305 GB, free: 1.461 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002467/0.3426, allocations: 0.8127 MB / 0.5313 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.615e-05/0.3427, allocations: 31.38 kB / 0.5313 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.786e-05/0.3428, allocations: 23.25 kB / 0.5313 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3428, allocations: 0 / 0.5313 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of Templates: time 0.006186/0.3489, allocations: 2.223 MB / 0.5335 GB, free: 0.5 MB / 382.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 -s cvode -lv LOG_STATS > SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.950984522998624] Failed to read output from testmodel.py, exit status != 0: 0.35712663600133965 0.37072912599999996 0.036752059000000004 Calling exit ...