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.009443/0.009443, allocations: 169.5 kB / 15.11 MB, free: 5.984 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.453/1.453, allocations: 223.2 MB / 239 MB, free: 1.793 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.0009081/0.0009081, allocations: 91.7 kB / 290.2 MB, free: 13.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1675/0.1675, allocations: 28.84 MB / 370.1 MB, free: 13.93 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003018/0.0003018, allocations: 6.062 kB / 438.2 MB, free: 70.7 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08911/0.08943, allocations: 57.48 MB / 495.7 MB, free: 13.18 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3191/0.4086, allocations: 79.19 MB / 0.5614 GB, free: 12.12 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001771/0.4088, allocations: 61.94 kB / 0.5615 GB, free: 12.1 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01208/0.4209, allocations: 5.918 MB / 0.5672 GB, free: 7.379 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.704e-06/0.4209, allocations: 0 / 0.5672 GB, free: 7.379 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.11e-05/0.421, allocations: 16 kB / 0.5672 GB, free: 7.363 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.0006246/0.4216, allocations: 0.6428 MB / 0.5679 GB, free: 6.707 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.546e-05/0.4217, allocations: 8.031 kB / 0.5679 GB, free: 6.699 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000115/0.4218, allocations: 108.5 kB / 0.568 GB, free: 6.617 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.881e-05/0.4219, allocations: 59.3 kB / 0.568 GB, free: 6.559 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003137/0.4222, allocations: 327.6 kB / 0.5684 GB, free: 6.23 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.364e-05/0.4222, allocations: 46.62 kB / 0.5684 GB, free: 6.203 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.343e-05/0.4223, allocations: 56.12 kB / 0.5685 GB, free: 6.168 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006037/0.4229, allocations: 493.1 kB / 0.5689 GB, free: 5.789 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.7e-05/0.4229, allocations: 8 kB / 0.5689 GB, free: 5.781 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.265e-05/0.423, allocations: 20.75 kB / 0.569 GB, free: 5.777 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.17e-05/0.423, allocations: 15.95 kB / 0.569 GB, free: 5.762 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003667/0.4234, allocations: 266.2 kB / 0.5692 GB, free: 5.586 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001495/0.4249, allocations: 1.796 MB / 0.571 GB, free: 3.941 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004231/0.4253, allocations: 213.6 kB / 0.5712 GB, free: 3.789 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.886e-05/0.4253, allocations: 7.953 kB / 0.5712 GB, free: 3.781 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.705e-05/0.4253, allocations: 33.69 kB / 0.5712 GB, free: 3.742 MB / 362.7 MB Notification: Performance of pre-optimization done (n=19): time 1.343e-06/0.4254, allocations: 0 / 0.5712 GB, free: 3.742 MB / 362.7 MB Notification: Performance of matching and sorting (n=19): time 0.0003561/0.4257, allocations: 223.2 kB / 0.5714 GB, free: 3.578 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.356e-05/0.4257, allocations: 57.16 kB / 0.5715 GB, free: 3.512 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002326/0.426, allocations: 295.2 kB / 0.5718 GB, free: 3.27 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.462e-05/0.426, allocations: 33.64 kB / 0.5718 GB, free: 3.234 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001085/0.4261, allocations: 270 kB / 0.5721 GB, free: 3.031 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.133e-05/0.4262, allocations: 69.19 kB / 0.5721 GB, free: 2.973 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.154e-05/0.4262, allocations: 7.75 kB / 0.5721 GB, free: 2.969 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.151e-05/0.4263, allocations: 345.9 kB / 0.5725 GB, free: 2.637 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.659e-05/0.4264, allocations: 61.33 kB / 0.5725 GB, free: 2.598 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001085/0.4265, allocations: 118.7 kB / 0.5726 GB, free: 2.48 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001078/0.4266, allocations: 74.97 kB / 0.5727 GB, free: 2.441 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.4266, allocations: 0 / 0.5727 GB, free: 2.441 MB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002917/0.4269, allocations: 261.8 kB / 0.573 GB, free: 2.242 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.694e-05/0.4269, allocations: 4 kB / 0.573 GB, free: 2.238 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.094e-06/0.4269, allocations: 11.92 kB / 0.573 GB, free: 2.227 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.427, allocations: 4 kB / 0.573 GB, free: 2.223 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001677/0.4271, allocations: 47.86 kB / 0.573 GB, free: 2.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.997e-06/0.4272, allocations: 11.94 kB / 0.573 GB, free: 2.168 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.146e-05/0.4273, allocations: 31 kB / 0.5731 GB, free: 2.141 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.334e-05/0.4273, allocations: 12.25 kB / 0.5731 GB, free: 2.129 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001216/0.4274, allocations: 149.7 kB / 0.5732 GB, free: 1.996 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.592e-05/0.4275, allocations: 39.48 kB / 0.5732 GB, free: 1.957 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.998e-05/0.4275, allocations: 36.58 kB / 0.5733 GB, free: 1.938 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.4275, allocations: 0 / 0.5733 GB, free: 1.938 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.4275, allocations: 4 kB / 0.5733 GB, free: 1.934 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.4275, allocations: 3.984 kB / 0.5733 GB, free: 1.93 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003125/0.4279, allocations: 397.6 kB / 0.5737 GB, free: 1.574 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.4279, allocations: 4 kB / 0.5737 GB, free: 1.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000167/0.428, allocations: 35.86 kB / 0.5737 GB, free: 1.539 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.4281, allocations: 0 / 0.5737 GB, free: 1.539 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.55e-05/0.4281, allocations: 3.953 kB / 0.5737 GB, free: 1.535 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.4281, allocations: 7.938 kB / 0.5737 GB, free: 1.527 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.4281, allocations: 0 / 0.5737 GB, free: 1.527 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003545/0.4285, allocations: 353.4 kB / 0.5741 GB, free: 1.242 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.465e-05/0.4285, allocations: 108.4 kB / 0.5742 GB, free: 1.121 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.903e-05/0.4285, allocations: 3.375 kB / 0.5742 GB, free: 1.121 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001011/0.4287, allocations: 11.08 kB / 0.5742 GB, free: 1.113 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.193e-05/0.4287, allocations: 11.98 kB / 0.5742 GB, free: 1.102 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.885e-06/0.4287, allocations: 3.75 kB / 0.5742 GB, free: 1.102 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001696/0.4289, allocations: 239 kB / 0.5744 GB, free: 0.9141 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4289, allocations: 0 / 0.5744 GB, free: 0.9141 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002866/0.4292, allocations: 78.59 kB / 0.5745 GB, free: 0.8438 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 () * 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 (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.0005551/0.4297, allocations: 0.8943 MB / 0.5754 GB, free: 4 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000294/0.43, allocations: 155.4 kB / 0.5755 GB, free: 15.89 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.4301, allocations: 0 / 0.5755 GB, free: 15.89 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.275e-05/0.4301, allocations: 68.42 kB / 0.5756 GB, free: 15.85 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003514/0.4305, allocations: 39.88 kB / 0.5756 GB, free: 15.82 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003188/0.4337, allocations: 3.208 MB / 0.5788 GB, free: 12.79 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004237/0.4341, allocations: 0.8303 MB / 0.5796 GB, free: 11.93 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.651e-05/0.4343, allocations: 30.95 kB / 0.5796 GB, free: 11.91 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001561/0.4344, allocations: 148.6 kB / 0.5797 GB, free: 11.87 MB / 378.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4344, allocations: 4 kB / 0.5797 GB, free: 11.86 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01783/0.4523, allocations: 5.216 MB / 0.5848 GB, free: 6.77 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002498/0.4526, allocations: 176.2 kB / 0.585 GB, free: 6.527 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.056/2.509, allocations: 7.75 kB / 0.585 GB, free: 6.523 MB / 378.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)