Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|lowerTank.level|lowerTank.medium.h|upperTank.level|upperTank.medium.h|hysteresis.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|lowerTank.level|lowerTank.medium.h|upperTank.level|upperTank.medium.h|hysteresis.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001143/0.001142, allocations: 180.8 kB / 17.41 MB, free: 4.262 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.535/1.535, allocations: 205.4 MB / 223.6 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008071/0.0008067, allocations: 92.92 kB / 271.9 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003407/0.0003407, allocations: 12 kB / 328.2 MB, free: 15.93 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3227/0.3231, allocations: 47.56 MB / 375.7 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.905/1.228, allocations: 410.1 MB / 0.7674 GB, free: 55.54 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002765/1.228, allocations: 87.97 kB / 0.7675 GB, free: 55.45 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7144/1.943, allocations: 212.3 MB / 0.9748 GB, free: 13.88 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.124e-06/1.943, allocations: 0 / 0.9748 GB, free: 13.88 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001702/1.943, allocations: 39.92 kB / 0.9748 GB, free: 13.84 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.007528/1.951, allocations: 1.926 MB / 0.9767 GB, free: 11.86 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.861e-05/1.951, allocations: 8.031 kB / 0.9767 GB, free: 11.86 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001173/1.952, allocations: 163.2 kB / 0.9769 GB, free: 11.7 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002905/1.955, allocations: 1.029 MB / 0.9779 GB, free: 10.62 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002342/1.955, allocations: 246.3 kB / 0.9781 GB, free: 10.35 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005141/1.956, allocations: 99.89 kB / 0.9782 GB, free: 10.25 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003448/1.959, allocations: 1.802 MB / 0.98 GB, free: 8.379 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.053e-05/1.959, allocations: 11.94 kB / 0.98 GB, free: 8.367 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001921/1.959, allocations: 39.97 kB / 0.98 GB, free: 8.328 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001383/1.959, allocations: 102 kB / 0.9801 GB, free: 8.227 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002955/1.962, allocations: 1.761 MB / 0.9818 GB, free: 6.457 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2735/2.236, allocations: 6.72 MB / 0.9884 GB, free: 70.77 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002766/2.239, allocations: 1.442 MB / 0.9898 GB, free: 70.73 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001311/2.24, allocations: 0.8381 MB / 0.9906 GB, free: 70.73 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005373/2.245, allocations: 3.883 MB / 0.9944 GB, free: 69.22 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.379e-05/2.245, allocations: 53.69 kB / 0.9945 GB, free: 69.18 MB / 426.7 MB Notification: Performance of pre-optimization done (n=110): time 3.596e-06/2.245, allocations: 2.953 kB / 0.9945 GB, free: 69.18 MB / 426.7 MB Notification: Performance of matching and sorting (n=122): time 0.01319/2.259, allocations: 5.887 MB / 1 GB, free: 68.4 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.345e-05/2.259, allocations: 177.2 kB / 1 GB, free: 68.21 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001522/2.26, allocations: 1.115 MB / 1.001 GB, free: 68.06 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001488/2.26, allocations: 52.3 kB / 1.002 GB, free: 68.03 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003329/2.261, allocations: 0.5128 MB / 1.002 GB, free: 67.86 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003177/2.261, allocations: 420.2 kB / 1.002 GB, free: 67.65 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.629e-05/2.261, allocations: 26.53 kB / 1.002 GB, free: 67.65 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.345e-05/2.261, allocations: 355.9 kB / 1.003 GB, free: 67.34 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001104/2.262, allocations: 0.7575 MB / 1.004 GB, free: 67.34 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001409/2.264, allocations: 1.011 MB / 1.005 GB, free: 67.1 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002438/2.266, allocations: 1.68 MB / 1.006 GB, free: 66.88 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/2.266, allocations: 0 / 1.006 GB, free: 66.88 MB / 426.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.004484/2.271, allocations: 2.429 MB / 1.009 GB, free: 66.7 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001463/2.271, allocations: 256.2 kB / 1.009 GB, free: 66.42 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.801e-05/2.271, allocations: 9.078 kB / 1.009 GB, free: 66.42 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003936/2.275, allocations: 1.203 MB / 1.01 GB, free: 66.38 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001166/2.276, allocations: 227.7 kB / 1.01 GB, free: 66.38 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006086/2.282, allocations: 6.205 MB / 1.016 GB, free: 62.14 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001944/2.284, allocations: 100.1 kB / 1.016 GB, free: 62.14 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004049/2.285, allocations: 62.73 kB / 1.016 GB, free: 62.14 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.139e-05/2.285, allocations: 3.938 kB / 1.016 GB, free: 62.14 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005501/2.29, allocations: 2.227 MB / 1.019 GB, free: 62.06 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.299e-05/2.29, allocations: 5.844 kB / 1.019 GB, free: 62.06 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002734/2.293, allocations: 1.025 MB / 1.02 GB, free: 62.02 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001071/2.294, allocations: 224.1 kB / 1.02 GB, free: 62.02 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005331/2.299, allocations: 6.055 MB / 1.026 GB, free: 57.77 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00173/2.301, allocations: 91.95 kB / 1.026 GB, free: 57.77 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000312/2.302, allocations: 61.98 kB / 1.026 GB, free: 57.77 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 12 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],$PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (128): * Single equations (assignments): 123 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {4 9,2 3,4 9} Notification: Performance of prepare postOptimizeDAE: time 0.001179/2.303, allocations: 460.8 kB / 1.026 GB, free: 57.58 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005082/2.303, allocations: 136.4 kB / 1.026 GB, free: 57.51 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005129/2.308, allocations: 2.591 MB / 1.029 GB, free: 57.38 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.176e-05/2.308, allocations: 13.53 kB / 1.029 GB, free: 57.38 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.205e-05/2.308, allocations: 0.8438 kB / 1.029 GB, free: 57.38 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.596e-05/2.309, allocations: 12.88 kB / 1.029 GB, free: 57.38 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007292/2.316, allocations: 4.185 MB / 1.033 GB, free: 56.98 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.608e-06/2.316, allocations: 3.938 kB / 1.033 GB, free: 56.97 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007776/2.317, allocations: 148.7 kB / 1.033 GB, free: 56.97 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003352/2.32, allocations: 1.219 MB / 1.034 GB, free: 56.93 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001769/2.32, allocations: 41.17 kB / 1.034 GB, free: 56.93 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00583/2.326, allocations: 6.233 MB / 1.041 GB, free: 52.69 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/2.326, allocations: 0 / 1.041 GB, free: 52.69 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006109/2.332, allocations: 3.588 MB / 1.044 GB, free: 52.39 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001064/2.333, allocations: 425.1 kB / 1.044 GB, free: 52.23 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004193/2.334, allocations: 29.03 kB / 1.044 GB, free: 52.23 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001336/2.335, allocations: 93.95 kB / 1.045 GB, free: 52.23 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003647/2.335, allocations: 146 kB / 1.045 GB, free: 52.22 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001683/2.336, allocations: 52.53 kB / 1.045 GB, free: 52.22 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001277/2.337, allocations: 0.7573 MB / 1.045 GB, free: 52.11 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/2.337, allocations: 1.094 kB / 1.045 GB, free: 52.11 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004454/2.341, allocations: 1.118 MB / 1.047 GB, free: 52.11 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (upperTank.medium.T,upperTank.level,lowerTank.medium.T,lowerTank.level) * Number of discrete variables: 11 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {4 12,2 4,4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.003105/2.345, allocations: 0.8162 MB / 1.047 GB, free: 52.03 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00778/2.352, allocations: 3.566 MB / 1.051 GB, free: 51.51 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.433e-06/2.352, allocations: 0 / 1.051 GB, free: 51.51 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002886/2.355, allocations: 1.338 MB / 1.052 GB, free: 51.26 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003546/2.359, allocations: 0.5674 MB / 1.053 GB, free: 51.25 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008303/2.367, allocations: 3.657 MB / 1.056 GB, free: 50.04 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009113/2.368, allocations: 1.26 MB / 1.058 GB, free: 49.32 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006685/2.369, allocations: 140.8 kB / 1.058 GB, free: 49.32 MB / 426.7 MB Notification: Performance of SimCode: time 1.492e-06/2.369, allocations: 0 / 1.058 GB, free: 49.32 MB / 426.7 MB Notification: Performance of Templates: time 0.06765/2.436, allocations: 52.46 MB / 1.109 GB, free: 31.08 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/Tanks/TanksWithOverflow/TanksWithOverflow.csv","../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches