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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo", uses=false) 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=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane") translateModel(SystemDynamics.IntroductoryExamples.Sugar_Cane,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001089/0.001089, allocations: 110.9 kB / 16.37 MB, free: 6.469 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001078/0.001078, allocations: 189.9 kB / 17.3 MB, free: 5.828 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.393/1.393, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2044/0.2044, allocations: 28.77 MB / 319.9 MB, free: 1.934 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001351/0.001351, allocations: 65.53 kB / 388 MB, free: 40.78 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1234, allocations: 56.43 MB / 444.4 MB, free: 3.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Sugar_Cane): time 0.003714/0.1271, allocations: 2.117 MB / 446.6 MB, free: 0.957 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007247/0.1279, allocations: 338.7 kB / 446.9 MB, free: 0.625 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001787/0.1281, allocations: 7.938 kB / 446.9 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002053/0.1283, allocations: 71.23 kB / 447 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001121/0.1284, allocations: 35.5 kB / 447 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003121/0.1287, allocations: 163.8 kB / 447.2 MB, free: 360 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004292/0.1292, allocations: 404.5 kB / 447.6 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004496/0.1296, allocations: 326.1 kB / 447.9 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001314/0.1298, allocations: 155.3 kB / 448 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001628/0.1299, allocations: 182.9 kB / 448.2 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.735e-05/0.13, allocations: 40 kB / 448.2 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.818e-05/0.1301, allocations: 44 kB / 448.3 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.828e-05/0.1302, allocations: 99.62 kB / 448.4 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001551/0.1303, allocations: 210.7 kB / 448.6 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004024/0.1307, allocations: 450 kB / 449 MB, free: 14.46 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.1307, allocations: 4 kB / 449 MB, free: 14.46 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.1308, allocations: 0 / 449 MB, free: 14.46 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.786e-06/0.1308, allocations: 0 / 449 MB, free: 14.46 MB / 334.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.0008555/0.1316, allocations: 0.71 MB / 449.7 MB, free: 13.7 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.1317, allocations: 8.031 kB / 449.8 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.716e-05/0.1318, allocations: 56.28 kB / 449.8 MB, free: 13.63 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004384/0.1322, allocations: 356.1 kB / 450.2 MB, free: 13.24 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.557e-05/0.1323, allocations: 41.69 kB / 450.2 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.495e-05/0.1324, allocations: 52.38 kB / 450.2 MB, free: 13.15 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006623/0.133, allocations: 484.7 kB / 450.7 MB, free: 12.64 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.323e-05/0.133, allocations: 192 / 450.7 MB, free: 12.64 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.67e-05/0.1331, allocations: 27.94 kB / 450.7 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.28e-05/0.1331, allocations: 12 kB / 450.8 MB, free: 12.6 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004087/0.1335, allocations: 255.8 kB / 451 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001837/0.1354, allocations: 1.731 MB / 452.7 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004596/0.1358, allocations: 221.5 kB / 453 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001006/0.1359, allocations: 64.78 kB / 453 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.113e-05/0.136, allocations: 4 kB / 453 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.428e-05/0.136, allocations: 30.56 kB / 453.1 MB, free: 10.21 MB / 334.1 MB Notification: Performance of pre-optimization done (n=19): time 1.733e-06/0.136, allocations: 3.938 kB / 453.1 MB, free: 10.2 MB / 334.1 MB Notification: Performance of matching and sorting (n=19): time 0.0004199/0.1364, allocations: 237.2 kB / 453.3 MB, free: 9.965 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.514e-05/0.1365, allocations: 55.41 kB / 453.3 MB, free: 9.898 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003327/0.1368, allocations: 337.6 kB / 453.7 MB, free: 9.559 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.241e-05/0.1369, allocations: 33.7 kB / 453.7 MB, free: 9.52 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001673/0.137, allocations: 259.6 kB / 454 MB, free: 9.262 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.903e-05/0.1371, allocations: 63.02 kB / 454 MB, free: 9.199 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.243e-05/0.1372, allocations: 53.7 kB / 454.1 MB, free: 9.141 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001471/0.1373, allocations: 350.7 kB / 454.4 MB, free: 8.789 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001039/0.1375, allocations: 63.97 kB / 454.5 MB, free: 8.727 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001376/0.1376, allocations: 124.2 kB / 454.6 MB, free: 8.578 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002575/0.1379, allocations: 202 kB / 454.8 MB, free: 8.355 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.1379, allocations: 0 / 454.8 MB, free: 8.355 MB / 334.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003644/0.1382, allocations: 256.3 kB / 455 MB, free: 8.102 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.1383, allocations: 8 kB / 455.1 MB, free: 8.094 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.1383, allocations: 0 / 455.1 MB, free: 8.094 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.662e-05/0.1383, allocations: 4 kB / 455.1 MB, free: 8.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001792/0.1385, allocations: 47.92 kB / 455.1 MB, free: 8.043 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.528e-06/0.1385, allocations: 4 kB / 455.1 MB, free: 8.039 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001075/0.1386, allocations: 35.53 kB / 455.1 MB, free: 8.004 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.727e-05/0.1386, allocations: 11.98 kB / 455.2 MB, free: 7.992 MB / 334.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.0001576/0.1388, allocations: 165.9 kB / 455.3 MB, free: 7.82 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.694e-05/0.1389, allocations: 27.62 kB / 455.3 MB, free: 7.793 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.575e-05/0.1389, allocations: 35.33 kB / 455.4 MB, free: 7.762 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.1389, allocations: 4 kB / 455.4 MB, free: 7.758 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.1389, allocations: 0 / 455.4 MB, free: 7.758 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.139, allocations: 0 / 455.4 MB, free: 7.758 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004149/0.1394, allocations: 401.2 kB / 455.8 MB, free: 7.316 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.1394, allocations: 0 / 455.8 MB, free: 7.316 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001717/0.1396, allocations: 31.92 kB / 455.8 MB, free: 7.285 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.2e-06/0.1396, allocations: 8 kB / 455.8 MB, free: 7.277 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.608e-05/0.1396, allocations: 8 kB / 455.8 MB, free: 7.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.1396, allocations: 0 / 455.8 MB, free: 7.27 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.1396, allocations: 0 / 455.8 MB, free: 7.27 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000468/0.1401, allocations: 362 kB / 456.2 MB, free: 6.902 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.439e-05/0.1402, allocations: 116.6 kB / 456.3 MB, free: 6.77 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.992e-05/0.1402, allocations: 4 kB / 456.3 MB, free: 6.766 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.918e-05/0.1403, allocations: 0 / 456.3 MB, free: 6.766 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.649e-05/0.1403, allocations: 11.98 kB / 456.3 MB, free: 6.754 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.197e-06/0.1404, allocations: 8 kB / 456.3 MB, free: 6.746 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002243/0.1406, allocations: 243.2 kB / 456.5 MB, free: 6.508 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1406, allocations: 0 / 456.5 MB, free: 6.508 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003358/0.1409, allocations: 79.5 kB / 456.6 MB, free: 6.43 MB / 334.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 9.552e-05/0.141, allocations: 99.19 kB / 456.7 MB, free: 6.324 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003166/0.1414, allocations: 159.8 kB / 456.9 MB, free: 6.168 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.1414, allocations: 0.5 kB / 456.9 MB, free: 6.168 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.902e-05/0.1415, allocations: 75.92 kB / 457 MB, free: 6.094 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004074/0.1419, allocations: 41.41 kB / 457 MB, free: 6.055 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001054/0.143, allocations: 0.6622 MB / 457.7 MB, free: 5.367 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004127/0.1434, allocations: 0.8067 MB / 458.5 MB, free: 4.531 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.022e-05/0.1435, allocations: 30.97 kB / 458.5 MB, free: 4.5 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.708e-05/0.1436, allocations: 23.44 kB / 458.5 MB, free: 4.477 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1436, allocations: 0 / 458.5 MB, free: 4.477 MB / 334.1 MB Notification: Performance of Templates: time 0.005399/0.149, allocations: 2.029 MB / 460.5 MB, free: 2.453 MB / 334.1 MB make -j1 -f SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane.makefile (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 cvode -lv LOG_STATS > SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane.pipe 2>&1)