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.001022/0.001022, allocations: 92.22 kB / 19.65 MB, free: 280 kB / 13.93 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.00111/0.00111, allocations: 169 kB / 23.02 MB, free: 1.551 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 1.148/1.148, allocations: 177.1 MB / 203.4 MB, free: 5.621 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.1589/0.1589, allocations: 21.8 MB / 281.7 MB, free: 7.18 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 5.04e-06/5.04e-06, allocations: 0 / 358.7 MB, free: 5.137 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.079e-05/3.583e-05, allocations: 2.312 kB / 358.7 MB, free: 5.133 MB / 330.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Sugar_Cane): time 0.002851/0.002887, allocations: 1.91 MB / 360.7 MB, free: 3.219 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007854/0.003672, allocations: 330.6 kB / 361 MB, free: 2.895 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002039/0.003876, allocations: 7.938 kB / 361 MB, free: 2.887 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001964/0.004072, allocations: 79.17 kB / 361.1 MB, free: 2.809 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 9.456e-05/0.004167, allocations: 31.5 kB / 361.1 MB, free: 2.777 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002907/0.004458, allocations: 163.8 kB / 361.2 MB, free: 2.617 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003772/0.004835, allocations: 400.4 kB / 361.6 MB, free: 2.227 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004018/0.005237, allocations: 238.5 kB / 361.9 MB, free: 1.984 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001811/0.005418, allocations: 227.5 kB / 362.1 MB, free: 1.762 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001281/0.005546, allocations: 123.5 kB / 362.2 MB, free: 1.641 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 6.229e-05/0.005608, allocations: 44 kB / 362.3 MB, free: 1.598 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.443e-05/0.005643, allocations: 43.94 kB / 362.3 MB, free: 1.555 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 6.709e-05/0.00571, allocations: 103.6 kB / 362.4 MB, free: 1.453 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001045/0.005814, allocations: 123.6 kB / 362.5 MB, free: 1.332 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00036/0.006174, allocations: 302.5 kB / 362.8 MB, free: 1.035 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.229e-06/0.006179, allocations: 3.938 kB / 362.8 MB, free: 1.031 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.006181, allocations: 0 / 362.8 MB, free: 1.031 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.187e-06/0.00619, allocations: 0 / 362.8 MB, free: 1.031 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.0009208/0.007111, allocations: 0.7457 MB / 363.6 MB, free: 252 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.403e-05/0.007175, allocations: 12.03 kB / 363.6 MB, free: 240 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001279/0.007303, allocations: 96.55 kB / 363.7 MB, free: 144 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004503/0.007753, allocations: 296.6 kB / 364 MB, free: 15.82 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.603e-05/0.007789, allocations: 41.69 kB / 364 MB, free: 15.78 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.819e-05/0.007858, allocations: 52.38 kB / 364.1 MB, free: 15.73 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005228/0.00838, allocations: 430.2 kB / 364.5 MB, free: 15.26 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.418e-05/0.008395, allocations: 192 / 364.5 MB, free: 15.26 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.742e-05/0.008422, allocations: 20.38 kB / 364.5 MB, free: 15.24 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.65e-05/0.008439, allocations: 12.38 kB / 364.5 MB, free: 15.23 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002623/0.008701, allocations: 173.7 kB / 364.7 MB, free: 15.06 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001768/0.01047, allocations: 1.909 MB / 366.6 MB, free: 13.07 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004246/0.01089, allocations: 167.2 kB / 366.8 MB, free: 12.89 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.187e-05/0.01095, allocations: 47.66 kB / 366.8 MB, free: 12.84 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.551e-05/0.01097, allocations: 4 kB / 366.8 MB, free: 12.84 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.251e-05/0.011, allocations: 41.39 kB / 366.8 MB, free: 12.79 MB / 346.7 MB Notification: Performance of pre-optimization done (n=19): time 2.444e-06/0.01101, allocations: 0 / 366.8 MB, free: 12.79 MB / 346.7 MB Notification: Performance of matching and sorting (n=19): time 0.0003559/0.01136, allocations: 164.4 kB / 367 MB, free: 12.62 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.4e-05/0.01142, allocations: 59.34 kB / 367.1 MB, free: 12.55 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002593/0.01167, allocations: 276.3 kB / 367.3 MB, free: 12.27 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.366e-05/0.0117, allocations: 33.7 kB / 367.4 MB, free: 12.23 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002242/0.01192, allocations: 326.8 kB / 367.7 MB, free: 11.91 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.143e-05/0.01197, allocations: 67.39 kB / 367.7 MB, free: 11.84 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.294e-05/0.01207, allocations: 59.36 kB / 367.8 MB, free: 11.77 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002159/0.01228, allocations: 0.504 MB / 368.3 MB, free: 11.26 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.995e-05/0.01235, allocations: 31.97 kB / 368.3 MB, free: 11.23 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001524/0.01251, allocations: 125.1 kB / 368.5 MB, free: 11.07 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002016/0.01271, allocations: 179.7 kB / 368.6 MB, free: 10.86 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.01271, allocations: 4 kB / 368.6 MB, free: 10.85 MB / 346.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002624/0.01297, allocations: 202.1 kB / 368.8 MB, free: 10.65 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.1e-05/0.013, allocations: 8 kB / 368.8 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/0.01301, allocations: 0 / 368.8 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.762e-05/0.01304, allocations: 7.938 kB / 368.9 MB, free: 10.63 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001513/0.01319, allocations: 51.91 kB / 368.9 MB, free: 10.58 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.494e-05/0.01321, allocations: 8.188 kB / 368.9 MB, free: 10.57 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.759e-05/0.01328, allocations: 27.78 kB / 368.9 MB, free: 10.55 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.477e-05/0.01329, allocations: 8 kB / 368.9 MB, free: 10.54 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.0001593/0.01345, allocations: 172.5 kB / 369.1 MB, free: 10.36 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.962e-05/0.01349, allocations: 31.8 kB / 369.1 MB, free: 10.33 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.996e-05/0.01355, allocations: 30.11 kB / 369.2 MB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.01355, allocations: 4 kB / 369.2 MB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.78e-05/0.01357, allocations: 0 / 369.2 MB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.01358, allocations: 0 / 369.2 MB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003036/0.01388, allocations: 276.4 kB / 369.5 MB, free: 9.984 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.01388, allocations: 0 / 369.5 MB, free: 9.984 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001402/0.01402, allocations: 35.92 kB / 369.5 MB, free: 9.949 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.662e-06/0.01403, allocations: 4 kB / 369.5 MB, free: 9.945 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.181e-05/0.01406, allocations: 4 kB / 369.5 MB, free: 9.941 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.01407, allocations: 0 / 369.5 MB, free: 9.941 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.01407, allocations: 3.938 kB / 369.5 MB, free: 9.938 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003818/0.01445, allocations: 327.7 kB / 369.8 MB, free: 9.598 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.849e-05/0.01449, allocations: 23.8 kB / 369.8 MB, free: 9.574 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.829e-05/0.01453, allocations: 4 kB / 369.8 MB, free: 9.57 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.885e-05/0.01459, allocations: 4 kB / 369.8 MB, free: 9.566 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.112e-05/0.01462, allocations: 11.97 kB / 369.9 MB, free: 9.555 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.062e-05/0.01463, allocations: 12 kB / 369.9 MB, free: 9.543 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001111/0.01474, allocations: 189.1 kB / 370.1 MB, free: 9.359 MB / 346.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01474, allocations: 0 / 370.1 MB, free: 9.359 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002658/0.015, allocations: 91.52 kB / 370.1 MB, free: 9.27 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 0.0001302/0.01513, allocations: 95.19 kB / 370.2 MB, free: 9.168 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002492/0.01538, allocations: 116.5 kB / 370.4 MB, free: 9.051 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.948e-06/0.01539, allocations: 0 / 370.4 MB, free: 9.051 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.901e-05/0.01546, allocations: 66.64 kB / 370.4 MB, free: 8.984 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003751/0.01583, allocations: 40.47 kB / 370.5 MB, free: 8.945 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001033/0.01686, allocations: 0.6332 MB / 371.1 MB, free: 8.277 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.756e-05/0.01696, allocations: 100.2 kB / 371.2 MB, free: 8.156 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 8.265e-05/0.01704, allocations: 17.95 kB / 371.2 MB, free: 8.141 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.601e-05/0.0171, allocations: 20.44 kB / 371.2 MB, free: 8.121 MB / 346.7 MB Notification: Performance of SimCode: time 1.392e-06/0.0171, allocations: 0 / 371.2 MB, free: 8.121 MB / 346.7 MB Notification: Performance of Templates: time 0.004815/0.02192, allocations: 1.532 MB / 372.8 MB, free: 6.609 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=240 -lv LOG_STATS > SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.1991075766272843]