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.00139/0.00139, allocations: 109.5 kB / 17.08 MB, free: 6.008 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.001575/0.001575, allocations: 194.2 kB / 20.03 MB, free: 3.082 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.455/1.455, allocations: 222.9 MB / 245.7 MB, free: 4.223 MB / 190.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.3898/0.3898, allocations: 28.8 MB / 326.7 MB, free: 5.129 MB / 254.1 MB " [Timeout remaining time 179] 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.002265/0.002265, allocations: 64.42 kB / 453.7 MB, free: 29.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.1221, allocations: 56.41 MB / 0.4981 GB, free: 6.902 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Sugar_Cane): time 0.003748/0.1259, allocations: 2.125 MB / 0.5002 GB, free: 4.777 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007236/0.1266, allocations: 326.8 kB / 0.5005 GB, free: 4.457 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000178/0.1268, allocations: 7.938 kB / 0.5005 GB, free: 4.449 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002348/0.1271, allocations: 67.25 kB / 0.5006 GB, free: 4.383 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001284/0.1272, allocations: 43.47 kB / 0.5006 GB, free: 4.34 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003401/0.1276, allocations: 163.8 kB / 0.5008 GB, free: 4.18 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004766/0.1281, allocations: 404.4 kB / 0.5012 GB, free: 3.781 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000498/0.1286, allocations: 342 kB / 0.5015 GB, free: 3.43 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001509/0.1287, allocations: 151.3 kB / 0.5017 GB, free: 3.281 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001987/0.1289, allocations: 186.9 kB / 0.5018 GB, free: 3.098 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.39e-05/0.129, allocations: 40 kB / 0.5019 GB, free: 3.059 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.371e-05/0.1291, allocations: 44 kB / 0.5019 GB, free: 3.016 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.893e-05/0.1291, allocations: 103.6 kB / 0.502 GB, free: 2.914 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001888/0.1293, allocations: 210.7 kB / 0.5022 GB, free: 2.707 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005105/0.1299, allocations: 441.8 kB / 0.5026 GB, free: 2.273 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.1299, allocations: 0 / 0.5026 GB, free: 2.273 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.987e-06/0.1299, allocations: 0 / 0.5026 GB, free: 2.273 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.368e-05/0.1299, allocations: 3.938 kB / 0.5026 GB, free: 2.27 MB / 366.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.001026/0.1309, allocations: 0.7249 MB / 0.5033 GB, free: 1.492 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.312e-05/0.131, allocations: 12.03 kB / 0.5034 GB, free: 1.48 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001003/0.1311, allocations: 60.56 kB / 0.5034 GB, free: 1.422 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004953/0.1316, allocations: 344.4 kB / 0.5037 GB, free: 1.043 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.05e-05/0.1317, allocations: 37.69 kB / 0.5038 GB, free: 1.008 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.563e-05/0.1318, allocations: 52.38 kB / 0.5038 GB, free: 0.957 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007254/0.1325, allocations: 480.8 kB / 0.5043 GB, free: 464 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.706e-05/0.1325, allocations: 192 / 0.5043 GB, free: 464 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.967e-05/0.1326, allocations: 27.94 kB / 0.5043 GB, free: 436 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.229e-05/0.1326, allocations: 15.98 kB / 0.5043 GB, free: 420 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004509/0.133, allocations: 251.8 kB / 0.5046 GB, free: 168 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002133/0.1352, allocations: 1.751 MB / 0.5063 GB, free: 14.33 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004807/0.1357, allocations: 210.8 kB / 0.5065 GB, free: 14.11 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001077/0.1358, allocations: 64.78 kB / 0.5065 GB, free: 14.05 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.353e-05/0.1358, allocations: 7.938 kB / 0.5065 GB, free: 14.04 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.853e-05/0.1359, allocations: 34.56 kB / 0.5066 GB, free: 14 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 1.523e-06/0.1359, allocations: 0 / 0.5066 GB, free: 14 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.0004609/0.1364, allocations: 235.8 kB / 0.5068 GB, free: 13.76 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.147e-05/0.1364, allocations: 51.41 kB / 0.5069 GB, free: 13.7 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003652/0.1368, allocations: 345.6 kB / 0.5072 GB, free: 13.36 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.39e-05/0.1368, allocations: 29.7 kB / 0.5072 GB, free: 13.32 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000223/0.137, allocations: 260.2 kB / 0.5075 GB, free: 13.06 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.289e-05/0.1371, allocations: 67.38 kB / 0.5075 GB, free: 13 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.453e-05/0.1372, allocations: 61.59 kB / 0.5076 GB, free: 12.93 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001861/0.1374, allocations: 346.7 kB / 0.5079 GB, free: 12.58 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001156/0.1375, allocations: 63.98 kB / 0.508 GB, free: 12.52 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000167/0.1377, allocations: 124.2 kB / 0.5081 GB, free: 12.37 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002927/0.138, allocations: 195.6 kB / 0.5083 GB, free: 12.15 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.138, allocations: 0 / 0.5083 GB, free: 12.15 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004029/0.1384, allocations: 261 kB / 0.5085 GB, free: 11.89 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.131e-05/0.1384, allocations: 8 kB / 0.5085 GB, free: 11.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.1385, allocations: 0 / 0.5085 GB, free: 11.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.834e-05/0.1385, allocations: 4 kB / 0.5085 GB, free: 11.88 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001943/0.1387, allocations: 43.92 kB / 0.5086 GB, free: 11.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.029e-05/0.1387, allocations: 7.938 kB / 0.5086 GB, free: 11.83 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001128/0.1388, allocations: 31.73 kB / 0.5086 GB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.814e-05/0.1388, allocations: 12.25 kB / 0.5086 GB, free: 11.79 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.0001777/0.139, allocations: 169.6 kB / 0.5088 GB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.503e-05/0.1391, allocations: 31.77 kB / 0.5088 GB, free: 11.58 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.908e-05/0.1392, allocations: 39.33 kB / 0.5089 GB, free: 11.54 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-06/0.1392, allocations: 0 / 0.5089 GB, free: 11.54 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.1392, allocations: 0 / 0.5089 GB, free: 11.54 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.1392, allocations: 0 / 0.5089 GB, free: 11.54 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004672/0.1397, allocations: 397.3 kB / 0.5092 GB, free: 11.1 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.1397, allocations: 0 / 0.5092 GB, free: 11.1 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001751/0.1399, allocations: 35.92 kB / 0.5093 GB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.641e-06/0.1399, allocations: 8 kB / 0.5093 GB, free: 11.06 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.373e-05/0.1399, allocations: 0 / 0.5093 GB, free: 11.06 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.983e-06/0.1399, allocations: 0 / 0.5093 GB, free: 11.06 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1399, allocations: 0 / 0.5093 GB, free: 11.06 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004796/0.1404, allocations: 363.1 kB / 0.5096 GB, free: 10.69 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.792e-05/0.1405, allocations: 116.8 kB / 0.5097 GB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.011e-05/0.1405, allocations: 4 kB / 0.5097 GB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.341e-05/0.1406, allocations: 0 / 0.5097 GB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.391e-05/0.1407, allocations: 19.98 kB / 0.5098 GB, free: 10.53 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.598e-06/0.1407, allocations: 7.938 kB / 0.5098 GB, free: 10.52 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002517/0.1409, allocations: 239.2 kB / 0.51 GB, free: 10.29 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1409, allocations: 0 / 0.51 GB, free: 10.29 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003172/0.1413, allocations: 79.67 kB / 0.5101 GB, free: 10.21 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 0.0001065/0.1414, allocations: 95.25 kB / 0.5102 GB, free: 10.11 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003135/0.1417, allocations: 162.9 kB / 0.5103 GB, free: 9.953 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.1417, allocations: 4.125 kB / 0.5103 GB, free: 9.949 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000104/0.1418, allocations: 67.92 kB / 0.5104 GB, free: 9.883 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004029/0.1422, allocations: 44.55 kB / 0.5104 GB, free: 9.844 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001147/0.1434, allocations: 0.7134 MB / 0.5111 GB, free: 9.094 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004934/0.1439, allocations: 0.8145 MB / 0.5119 GB, free: 8.25 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.371e-05/0.144, allocations: 27.44 kB / 0.512 GB, free: 8.223 MB / 382.1 MB Notification: Performance of SimCode: time 2.3e-07/0.144, allocations: 0 / 0.512 GB, free: 8.223 MB / 382.1 MB Notification: Performance of Templates: time 0.006782/0.1508, allocations: 3.736 MB / 0.5156 GB, free: 4.477 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: 7.524172133998945] Failed to read output from testmodel.py, exit status != 0: 0.15789356781169772 0.171348054 0.038960623 Calling exit ...