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.001393/0.001393, allocations: 79.73 kB / 19.76 MB, free: 1.871 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.001556/0.001556, allocations: 156 kB / 23.01 MB, free: 4.602 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.39/1.39, allocations: 177.2 MB / 203.4 MB, free: 8.957 MB / 190.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.1776/0.1776, allocations: 21.8 MB / 281.6 MB, free: 10.82 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.002037/0.002037, allocations: 63.91 kB / 418.7 MB, free: 14.77 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.1216, allocations: 60.75 MB / 479.4 MB, free: 1.902 MB / 446.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Sugar_Cane): time 0.003532/0.1251, allocations: 1.859 MB / 481.3 MB, free: 40 kB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.2369/0.3621, allocations: 324.4 kB / 481.6 MB, free: 42.87 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000197/0.3623, allocations: 12.11 kB / 481.6 MB, free: 42.87 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001913/0.3625, allocations: 68.94 kB / 481.7 MB, free: 42.87 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001094/0.3626, allocations: 30.38 kB / 481.7 MB, free: 42.87 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002599/0.3628, allocations: 162.9 kB / 481.9 MB, free: 42.87 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003149/0.3631, allocations: 405.5 kB / 482.3 MB, free: 42.85 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002915/0.3634, allocations: 236.5 kB / 482.5 MB, free: 42.81 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.317e-05/0.3635, allocations: 161 kB / 482.7 MB, free: 42.78 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001118/0.3636, allocations: 154.6 kB / 482.8 MB, free: 42.73 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.612e-05/0.3637, allocations: 41.22 kB / 482.9 MB, free: 42.73 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.772e-05/0.3637, allocations: 41.56 kB / 482.9 MB, free: 42.73 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 5.372e-05/0.3638, allocations: 100.5 kB / 483 MB, free: 42.71 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 9.399e-05/0.3639, allocations: 162.6 kB / 483.2 MB, free: 42.65 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003084/0.3642, allocations: 442.6 kB / 483.6 MB, free: 42.55 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.3642, allocations: 0 / 483.6 MB, free: 42.55 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3642, allocations: 0 / 483.6 MB, free: 42.55 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.696e-06/0.3642, allocations: 1.562 kB / 483.6 MB, free: 42.55 MB / 446.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.0006922/0.3649, allocations: 0.6564 MB / 484.3 MB, free: 42.14 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.3649, allocations: 9.5 kB / 484.3 MB, free: 42.14 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.565e-05/0.365, allocations: 60.59 kB / 484.3 MB, free: 42.11 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003693/0.3654, allocations: 279.5 kB / 484.6 MB, free: 41.92 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.944e-05/0.3654, allocations: 39.44 kB / 484.6 MB, free: 41.92 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.146e-05/0.3655, allocations: 53.03 kB / 484.7 MB, free: 41.91 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004967/0.366, allocations: 488.2 kB / 485.2 MB, free: 41.65 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.752e-05/0.366, allocations: 3.375 kB / 485.2 MB, free: 41.65 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.763e-05/0.366, allocations: 23.09 kB / 485.2 MB, free: 41.63 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.035e-05/0.366, allocations: 16.66 kB / 485.2 MB, free: 41.63 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003224/0.3663, allocations: 253.9 kB / 485.4 MB, free: 41.54 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001195/0.3675, allocations: 1.49 MB / 486.9 MB, free: 40.38 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003668/0.3679, allocations: 199 kB / 487.1 MB, free: 40.29 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.306e-05/0.368, allocations: 64.89 kB / 487.2 MB, free: 40.25 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.41e-05/0.368, allocations: 2.203 kB / 487.2 MB, free: 40.25 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.952e-05/0.368, allocations: 41.88 kB / 487.2 MB, free: 40.2 MB / 446.1 MB Notification: Performance of pre-optimization done (n=19): time 1.362e-06/0.368, allocations: 0 / 487.2 MB, free: 40.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=19): time 0.0003758/0.3684, allocations: 219 kB / 487.5 MB, free: 40.09 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.751e-05/0.3684, allocations: 57.83 kB / 487.5 MB, free: 40.03 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001614/0.3686, allocations: 240.6 kB / 487.7 MB, free: 39.88 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.483e-05/0.3686, allocations: 29.7 kB / 487.8 MB, free: 39.85 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001018/0.3687, allocations: 274.8 kB / 488 MB, free: 39.62 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.377e-05/0.3687, allocations: 69.34 kB / 488.1 MB, free: 39.57 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.781e-05/0.3688, allocations: 50.39 kB / 488.2 MB, free: 39.54 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.028e-05/0.3688, allocations: 340.2 kB / 488.5 MB, free: 39.21 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.353e-05/0.3689, allocations: 54.14 kB / 488.5 MB, free: 39.19 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001054/0.369, allocations: 130.7 kB / 488.7 MB, free: 39.09 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001995/0.3692, allocations: 197.5 kB / 488.9 MB, free: 38.95 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.3692, allocations: 3.062 kB / 488.9 MB, free: 38.95 MB / 446.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002743/0.3695, allocations: 250.1 kB / 489.1 MB, free: 38.83 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.3695, allocations: 3.156 kB / 489.1 MB, free: 38.83 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.3695, allocations: 3.438 kB / 489.1 MB, free: 38.83 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.81e-05/0.3696, allocations: 3.469 kB / 489.1 MB, free: 38.83 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001645/0.3697, allocations: 43.38 kB / 489.2 MB, free: 38.82 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.215e-06/0.3697, allocations: 7.188 kB / 489.2 MB, free: 38.82 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.35e-05/0.3698, allocations: 24.47 kB / 489.2 MB, free: 38.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.36e-05/0.3698, allocations: 13.88 kB / 489.2 MB, free: 38.8 MB / 446.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.0001145/0.3699, allocations: 164.1 kB / 489.4 MB, free: 38.65 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.733e-05/0.37, allocations: 21.36 kB / 489.4 MB, free: 38.64 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.827e-05/0.37, allocations: 25.41 kB / 489.4 MB, free: 38.62 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.37, allocations: 6.844 kB / 489.4 MB, free: 38.62 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.678e-06/0.37, allocations: 0 / 489.4 MB, free: 38.62 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.37, allocations: 0 / 489.4 MB, free: 38.62 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002453/0.3703, allocations: 281 kB / 489.7 MB, free: 38.44 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.3703, allocations: 0 / 489.7 MB, free: 38.44 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001594/0.3704, allocations: 26.66 kB / 489.7 MB, free: 38.44 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.3704, allocations: 2.938 kB / 489.7 MB, free: 38.44 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.358e-05/0.3705, allocations: 8 kB / 489.7 MB, free: 38.43 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.3705, allocations: 0 / 489.7 MB, free: 38.43 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.3705, allocations: 4.656 kB / 489.7 MB, free: 38.43 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003457/0.3708, allocations: 346.1 kB / 490.1 MB, free: 38.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.714e-05/0.3708, allocations: 22.27 kB / 490.1 MB, free: 38.19 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.638e-05/0.3709, allocations: 13.42 kB / 490.1 MB, free: 38.18 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.997e-05/0.3709, allocations: 4 kB / 490.1 MB, free: 38.18 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.318e-05/0.371, allocations: 12.5 kB / 490.1 MB, free: 38.18 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.175e-06/0.371, allocations: 3.375 kB / 490.1 MB, free: 38.18 MB / 446.1 MB Notification: Performance of sorting global known variables: time 9.858e-05/0.3711, allocations: 166.3 kB / 490.3 MB, free: 38.07 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3711, allocations: 0 / 490.3 MB, free: 38.07 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003041/0.3714, allocations: 94.92 kB / 490.4 MB, free: 38.03 MB / 446.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.935e-05/0.3715, allocations: 98.38 kB / 490.5 MB, free: 37.93 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002556/0.3717, allocations: 149.7 kB / 490.6 MB, free: 37.88 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.3717, allocations: 0 / 490.6 MB, free: 37.88 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 8.215e-05/0.3718, allocations: 69.17 kB / 490.7 MB, free: 37.86 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003948/0.3722, allocations: 40.61 kB / 490.7 MB, free: 37.84 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008207/0.373, allocations: 0.659 MB / 491.4 MB, free: 37.42 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001344/0.3731, allocations: 214 kB / 491.6 MB, free: 37.33 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 7.233e-05/0.3732, allocations: 17.75 kB / 491.6 MB, free: 37.32 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.22e-05/0.3733, allocations: 18.16 kB / 491.6 MB, free: 37.31 MB / 446.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3733, allocations: 3.188 kB / 491.6 MB, free: 37.31 MB / 446.1 MB Notification: Performance of Templates: time 0.004357/0.3776, allocations: 1.442 MB / 493.1 MB, free: 37.11 MB / 446.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 ida -lv LOG_STATS > SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.631537666893564] Failed to read output from testmodel.py, exit status != 0: 0.3850223160116002 0.395043592 0.028715198 Calling exit ...