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.00204/0.002039, allocations: 178.4 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.96/1.96, allocations: 205.3 MB / 214.1 MB, free: 14.16 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001142/0.001142, allocations: 105.2 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.44e-05/2.452e-05, allocations: 0 / 314.8 MB, free: 9.172 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3275/0.3276, allocations: 47.56 MB / 362.3 MB, free: 45.87 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.109/1.437, allocations: 409.2 MB / 0.7534 GB, free: 70.81 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002726/1.437, allocations: 81.45 kB / 0.7535 GB, free: 70.77 MB / 427.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.037/2.474, allocations: 211.1 MB / 0.9597 GB, free: 41.11 MB / 427.1 MB Notification: Performance of FrontEnd: time 1.994e-06/2.474, allocations: 0 / 0.9597 GB, free: 41.11 MB / 427.1 MB Notification: Performance of Transformations before backend: time 0.0001212/2.475, allocations: 31.94 kB / 0.9597 GB, free: 41.07 MB / 427.1 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.007237/2.482, allocations: 1.796 MB / 0.9615 GB, free: 39.24 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.727e-05/2.482, allocations: 12.03 kB / 0.9615 GB, free: 39.23 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001065/2.483, allocations: 170.1 kB / 0.9616 GB, free: 39.06 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003369/2.486, allocations: 0.9797 MB / 0.9626 GB, free: 38.06 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000211/2.487, allocations: 198.5 kB / 0.9628 GB, free: 37.83 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003944/2.487, allocations: 56 kB / 0.9628 GB, free: 37.78 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004248/2.491, allocations: 1.605 MB / 0.9644 GB, free: 36.17 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004655/2.496, allocations: 1.646 MB / 0.966 GB, free: 34.45 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.528e-05/2.496, allocations: 0 / 0.966 GB, free: 34.45 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002303/2.496, allocations: 4 kB / 0.966 GB, free: 34.45 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001964/2.497, allocations: 93.98 kB / 0.9661 GB, free: 34.36 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01795/2.515, allocations: 6.52 MB / 0.9725 GB, free: 27.66 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003547/2.518, allocations: 1.387 MB / 0.9738 GB, free: 26.26 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001883/2.52, allocations: 0.8016 MB / 0.9746 GB, free: 25.45 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01267/2.533, allocations: 3.857 MB / 0.9784 GB, free: 21.36 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.838e-05/2.533, allocations: 43.88 kB / 0.9784 GB, free: 21.31 MB / 427.1 MB Notification: Performance of pre-optimization done (n=110): time 6.693e-06/2.533, allocations: 4 kB / 0.9784 GB, free: 21.3 MB / 427.1 MB Notification: Performance of matching and sorting (n=122): time 0.03281/2.566, allocations: 6.425 MB / 0.9847 GB, free: 14.82 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.681e-05/2.566, allocations: 167.5 kB / 0.9849 GB, free: 14.62 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001209/2.567, allocations: 0.6603 MB / 0.9855 GB, free: 13.95 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003852/2.568, allocations: 25.7 kB / 0.9855 GB, free: 13.92 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004216/2.568, allocations: 0.5526 MB / 0.9861 GB, free: 13.37 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004999/2.568, allocations: 394.2 kB / 0.9864 GB, free: 12.98 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001636/2.569, allocations: 0 / 0.9864 GB, free: 12.98 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 0.0001069/2.569, allocations: 358.8 kB / 0.9868 GB, free: 12.62 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001672/2.57, allocations: 0.7184 MB / 0.9875 GB, free: 11.9 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001832/2.572, allocations: 0.9666 MB / 0.9884 GB, free: 10.85 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01667/2.589, allocations: 2.356 MB / 0.9907 GB, free: 8.488 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.941e-05/2.589, allocations: 7.938 kB / 0.9907 GB, free: 8.48 MB / 427.1 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.02112/2.61, allocations: 3.783 MB / 0.9944 GB, free: 4.676 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004701/2.611, allocations: 2.191 MB / 0.9966 GB, free: 2.324 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.738e-05/2.611, allocations: 4 kB / 0.9966 GB, free: 2.32 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003603/2.614, allocations: 0.9954 MB / 0.9975 GB, free: 1.312 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001928/2.616, allocations: 215.7 kB / 0.9977 GB, free: 1.102 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2972/2.914, allocations: 6.565 MB / 1.004 GB, free: 70.72 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002525/2.916, allocations: 67.67 kB / 1.004 GB, free: 70.72 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003635/2.917, allocations: 64.5 kB / 1.004 GB, free: 70.72 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.354e-05/2.917, allocations: 4.188 kB / 1.004 GB, free: 70.72 MB / 427.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02058/2.937, allocations: 3.584 MB / 1.008 GB, free: 70.66 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.803e-05/2.937, allocations: 6.969 kB / 1.008 GB, free: 70.66 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003196/2.94, allocations: 0.9102 MB / 1.009 GB, free: 70.62 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002046/2.943, allocations: 224.6 kB / 1.009 GB, free: 70.62 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01088/2.953, allocations: 6.352 MB / 1.015 GB, free: 66.56 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00207/2.956, allocations: 67.25 kB / 1.015 GB, free: 66.56 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002973/2.956, allocations: 66.7 kB / 1.015 GB, free: 66.55 MB / 427.1 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 () * 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.0005493/2.956, allocations: 138.4 kB / 1.015 GB, free: 66.45 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004896/2.957, allocations: 116.5 kB / 1.015 GB, free: 66.45 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01357/2.971, allocations: 3.065 MB / 1.018 GB, free: 66.32 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.431e-05/2.971, allocations: 14.69 kB / 1.018 GB, free: 66.32 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.109e-05/2.971, allocations: 6 kB / 1.018 GB, free: 66.32 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.67e-05/2.971, allocations: 6.781 kB / 1.018 GB, free: 66.32 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01707/2.988, allocations: 4.543 MB / 1.023 GB, free: 65.97 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-05/2.988, allocations: 0.9375 kB / 1.023 GB, free: 65.97 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001661/2.99, allocations: 151.1 kB / 1.023 GB, free: 65.97 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003998/2.994, allocations: 1.009 MB / 1.024 GB, free: 65.93 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004222/2.994, allocations: 21.97 kB / 1.024 GB, free: 65.93 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01226/3.006, allocations: 6.599 MB / 1.031 GB, free: 61.8 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.633e-06/3.006, allocations: 0.875 kB / 1.031 GB, free: 61.8 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01541/3.022, allocations: 4.051 MB / 1.034 GB, free: 61.52 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001442/3.023, allocations: 408.5 kB / 1.035 GB, free: 61.37 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003519/3.024, allocations: 0.7969 kB / 1.035 GB, free: 61.37 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001984/3.026, allocations: 69.53 kB / 1.035 GB, free: 61.37 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005323/3.026, allocations: 142 kB / 1.035 GB, free: 61.36 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002137/3.026, allocations: 54.81 kB / 1.035 GB, free: 61.36 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.0009031/3.027, allocations: 494.1 kB / 1.036 GB, free: 61.27 MB / 427.1 MB Notification: Performance of sort global known variables: time 5.21e-07/3.027, allocations: 0 / 1.036 GB, free: 61.27 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.004846/3.032, allocations: 1.043 MB / 1.037 GB, free: 61.27 MB / 427.1 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) * 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.003009/3.035, allocations: 0.8013 MB / 1.037 GB, free: 61.17 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.01122/3.047, allocations: 3.395 MB / 1.041 GB, free: 60.7 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 9.889e-06/3.047, allocations: 0 / 1.041 GB, free: 60.7 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004659/3.051, allocations: 1.258 MB / 1.042 GB, free: 60.47 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00447/3.056, allocations: 493.3 kB / 1.042 GB, free: 60.46 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01026/3.066, allocations: 2.488 MB / 1.045 GB, free: 59.98 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009532/3.067, allocations: 1.291 MB / 1.046 GB, free: 59.26 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000911/3.068, allocations: 129.2 kB / 1.046 GB, free: 59.25 MB / 427.1 MB Notification: Performance of SimCode: time 1.493e-06/3.068, allocations: 6.094 kB / 1.046 GB, free: 59.25 MB / 427.1 MB Notification: Performance of Templates: time 0.08317/3.151, allocations: 49.71 MB / 1.095 GB, free: 55.36 MB / 427.1 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