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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0009281/0.0009282, allocations: 173.9 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.255/1.255, allocations: 221.5 MB / 229.6 MB, free: 7.586 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008206/0.0008207, allocations: 89.73 kB / 280.5 MB, free: 5.328 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1544/0.1544, allocations: 28.84 MB / 360.1 MB, free: 2.207 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.58e-05/1.582e-05, allocations: 4 kB / 423.8 MB, free: 32.21 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1022, allocations: 57.48 MB / 481.2 MB, free: 6.84 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3464/0.4487, allocations: 78.46 MB / 0.5466 GB, free: 11 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001797/0.4489, allocations: 58.28 kB / 0.5466 GB, free: 11 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01168/0.4606, allocations: 5.872 MB / 0.5524 GB, free: 10.24 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.233e-06/0.4606, allocations: 0 / 0.5524 GB, free: 10.24 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.432e-05/0.4607, allocations: 15.38 kB / 0.5524 GB, free: 10.23 MB / 362.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.0005827/0.4613, allocations: 0.6158 MB / 0.553 GB, free: 9.719 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.4613, allocations: 11.45 kB / 0.553 GB, free: 9.715 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.208e-05/0.4614, allocations: 61.72 kB / 0.5531 GB, free: 9.68 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003107/0.4617, allocations: 322.8 kB / 0.5534 GB, free: 9.406 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.751e-05/0.4617, allocations: 15.03 kB / 0.5534 GB, free: 9.406 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.627e-05/0.4618, allocations: 34.25 kB / 0.5534 GB, free: 9.402 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003152/0.4621, allocations: 203.9 kB / 0.5536 GB, free: 9.398 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004695/0.4626, allocations: 396.2 kB / 0.554 GB, free: 9.238 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.319e-05/0.4626, allocations: 3.938 kB / 0.554 GB, free: 9.234 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.35e-05/0.4626, allocations: 4 kB / 0.554 GB, free: 9.23 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.034e-05/0.4627, allocations: 19.39 kB / 0.554 GB, free: 9.227 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001331/0.464, allocations: 1.636 MB / 0.5556 GB, free: 7.984 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003883/0.4644, allocations: 200 kB / 0.5558 GB, free: 7.945 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.906e-05/0.4645, allocations: 57.14 kB / 0.5559 GB, free: 7.938 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.623e-05/0.4645, allocations: 6.562 kB / 0.5559 GB, free: 7.934 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.186e-05/0.4645, allocations: 31.88 kB / 0.5559 GB, free: 7.895 MB / 362.7 MB Notification: Performance of pre-optimization done (n=19): time 1.944e-06/0.4645, allocations: 0 / 0.5559 GB, free: 7.895 MB / 362.7 MB Notification: Performance of matching and sorting (n=19): time 0.0002467/0.4648, allocations: 161.5 kB / 0.5561 GB, free: 7.836 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.498e-05/0.4648, allocations: 51.41 kB / 0.5561 GB, free: 7.773 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00013/0.465, allocations: 193.7 kB / 0.5563 GB, free: 7.664 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.22e-05/0.465, allocations: 25.7 kB / 0.5563 GB, free: 7.633 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.968e-05/0.4651, allocations: 267 kB / 0.5566 GB, free: 7.434 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.488e-05/0.4651, allocations: 75.81 kB / 0.5566 GB, free: 7.379 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.795e-06/0.4651, allocations: 1.75 kB / 0.5566 GB, free: 7.379 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 4.891e-05/0.4652, allocations: 337.1 kB / 0.557 GB, free: 7.055 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.089e-05/0.4652, allocations: 55.8 kB / 0.557 GB, free: 7.051 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.883e-05/0.4653, allocations: 113.1 kB / 0.5571 GB, free: 6.973 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.872e-05/0.4654, allocations: 66.45 kB / 0.5572 GB, free: 6.961 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.4654, allocations: 3.844 kB / 0.5572 GB, free: 6.961 MB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002399/0.4657, allocations: 212 kB / 0.5574 GB, free: 6.891 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.259e-05/0.4657, allocations: 7.688 kB / 0.5574 GB, free: 6.891 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.4657, allocations: 0 / 0.5574 GB, free: 6.891 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.4657, allocations: 7.828 kB / 0.5574 GB, free: 6.887 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001638/0.4659, allocations: 45.14 kB / 0.5575 GB, free: 6.879 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.873e-06/0.4659, allocations: 11.83 kB / 0.5575 GB, free: 6.871 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.257e-05/0.466, allocations: 11.53 kB / 0.5575 GB, free: 6.863 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.271e-05/0.466, allocations: 10.5 kB / 0.5575 GB, free: 6.863 MB / 362.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.526e-05/0.4661, allocations: 123.3 kB / 0.5576 GB, free: 6.742 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.458e-05/0.4661, allocations: 23.25 kB / 0.5576 GB, free: 6.73 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.849e-05/0.4662, allocations: 31.8 kB / 0.5577 GB, free: 6.719 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-06/0.4662, allocations: 3.844 kB / 0.5577 GB, free: 6.719 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.4662, allocations: 0 / 0.5577 GB, free: 6.719 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.4662, allocations: 0 / 0.5577 GB, free: 6.719 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002438/0.4665, allocations: 326.6 kB / 0.558 GB, free: 6.504 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.4665, allocations: 4 kB / 0.558 GB, free: 6.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001573/0.4666, allocations: 26.95 kB / 0.558 GB, free: 6.496 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.554e-06/0.4666, allocations: 3.906 kB / 0.558 GB, free: 6.496 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.177e-05/0.4667, allocations: 4 kB / 0.558 GB, free: 6.492 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.4667, allocations: 0 / 0.558 GB, free: 6.492 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.4667, allocations: 0 / 0.558 GB, free: 6.492 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002723/0.4669, allocations: 330.3 kB / 0.5583 GB, free: 6.328 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.276e-05/0.467, allocations: 104.5 kB / 0.5584 GB, free: 6.215 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.386e-05/0.467, allocations: 0 / 0.5584 GB, free: 6.215 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.834e-05/0.4671, allocations: 0 / 0.5584 GB, free: 6.215 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.843e-05/0.4671, allocations: 14.72 kB / 0.5584 GB, free: 6.211 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.003e-06/0.4671, allocations: 4 kB / 0.5584 GB, free: 6.207 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.969e-05/0.4672, allocations: 152.2 kB / 0.5586 GB, free: 6.121 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4672, allocations: 3.906 kB / 0.5586 GB, free: 6.121 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002997/0.4675, allocations: 77.81 kB / 0.5587 GB, free: 6.09 MB / 362.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 7.232e-05/0.4676, allocations: 101.6 kB / 0.5588 GB, free: 5.996 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001862/0.4678, allocations: 142.4 kB / 0.5589 GB, free: 5.984 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.4678, allocations: 0.5 kB / 0.5589 GB, free: 5.984 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.483e-05/0.4679, allocations: 67.22 kB / 0.559 GB, free: 5.98 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002618/0.4682, allocations: 34.88 kB / 0.559 GB, free: 5.969 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006114/0.4688, allocations: 471.5 kB / 0.5594 GB, free: 5.711 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00018/0.469, allocations: 0.8225 MB / 0.5602 GB, free: 4.945 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.164e-05/0.469, allocations: 21.48 kB / 0.5603 GB, free: 4.934 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.683e-05/0.4691, allocations: 18.88 kB / 0.5603 GB, free: 4.926 MB / 362.7 MB Notification: Performance of SimCode: time 3.21e-07/0.4691, allocations: 0 / 0.5603 GB, free: 4.926 MB / 362.7 MB Notification: Performance of Templates: time 0.003348/0.4724, allocations: 1.392 MB / 0.5616 GB, free: 4.242 MB / 362.7 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 -lv LOG_STATS > SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane.pipe 2>&1)