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.001506/0.001506, allocations: 113.9 kB / 18.94 MB, free: 2.93 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.001609/0.001609, allocations: 189.4 kB / 22.23 MB, free: 5.105 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.317/1.317, allocations: 225.6 MB / 251 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 179] 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.172/0.172, allocations: 29.23 MB / 335.5 MB, free: 11.34 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.001875/0.001875, allocations: 67.89 kB / 470.4 MB, free: 6.883 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2853/0.2872, allocations: 59.6 MB / 0.5175 GB, free: 10.06 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Sugar_Cane): time 0.002752/0.2899, allocations: 2.131 MB / 0.5196 GB, free: 8.543 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005581/0.2905, allocations: 336.7 kB / 0.5199 GB, free: 8.293 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001594/0.2907, allocations: 9.562 kB / 0.5199 GB, free: 8.289 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001787/0.2908, allocations: 71.38 kB / 0.52 GB, free: 8.238 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001037/0.2909, allocations: 39.52 kB / 0.5201 GB, free: 8.203 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000273/0.2912, allocations: 164.7 kB / 0.5202 GB, free: 8.109 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003433/0.2916, allocations: 403.8 kB / 0.5206 GB, free: 7.914 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003116/0.2919, allocations: 261.1 kB / 0.5208 GB, free: 7.754 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001084/0.292, allocations: 166.2 kB / 0.521 GB, free: 7.656 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001361/0.2921, allocations: 182.2 kB / 0.5212 GB, free: 7.543 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.527e-05/0.2922, allocations: 41.72 kB / 0.5212 GB, free: 7.543 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.698e-05/0.2922, allocations: 42.62 kB / 0.5213 GB, free: 7.543 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.366e-05/0.2923, allocations: 101.6 kB / 0.5214 GB, free: 7.473 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001091/0.2924, allocations: 209.8 kB / 0.5216 GB, free: 7.32 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003843/0.2928, allocations: 442.2 kB / 0.522 GB, free: 7.09 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.2928, allocations: 1.062 kB / 0.522 GB, free: 7.09 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.2928, allocations: 0 / 0.522 GB, free: 7.09 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.196e-06/0.2928, allocations: 0 / 0.522 GB, free: 7.09 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.000724/0.2935, allocations: 0.6627 MB / 0.5226 GB, free: 6.586 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.2936, allocations: 10.22 kB / 0.5226 GB, free: 6.586 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.99e-05/0.2936, allocations: 59.62 kB / 0.5227 GB, free: 6.555 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003681/0.294, allocations: 274.7 kB / 0.5229 GB, free: 6.336 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.945e-05/0.294, allocations: 38.84 kB / 0.523 GB, free: 6.32 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.861e-05/0.2941, allocations: 59.06 kB / 0.523 GB, free: 6.297 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006297/0.2947, allocations: 485.9 kB / 0.5235 GB, free: 6.031 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.358e-05/0.2947, allocations: 5.25 kB / 0.5235 GB, free: 6.027 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.142e-05/0.2948, allocations: 25.56 kB / 0.5235 GB, free: 6.008 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.26e-05/0.2948, allocations: 12.97 kB / 0.5235 GB, free: 6.008 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003919/0.2952, allocations: 257.2 kB / 0.5238 GB, free: 5.914 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001456/0.2966, allocations: 1.685 MB / 0.5254 GB, free: 4.641 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003862/0.297, allocations: 204.9 kB / 0.5256 GB, free: 4.543 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.642e-05/0.2971, allocations: 61.66 kB / 0.5257 GB, free: 4.512 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.214e-05/0.2971, allocations: 1.25 kB / 0.5257 GB, free: 4.512 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.671e-05/0.2971, allocations: 36.84 kB / 0.5257 GB, free: 4.469 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 1.202e-06/0.2971, allocations: 0 / 0.5257 GB, free: 4.469 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.000371/0.2975, allocations: 236.5 kB / 0.526 GB, free: 4.352 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.782e-05/0.2975, allocations: 52.88 kB / 0.526 GB, free: 4.289 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002891/0.2978, allocations: 342.3 kB / 0.5263 GB, free: 4.109 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.305e-05/0.2978, allocations: 34.92 kB / 0.5264 GB, free: 4.07 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001103/0.2979, allocations: 265.9 kB / 0.5266 GB, free: 3.855 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.25e-05/0.298, allocations: 69.27 kB / 0.5267 GB, free: 3.801 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.364e-05/0.298, allocations: 52.58 kB / 0.5267 GB, free: 3.766 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.226e-05/0.2981, allocations: 349.2 kB / 0.5271 GB, free: 3.434 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.298e-05/0.2982, allocations: 60.89 kB / 0.5271 GB, free: 3.41 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001181/0.2983, allocations: 123 kB / 0.5272 GB, free: 3.309 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002142/0.2985, allocations: 199.4 kB / 0.5274 GB, free: 3.164 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.2985, allocations: 1.188 kB / 0.5274 GB, free: 3.164 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003191/0.2989, allocations: 252.9 kB / 0.5277 GB, free: 3.039 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.2989, allocations: 9.281 kB / 0.5277 GB, free: 3.035 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.2989, allocations: 6.25 kB / 0.5277 GB, free: 3.031 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.882e-05/0.2989, allocations: 4.031 kB / 0.5277 GB, free: 3.031 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001743/0.2991, allocations: 47.95 kB / 0.5277 GB, free: 3.023 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.336e-06/0.2991, allocations: 4.078 kB / 0.5277 GB, free: 3.023 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001028/0.2992, allocations: 37.38 kB / 0.5278 GB, free: 2.996 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.399e-05/0.2992, allocations: 7.625 kB / 0.5278 GB, free: 2.996 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.00011/0.2993, allocations: 156.4 kB / 0.5279 GB, free: 2.852 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.676e-05/0.2994, allocations: 34.95 kB / 0.528 GB, free: 2.832 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.301e-05/0.2994, allocations: 39.64 kB / 0.528 GB, free: 2.801 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.2994, allocations: 3.078 kB / 0.528 GB, free: 2.801 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.2994, allocations: 0 / 0.528 GB, free: 2.801 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.2994, allocations: 6.812 kB / 0.528 GB, free: 2.797 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003663/0.2998, allocations: 367.5 kB / 0.5284 GB, free: 2.555 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.2998, allocations: 0 / 0.5284 GB, free: 2.555 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000168/0.3, allocations: 31.78 kB / 0.5284 GB, free: 2.551 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.3, allocations: 1.156 kB / 0.5284 GB, free: 2.551 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.572e-05/0.3, allocations: 7.094 kB / 0.5284 GB, free: 2.547 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.492e-06/0.3, allocations: 0 / 0.5284 GB, free: 2.547 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.3, allocations: 5.156 kB / 0.5284 GB, free: 2.543 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004377/0.3004, allocations: 358.6 kB / 0.5288 GB, free: 2.309 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.329e-05/0.3005, allocations: 35.31 kB / 0.5288 GB, free: 2.285 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.095e-05/0.3005, allocations: 6.438 kB / 0.5288 GB, free: 2.281 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001015/0.3006, allocations: 0.7031 kB / 0.5288 GB, free: 2.281 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.575e-05/0.3006, allocations: 10.5 kB / 0.5288 GB, free: 2.281 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.959e-06/0.3006, allocations: 6.781 kB / 0.5288 GB, free: 2.277 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000194/0.3008, allocations: 243.3 kB / 0.529 GB, free: 2.148 MB / 382.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3008, allocations: 4 kB / 0.529 GB, free: 2.145 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000297/0.3011, allocations: 82.95 kB / 0.5291 GB, free: 2.109 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.204e-05/0.3012, allocations: 96.06 kB / 0.5292 GB, free: 2.02 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002596/0.3015, allocations: 156.7 kB / 0.5294 GB, free: 1.965 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.3015, allocations: 0 / 0.5294 GB, free: 1.965 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 9.039e-05/0.3015, allocations: 67.44 kB / 0.5294 GB, free: 1.941 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003974/0.3019, allocations: 44.08 kB / 0.5295 GB, free: 1.926 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009729/0.3029, allocations: 0.6773 MB / 0.5301 GB, free: 1.5 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002317/0.3031, allocations: 0.8137 MB / 0.5309 GB, free: 0.793 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.062e-05/0.3032, allocations: 26.19 kB / 0.531 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.231e-05/0.3033, allocations: 26.75 kB / 0.531 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3033, allocations: 0 / 0.531 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of Templates: time 0.005792/0.3091, allocations: 2.228 MB / 0.5332 GB, free: 0.5352 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 -lv LOG_STATS > SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.317057489417493] Failed to read output from testmodel.py, exit status != 0: 0.3164870338514447 0.32940783900000004 0.033821744 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7f7dce4f57b0>