Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.003153/0.003153, allocations: 195.7 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.618/2.618, allocations: 226.5 MB / 245.3 MB, free: 6.477 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001605/0.001605, allocations: 100 kB / 297.4 MB, free: 6.676 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004707/0.0004712, allocations: 8 kB / 357.4 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6032/0.6037, allocations: 51.28 MB / 408.7 MB, free: 27.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.696/2.3, allocations: 413 MB / 0.8024 GB, free: 59.25 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005092/2.301, allocations: 91.95 kB / 0.8025 GB, free: 59.16 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.617/3.918, allocations: 215.9 MB / 1.013 GB, free: 27.27 MB / 458.7 MB Notification: Performance of FrontEnd: time 5.35e-06/3.918, allocations: 0 / 1.013 GB, free: 27.27 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002972/3.918, allocations: 31.94 kB / 1.013 GB, free: 27.23 MB / 458.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.03848/3.957, allocations: 1.932 MB / 1.015 GB, free: 25.25 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.719e-05/3.957, allocations: 8.031 kB / 1.015 GB, free: 25.24 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002373/3.959, allocations: 163.2 kB / 1.015 GB, free: 25.08 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005477/3.965, allocations: 1.021 MB / 1.016 GB, free: 24.02 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004141/3.965, allocations: 230.5 kB / 1.017 GB, free: 23.76 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001063/3.966, allocations: 99.98 kB / 1.017 GB, free: 23.66 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02459/3.991, allocations: 1.827 MB / 1.019 GB, free: 21.77 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001433/3.991, allocations: 0 / 1.019 GB, free: 21.77 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001087/3.992, allocations: 47.97 kB / 1.019 GB, free: 21.72 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000333/3.993, allocations: 102 kB / 1.019 GB, free: 21.62 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007577/4, allocations: 1.757 MB / 1.02 GB, free: 19.86 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06696/4.067, allocations: 6.743 MB / 1.027 GB, free: 12.85 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01398/4.081, allocations: 1.443 MB / 1.028 GB, free: 11.39 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002848/4.084, allocations: 0.8425 MB / 1.029 GB, free: 10.55 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03908/4.123, allocations: 3.883 MB / 1.033 GB, free: 6.398 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.714e-05/4.124, allocations: 43.56 kB / 1.033 GB, free: 6.348 MB / 458.7 MB Notification: Performance of pre-optimization done (n=110): time 8.195e-06/4.124, allocations: 4 kB / 1.033 GB, free: 6.344 MB / 458.7 MB Notification: Performance of matching and sorting (n=122): time 0.03908/4.163, allocations: 5.899 MB / 1.039 GB, free: 332 kB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001164/4.163, allocations: 171.2 kB / 1.039 GB, free: 124 kB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.7043/4.867, allocations: 1.105 MB / 1.04 GB, free: 85.64 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008721/4.868, allocations: 49.25 kB / 1.04 GB, free: 85.61 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001444/4.87, allocations: 0.5145 MB / 1.041 GB, free: 85.52 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001971/4.872, allocations: 420.4 kB / 1.041 GB, free: 85.4 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006788/4.872, allocations: 27.38 kB / 1.041 GB, free: 85.4 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004186/4.873, allocations: 357.3 kB / 1.041 GB, free: 85.09 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004538/4.878, allocations: 0.7594 MB / 1.042 GB, free: 85.09 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003129/4.881, allocations: 1.012 MB / 1.043 GB, free: 84.85 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005635/4.886, allocations: 1.671 MB / 1.045 GB, free: 84.63 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.401e-05/4.886, allocations: 1.344 kB / 1.045 GB, free: 84.63 MB / 458.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.01321/4.9, allocations: 2.43 MB / 1.047 GB, free: 84.46 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003893/4.9, allocations: 260.1 kB / 1.047 GB, free: 84.18 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.804e-05/4.9, allocations: 7.219 kB / 1.047 GB, free: 84.18 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006278/4.907, allocations: 1.208 MB / 1.049 GB, free: 84.13 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002268/4.909, allocations: 220.2 kB / 1.049 GB, free: 84.13 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0126/4.922, allocations: 6.203 MB / 1.055 GB, free: 79.89 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004274/4.926, allocations: 99.2 kB / 1.055 GB, free: 79.89 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008871/4.927, allocations: 67.08 kB / 1.055 GB, free: 79.89 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.532e-05/4.927, allocations: 3.75 kB / 1.055 GB, free: 79.89 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01006/4.937, allocations: 2.227 MB / 1.057 GB, free: 79.81 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.902e-05/4.937, allocations: 7.75 kB / 1.057 GB, free: 79.81 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005185/4.942, allocations: 1.017 MB / 1.058 GB, free: 79.77 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002154/4.945, allocations: 227 kB / 1.058 GB, free: 79.77 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0101/4.955, allocations: 6.061 MB / 1.064 GB, free: 75.53 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003278/4.958, allocations: 91.92 kB / 1.064 GB, free: 75.53 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007621/4.959, allocations: 55.22 kB / 1.064 GB, free: 75.53 MB / 458.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.002566/4.962, allocations: 456.6 kB / 1.065 GB, free: 75.34 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001242/4.963, allocations: 135.2 kB / 1.065 GB, free: 75.27 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01087/4.974, allocations: 2.583 MB / 1.067 GB, free: 75.14 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.585e-05/4.974, allocations: 18.66 kB / 1.068 GB, free: 75.14 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.293e-05/4.974, allocations: 3.969 kB / 1.068 GB, free: 75.14 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.471e-05/4.974, allocations: 5.344 kB / 1.068 GB, free: 75.14 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01486/4.989, allocations: 4.191 MB / 1.072 GB, free: 74.75 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.983e-05/4.989, allocations: 0 / 1.072 GB, free: 74.75 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001385/4.99, allocations: 150.5 kB / 1.072 GB, free: 74.75 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005832/4.996, allocations: 1.217 MB / 1.073 GB, free: 74.71 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005338/4.997, allocations: 42.52 kB / 1.073 GB, free: 74.71 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01032/5.007, allocations: 6.236 MB / 1.079 GB, free: 70.46 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.721e-06/5.007, allocations: 0 / 1.079 GB, free: 70.46 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01344/5.021, allocations: 3.589 MB / 1.083 GB, free: 70.17 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002305/5.023, allocations: 427.3 kB / 1.083 GB, free: 70.01 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001039/5.024, allocations: 28 kB / 1.083 GB, free: 70 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002999/5.027, allocations: 89.19 kB / 1.083 GB, free: 70 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008866/5.028, allocations: 149.8 kB / 1.083 GB, free: 70 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000518/5.029, allocations: 53.14 kB / 1.083 GB, free: 70 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003101/5.032, allocations: 0.7546 MB / 1.084 GB, free: 69.89 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.62e-07/5.032, allocations: 2.516 kB / 1.084 GB, free: 69.89 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.009723/5.042, allocations: 1.136 MB / 1.085 GB, free: 69.89 MB / 458.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.005903/5.048, allocations: 0.826 MB / 1.086 GB, free: 69.8 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01527/5.063, allocations: 3.566 MB / 1.089 GB, free: 69.29 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.796e-05/5.063, allocations: 3.969 kB / 1.089 GB, free: 69.29 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005725/5.069, allocations: 1.326 MB / 1.091 GB, free: 69.05 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007332/5.076, allocations: 0.5642 MB / 1.091 GB, free: 69.04 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01821/5.095, allocations: 3.654 MB / 1.095 GB, free: 67.83 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00243/5.097, allocations: 1.259 MB / 1.096 GB, free: 67.11 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001697/5.099, allocations: 142.8 kB / 1.096 GB, free: 67.11 MB / 458.7 MB Notification: Performance of SimCode: time 3.136e-06/5.099, allocations: 0 / 1.096 GB, free: 67.11 MB / 458.7 MB Notification: Performance of Templates: time 0.1282/5.227, allocations: 52.66 MB / 1.148 GB, free: 54.93 MB / 458.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile (rm -f Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & ./Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/TanksWithOverflow/TanksWithOverflow.csv","../files/Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches