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.001561/0.001561, allocations: 106.2 kB / 16.36 MB, free: 6.289 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.001266/0.001266, allocations: 192.5 kB / 17.29 MB, free: 5.863 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.42/1.42, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1751/0.1751, allocations: 28.78 MB / 319.9 MB, free: 1.922 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001459/0.001459, allocations: 65.39 kB / 388 MB, free: 40.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09845/0.09993, allocations: 56.43 MB / 444.4 MB, free: 3.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Sugar_Cane): time 0.004012/0.104, allocations: 2.11 MB / 446.5 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008818/0.1049, allocations: 338.7 kB / 446.9 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000189/0.1051, allocations: 4 kB / 446.9 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002243/0.1053, allocations: 71.19 kB / 446.9 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001107/0.1055, allocations: 47.42 kB / 447 MB, free: 0.5 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003169/0.1058, allocations: 159.8 kB / 447.1 MB, free: 352 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003967/0.1062, allocations: 400.6 kB / 447.5 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00043/0.1067, allocations: 342 kB / 447.9 MB, free: 15.6 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001217/0.1068, allocations: 143.4 kB / 448 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000162/0.107, allocations: 186.9 kB / 448.2 MB, free: 15.28 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.253e-05/0.107, allocations: 40 kB / 448.2 MB, free: 15.24 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.279e-05/0.1071, allocations: 48 kB / 448.3 MB, free: 15.19 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.282e-05/0.1071, allocations: 95.62 kB / 448.4 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001444/0.1073, allocations: 210.7 kB / 448.6 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003745/0.1077, allocations: 446 kB / 449 MB, free: 14.45 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.1077, allocations: 0 / 449 MB, free: 14.45 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1077, allocations: 3.938 kB / 449 MB, free: 14.45 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.482e-06/0.1077, allocations: 0 / 449 MB, free: 14.45 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.0008605/0.1086, allocations: 0.7217 MB / 449.7 MB, free: 13.68 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.833e-05/0.1086, allocations: 8.031 kB / 449.7 MB, free: 13.67 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.482e-05/0.1087, allocations: 56.28 kB / 449.8 MB, free: 13.61 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004682/0.1092, allocations: 340.2 kB / 450.1 MB, free: 13.24 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.332e-05/0.1092, allocations: 37.69 kB / 450.2 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.789e-05/0.1093, allocations: 56.38 kB / 450.2 MB, free: 13.15 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006533/0.11, allocations: 484.7 kB / 450.7 MB, free: 12.64 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.375e-05/0.11, allocations: 192 / 450.7 MB, free: 12.64 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.63e-05/0.11, allocations: 31.92 kB / 450.7 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.441e-05/0.1101, allocations: 19.94 kB / 450.8 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004138/0.1105, allocations: 251.8 kB / 451 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001748/0.1122, allocations: 1.731 MB / 452.7 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004299/0.1127, allocations: 218 kB / 452.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.946e-05/0.1128, allocations: 64.84 kB / 453 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.104e-05/0.1128, allocations: 4 kB / 453 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.898e-05/0.1128, allocations: 34.56 kB / 453 MB, free: 10.19 MB / 334.1 MB Notification: Performance of pre-optimization done (n=19): time 1.353e-06/0.1129, allocations: 0 / 453 MB, free: 10.19 MB / 334.1 MB Notification: Performance of matching and sorting (n=19): time 0.0003992/0.1133, allocations: 231.8 kB / 453.3 MB, free: 9.961 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.678e-05/0.1133, allocations: 51.41 kB / 453.3 MB, free: 9.898 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003182/0.1136, allocations: 341.6 kB / 453.7 MB, free: 9.555 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.841e-05/0.1137, allocations: 29.7 kB / 453.7 MB, free: 9.52 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001561/0.1138, allocations: 259.6 kB / 453.9 MB, free: 9.262 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.241e-05/0.1139, allocations: 71 kB / 454 MB, free: 9.191 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.908e-05/0.114, allocations: 53.7 kB / 454.1 MB, free: 9.133 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001346/0.1141, allocations: 350.7 kB / 454.4 MB, free: 8.781 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.975e-05/0.1142, allocations: 55.97 kB / 454.5 MB, free: 8.727 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001501/0.1144, allocations: 132.1 kB / 454.6 MB, free: 8.57 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002605/0.1146, allocations: 206 kB / 454.8 MB, free: 8.344 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.1147, allocations: 4 kB / 454.8 MB, free: 8.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003485/0.115, allocations: 252.3 kB / 455 MB, free: 8.09 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.115, allocations: 8 kB / 455 MB, free: 8.082 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.115, allocations: 0 / 455 MB, free: 8.082 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.1151, allocations: 4 kB / 455 MB, free: 8.078 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001769/0.1152, allocations: 43.92 kB / 455.1 MB, free: 8.035 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.516e-06/0.1153, allocations: 8.25 kB / 455.1 MB, free: 8.027 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001041/0.1154, allocations: 35.53 kB / 455.1 MB, free: 7.992 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.924e-05/0.1154, allocations: 16 kB / 455.1 MB, free: 7.977 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.0001675/0.1156, allocations: 161.6 kB / 455.3 MB, free: 7.809 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.802e-05/0.1156, allocations: 27.62 kB / 455.3 MB, free: 7.781 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.325e-05/0.1157, allocations: 39.33 kB / 455.4 MB, free: 7.746 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.1157, allocations: 4 kB / 455.4 MB, free: 7.742 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.431e-06/0.1157, allocations: 0 / 455.4 MB, free: 7.742 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.1157, allocations: 0 / 455.4 MB, free: 7.742 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004001/0.1161, allocations: 405.2 kB / 455.8 MB, free: 7.297 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.1161, allocations: 0 / 455.8 MB, free: 7.297 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001726/0.1163, allocations: 35.86 kB / 455.8 MB, free: 7.262 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.1163, allocations: 0 / 455.8 MB, free: 7.262 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.587e-05/0.1163, allocations: 8 kB / 455.8 MB, free: 7.254 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.1163, allocations: 0 / 455.8 MB, free: 7.254 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1164, allocations: 0 / 455.8 MB, free: 7.254 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004237/0.1168, allocations: 354.1 kB / 456.2 MB, free: 6.895 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.232e-05/0.1169, allocations: 108.7 kB / 456.3 MB, free: 6.77 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.019e-05/0.1169, allocations: 12 kB / 456.3 MB, free: 6.758 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001006/0.117, allocations: 4 kB / 456.3 MB, free: 6.754 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.469e-05/0.117, allocations: 7.984 kB / 456.3 MB, free: 6.746 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.765e-06/0.1171, allocations: 4 kB / 456.3 MB, free: 6.742 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002202/0.1173, allocations: 247.2 kB / 456.5 MB, free: 6.5 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.633e-06/0.1173, allocations: 0 / 456.5 MB, free: 6.5 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003087/0.1176, allocations: 75.5 kB / 456.6 MB, free: 6.426 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.009e-05/0.1177, allocations: 102.6 kB / 456.7 MB, free: 6.32 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000282/0.118, allocations: 159.8 kB / 456.9 MB, free: 6.164 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.118, allocations: 0 / 456.9 MB, free: 6.164 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.724e-05/0.1181, allocations: 79.86 kB / 456.9 MB, free: 6.086 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003914/0.1185, allocations: 45.34 kB / 457 MB, free: 6.043 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009656/0.1195, allocations: 0.6467 MB / 457.6 MB, free: 5.371 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003632/0.1199, allocations: 0.8189 MB / 458.5 MB, free: 4.523 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.052e-05/0.12, allocations: 30.97 kB / 458.5 MB, free: 4.492 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.663e-05/0.12, allocations: 23.44 kB / 458.5 MB, free: 4.469 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.12, allocations: 0 / 458.5 MB, free: 4.469 MB / 334.1 MB Notification: Performance of Templates: time 0.004993/0.125, allocations: 2.037 MB / 460.5 MB, free: 2.438 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 gbode -lv LOG_STATS > SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane.pipe 2>&1)