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.001413/0.001413, allocations: 79.86 kB / 19.18 MB, free: 2.527 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.001551/0.001551, allocations: 165.6 kB / 22.46 MB, free: 5.359 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.441/1.441, allocations: 177.1 MB / 202.8 MB, free: 9.195 MB / 190.1 MB " [Timeout remaining time 178] 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.1917/0.1917, allocations: 21.8 MB / 281 MB, free: 10.85 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: Performance of FrontEnd - loaded program: time 2.364e-06/2.364e-06, allocations: 0 / 418.2 MB, free: 13.55 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.906e-05/3.142e-05, allocations: 9.516 kB / 418.2 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Sugar_Cane): time 0.004631/0.004662, allocations: 1.848 MB / 420 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001061/0.005723, allocations: 330.7 kB / 420.4 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002639/0.005987, allocations: 7.938 kB / 420.4 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003169/0.006304, allocations: 79.12 kB / 420.4 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002046/0.006508, allocations: 31.5 kB / 420.5 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005038/0.007012, allocations: 167.8 kB / 420.6 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006787/0.007691, allocations: 392.5 kB / 421 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006048/0.008296, allocations: 238.5 kB / 421.2 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003854/0.008681, allocations: 235.4 kB / 421.5 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002369/0.008918, allocations: 123.5 kB / 421.6 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.537e-05/0.009013, allocations: 40 kB / 421.6 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.39e-05/0.009097, allocations: 40 kB / 421.7 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001372/0.009235, allocations: 103.6 kB / 421.8 MB, free: 9.922 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001934/0.009428, allocations: 127.6 kB / 421.9 MB, free: 9.797 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007244/0.01015, allocations: 438.3 kB / 422.3 MB, free: 9.367 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.01016, allocations: 3.938 kB / 422.3 MB, free: 9.363 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.01016, allocations: 0 / 422.3 MB, free: 9.363 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.354e-05/0.01017, allocations: 0 / 422.3 MB, free: 9.363 MB / 350.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.001074/0.01125, allocations: 0.6458 MB / 423 MB, free: 8.684 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.537e-05/0.01128, allocations: 8.031 kB / 423 MB, free: 8.676 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001044/0.01139, allocations: 64.56 kB / 423.1 MB, free: 8.613 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000556/0.01194, allocations: 285.7 kB / 423.3 MB, free: 8.305 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.767e-05/0.01199, allocations: 41.69 kB / 423.4 MB, free: 8.262 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.357e-05/0.01206, allocations: 48.38 kB / 423.4 MB, free: 8.215 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000771/0.01283, allocations: 484.8 kB / 423.9 MB, free: 7.711 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.553e-05/0.01285, allocations: 192 / 423.9 MB, free: 7.711 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.159e-05/0.0129, allocations: 20.38 kB / 423.9 MB, free: 7.691 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.447e-05/0.01294, allocations: 16.31 kB / 423.9 MB, free: 7.676 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005161/0.01345, allocations: 259.8 kB / 424.2 MB, free: 7.422 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002026/0.01548, allocations: 1.486 MB / 425.7 MB, free: 5.867 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005082/0.01599, allocations: 210 kB / 425.9 MB, free: 5.656 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001162/0.0161, allocations: 60.84 kB / 425.9 MB, free: 5.594 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.733e-05/0.01612, allocations: 4 kB / 425.9 MB, free: 5.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.234e-05/0.01616, allocations: 38.52 kB / 426 MB, free: 5.543 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.433e-06/0.01616, allocations: 0 / 426 MB, free: 5.543 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.0004598/0.01662, allocations: 220.5 kB / 426.2 MB, free: 5.324 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.272e-05/0.01667, allocations: 59.41 kB / 426.2 MB, free: 5.254 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002529/0.01692, allocations: 233.8 kB / 426.5 MB, free: 5.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.626e-05/0.01694, allocations: 29.7 kB / 426.5 MB, free: 4.984 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002/0.01714, allocations: 272.1 kB / 426.8 MB, free: 4.715 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.095e-05/0.01722, allocations: 75.38 kB / 426.8 MB, free: 4.641 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.049e-05/0.0173, allocations: 45.7 kB / 426.9 MB, free: 4.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000177/0.01747, allocations: 342.8 kB / 427.2 MB, free: 4.246 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001115/0.01758, allocations: 51.98 kB / 427.3 MB, free: 4.195 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001905/0.01778, allocations: 127.7 kB / 427.4 MB, free: 4.043 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003067/0.01808, allocations: 197.9 kB / 427.6 MB, free: 3.824 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.01808, allocations: 7.938 kB / 427.6 MB, free: 3.816 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004118/0.0185, allocations: 257.1 kB / 427.9 MB, free: 3.559 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/0.01851, allocations: 4 kB / 427.9 MB, free: 3.555 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.01852, allocations: 4 kB / 427.9 MB, free: 3.551 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.849e-05/0.01854, allocations: 7.938 kB / 427.9 MB, free: 3.543 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002193/0.01876, allocations: 43.92 kB / 427.9 MB, free: 3.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.24e-05/0.01877, allocations: 7.938 kB / 427.9 MB, free: 3.492 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.996e-05/0.01887, allocations: 16.14 kB / 427.9 MB, free: 3.477 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.933e-05/0.01889, allocations: 16 kB / 427.9 MB, free: 3.461 MB / 350.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.000171/0.01906, allocations: 153.7 kB / 428.1 MB, free: 3.301 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.183e-05/0.01911, allocations: 27.75 kB / 428.1 MB, free: 3.273 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.354e-05/0.01919, allocations: 30.11 kB / 428.2 MB, free: 3.238 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.01919, allocations: 4 kB / 428.2 MB, free: 3.234 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.01919, allocations: 0 / 428.2 MB, free: 3.234 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.0192, allocations: 0 / 428.2 MB, free: 3.234 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003631/0.01956, allocations: 273.2 kB / 428.4 MB, free: 2.938 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.01956, allocations: 0 / 428.4 MB, free: 2.938 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001862/0.01975, allocations: 31.92 kB / 428.5 MB, free: 2.906 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.01975, allocations: 4 kB / 428.5 MB, free: 2.902 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.812e-05/0.01977, allocations: 8 kB / 428.5 MB, free: 2.895 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.947e-06/0.01977, allocations: 4 kB / 428.5 MB, free: 2.891 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.01978, allocations: 0 / 428.5 MB, free: 2.891 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004804/0.02026, allocations: 350.5 kB / 428.8 MB, free: 2.535 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.825e-05/0.02029, allocations: 27.73 kB / 428.8 MB, free: 2.508 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.71e-05/0.02032, allocations: 4 kB / 428.8 MB, free: 2.504 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.373e-05/0.02041, allocations: 0 / 428.8 MB, free: 2.504 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.106e-05/0.02045, allocations: 12.02 kB / 428.9 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.031e-05/0.02046, allocations: 8 kB / 428.9 MB, free: 2.484 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001661/0.02062, allocations: 165.2 kB / 429 MB, free: 2.324 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.02062, allocations: 4 kB / 429 MB, free: 2.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003499/0.02097, allocations: 87.52 kB / 429.1 MB, free: 2.234 MB / 350.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 0.0001185/0.02109, allocations: 99.19 kB / 429.2 MB, free: 2.129 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003114/0.0214, allocations: 144.6 kB / 429.4 MB, free: 1.988 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.0214, allocations: 0 / 429.4 MB, free: 1.988 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001122/0.02152, allocations: 67.92 kB / 429.4 MB, free: 1.922 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003786/0.02189, allocations: 36.97 kB / 429.5 MB, free: 1.887 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001059/0.02295, allocations: 0.6504 MB / 430.1 MB, free: 1.207 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002279/0.02318, allocations: 206.7 kB / 430.3 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.043e-05/0.02327, allocations: 21.92 kB / 430.3 MB, free: 0.957 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.642e-05/0.02333, allocations: 20.5 kB / 430.3 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of SimCode: time 9.72e-07/0.02333, allocations: 4 kB / 430.4 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of Templates: time 0.005222/0.02855, allocations: 1.454 MB / 431.8 MB, free: 15.5 MB / 366.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.400007490068674] Failed to read output from testmodel.py, exit status != 0: 0.03859774023294449 0.053066333 0.039494437 Calling exit ...