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: "" <> buildModelFMU(SystemDynamics.IntroductoryExamples.Sugar_Cane,fileNamePrefix="SystemDynamics_SystemDynamics_IntroductoryExamples_Sugar_Cane",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.IntroductoryExamples.Sugar_Cane,fileNamePrefix="SystemDynamics_SystemDynamics_IntroductoryExamples_Sugar_Cane",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001151/0.001151, allocations: 180.9 kB / 7.651 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.378/1.378, allocations: 221.5 MB / 229.6 MB, free: 7.574 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.0009399/0.00094, allocations: 87.86 kB / 280.5 MB, free: 5.332 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1741/0.1741, allocations: 28.83 MB / 360.1 MB, free: 2.215 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.831e-05/1.846e-05, allocations: 0 / 423.9 MB, free: 32.1 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.1182, allocations: 57.49 MB / 481.4 MB, free: 6.738 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3786/0.4968, allocations: 78.47 MB / 0.5467 GB, free: 10.54 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001752/0.497, allocations: 55.34 kB / 0.5467 GB, free: 10.54 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01241/0.5095, allocations: 5.873 MB / 0.5525 GB, free: 9.793 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.5095, allocations: 0 / 0.5525 GB, free: 9.793 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.307e-05/0.5095, allocations: 15.53 kB / 0.5525 GB, free: 9.789 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.0006418/0.5102, allocations: 0.614 MB / 0.5531 GB, free: 9.273 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.528e-05/0.5102, allocations: 23.36 kB / 0.5531 GB, free: 9.262 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.893e-05/0.5103, allocations: 57.77 kB / 0.5532 GB, free: 9.23 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003215/0.5106, allocations: 323.7 kB / 0.5535 GB, free: 8.953 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.045e-05/0.5107, allocations: 15.41 kB / 0.5535 GB, free: 8.953 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.095e-05/0.5107, allocations: 30.91 kB / 0.5535 GB, free: 8.953 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000341/0.5111, allocations: 207.9 kB / 0.5537 GB, free: 8.949 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005534/0.5116, allocations: 395.4 kB / 0.5541 GB, free: 8.785 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.336e-05/0.5117, allocations: 0 / 0.5541 GB, free: 8.785 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.648e-05/0.5117, allocations: 1.25 kB / 0.5541 GB, free: 8.785 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.765e-05/0.5117, allocations: 17.05 kB / 0.5541 GB, free: 8.781 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001379/0.5131, allocations: 1.635 MB / 0.5557 GB, free: 7.539 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004078/0.5135, allocations: 200.5 kB / 0.5559 GB, free: 7.5 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.651e-05/0.5136, allocations: 58.45 kB / 0.556 GB, free: 7.492 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.972e-05/0.5136, allocations: 3.984 kB / 0.556 GB, free: 7.488 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.851e-05/0.5137, allocations: 42.27 kB / 0.556 GB, free: 7.445 MB / 362.7 MB Notification: Performance of pre-optimization done (n=19): time 1.382e-06/0.5137, allocations: 0 / 0.556 GB, free: 7.445 MB / 362.7 MB Notification: Performance of matching and sorting (n=19): time 0.0002688/0.5139, allocations: 152.3 kB / 0.5562 GB, free: 7.391 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.314e-05/0.514, allocations: 58.97 kB / 0.5562 GB, free: 7.328 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001447/0.5141, allocations: 189.5 kB / 0.5564 GB, free: 7.215 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.539e-05/0.5141, allocations: 25.7 kB / 0.5564 GB, free: 7.184 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001098/0.5143, allocations: 280.8 kB / 0.5567 GB, free: 6.98 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.648e-05/0.5143, allocations: 60.89 kB / 0.5567 GB, free: 6.934 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.556e-06/0.5143, allocations: 0 / 0.5567 GB, free: 6.934 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.909e-05/0.5144, allocations: 342.3 kB / 0.5571 GB, free: 6.609 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.833e-05/0.5145, allocations: 51.86 kB / 0.5571 GB, free: 6.605 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.864e-05/0.5146, allocations: 121.1 kB / 0.5572 GB, free: 6.52 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.91e-05/0.5147, allocations: 77.44 kB / 0.5573 GB, free: 6.504 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.5147, allocations: 0 / 0.5573 GB, free: 6.504 MB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002519/0.515, allocations: 206.9 kB / 0.5575 GB, free: 6.438 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.515, allocations: 7.719 kB / 0.5575 GB, free: 6.438 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.515, allocations: 0 / 0.5575 GB, free: 6.438 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.629e-05/0.515, allocations: 3.969 kB / 0.5575 GB, free: 6.438 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001654/0.5152, allocations: 46.17 kB / 0.5576 GB, free: 6.43 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.133e-06/0.5152, allocations: 4.219 kB / 0.5576 GB, free: 6.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.286e-05/0.5153, allocations: 15.78 kB / 0.5576 GB, free: 6.418 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.617e-05/0.5153, allocations: 7.719 kB / 0.5576 GB, free: 6.418 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 7.71e-05/0.5154, allocations: 124 kB / 0.5577 GB, free: 6.297 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001902/0.5156, allocations: 157.2 kB / 0.5579 GB, free: 6.238 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.518e-05/0.5156, allocations: 23.47 kB / 0.5579 GB, free: 6.227 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.425e-05/0.5157, allocations: 28.08 kB / 0.5579 GB, free: 6.219 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.5157, allocations: 3.969 kB / 0.5579 GB, free: 6.219 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.648e-06/0.5157, allocations: 0 / 0.5579 GB, free: 6.219 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.768e-06/0.5157, allocations: 0 / 0.5579 GB, free: 6.219 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002718/0.516, allocations: 329.7 kB / 0.5582 GB, free: 6 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.516, allocations: 0 / 0.5582 GB, free: 6 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000164/0.5162, allocations: 35.08 kB / 0.5583 GB, free: 5.988 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.5162, allocations: 3.875 kB / 0.5583 GB, free: 5.988 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.617e-05/0.5162, allocations: 0.5 kB / 0.5583 GB, free: 5.988 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.5162, allocations: 0 / 0.5583 GB, free: 5.988 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.5162, allocations: 0 / 0.5583 GB, free: 5.988 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000326/0.5166, allocations: 329.3 kB / 0.5586 GB, free: 5.828 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.823e-05/0.5166, allocations: 104.5 kB / 0.5587 GB, free: 5.715 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.568e-05/0.5166, allocations: 0 / 0.5587 GB, free: 5.715 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.025e-05/0.5167, allocations: 0 / 0.5587 GB, free: 5.715 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.036e-05/0.5168, allocations: 11.81 kB / 0.5587 GB, free: 5.711 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.536e-06/0.5168, allocations: 7.797 kB / 0.5587 GB, free: 5.707 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.411e-05/0.5169, allocations: 144.2 kB / 0.5588 GB, free: 5.625 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5169, allocations: 0 / 0.5588 GB, free: 5.625 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002883/0.5172, allocations: 85.58 kB / 0.5589 GB, free: 5.59 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 0.0004802/0.5177, allocations: 0.8636 MB / 0.5598 GB, free: 4.898 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002196/0.5179, allocations: 137.2 kB / 0.5599 GB, free: 4.891 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.5179, allocations: 0 / 0.5599 GB, free: 4.891 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.867e-05/0.518, allocations: 67.12 kB / 0.56 GB, free: 4.887 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003164/0.5183, allocations: 36.45 kB / 0.56 GB, free: 4.871 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009489/0.5193, allocations: 0.5501 MB / 0.5605 GB, free: 4.547 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002316/0.5195, allocations: 0.8229 MB / 0.5613 GB, free: 3.785 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.793e-05/0.5196, allocations: 13.77 kB / 0.5613 GB, free: 3.777 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000127/0.5197, allocations: 139.5 kB / 0.5615 GB, free: 3.754 MB / 362.7 MB Notification: Performance of SimCode: time 2.61e-07/0.5197, allocations: 4 kB / 0.5615 GB, free: 3.75 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.023/0.5427, allocations: 3.884 MB / 0.5653 GB, free: 1.934 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001709/0.543, allocations: 136.8 kB / 0.5654 GB, free: 1.742 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.828/2.371, allocations: 0 / 0.5654 GB, free: 1.742 MB / 362.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_IntroductoryExamples_Sugar_Cane_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_IntroductoryExamples_Sugar_Cane.fmu > SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane.pipe 2>&1)