Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|V1.minLimiter.y|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|SourceP2.ports.1..m_flow|SourceP2.ports.1..p|SourceP2.ports.1..h_outflow|V2.port_b.m_flow|V2.port_b.p|V2.port_b.h_outflow|V2.minLimiter.y|SinkP2.ports.1..m_flow|SinkP2.ports.1..p|SinkP2.ports.1..h_outflow|SourceP3.ports.1..m_flow|SourceP3.ports.1..p|SourceP3.ports.1..h_outflow|V3.port_b.m_flow|V3.port_b.p|V3.port_b.h_outflow|V3.minLimiter.y|SinkP3.ports.1..m_flow|SinkP3.ports.1..p|SinkP3.ports.1..h_outflow",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|V1.minLimiter.y|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|SourceP2.ports.1..m_flow|SourceP2.ports.1..p|SourceP2.ports.1..h_outflow|V2.port_b.m_flow|V2.port_b.p|V2.port_b.h_outflow|V2.minLimiter.y|SinkP2.ports.1..m_flow|SinkP2.ports.1..p|SinkP2.ports.1..h_outflow|SourceP3.ports.1..m_flow|SourceP3.ports.1..p|SourceP3.ports.1..h_outflow|V3.port_b.m_flow|V3.port_b.p|V3.port_b.h_outflow|V3.minLimiter.y|SinkP3.ports.1..m_flow|SinkP3.ports.1..p|SinkP3.ports.1..h_outflow",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009671/0.0009671, allocations: 195.2 kB / 16.78 MB, free: 5.039 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.317/1.317, allocations: 226.5 MB / 244.1 MB, free: 6.5 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008047/0.0008047, allocations: 98.12 kB / 296.1 MB, free: 6.676 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3857/0.3857, allocations: 44.82 MB / 393 MB, free: 35.64 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003021/0.0003024, allocations: 4 kB / 465.9 MB, free: 12.72 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3963/0.3966, allocations: 62.97 MB / 0.5165 GB, free: 37.14 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.848/7.245, allocations: 2.779 GB / 3.295 GB, free: 160.6 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000317/7.245, allocations: 88.59 kB / 3.295 GB, free: 160.6 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.666/8.911, allocations: 0.5052 GB / 3.8 GB, free: 54.83 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.944e-06/8.911, allocations: 0 / 3.8 GB, free: 54.83 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001226/8.911, allocations: 36.56 kB / 3.8 GB, free: 54.82 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.008443/8.919, allocations: 2.157 MB / 3.803 GB, free: 53.77 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/8.919, allocations: 17.25 kB / 3.803 GB, free: 53.77 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006116/8.926, allocations: 0.7201 MB / 3.803 GB, free: 53.7 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002086/8.928, allocations: 0.838 MB / 3.804 GB, free: 53.38 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001308/8.928, allocations: 78.03 kB / 3.804 GB, free: 53.38 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002825/8.928, allocations: 91.06 kB / 3.804 GB, free: 53.37 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004865/8.933, allocations: 1.747 MB / 3.806 GB, free: 53.04 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.611e-05/8.933, allocations: 3.844 kB / 3.806 GB, free: 53.04 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002018/8.933, allocations: 46.88 kB / 3.806 GB, free: 53.04 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.999e-05/8.933, allocations: 22.03 kB / 3.806 GB, free: 53.04 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004556/8.938, allocations: 1.654 MB / 3.808 GB, free: 53.03 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009167/8.947, allocations: 7.554 MB / 3.815 GB, free: 48.04 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004069/8.951, allocations: 1.307 MB / 3.816 GB, free: 48.01 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001052/8.952, allocations: 463.2 kB / 3.817 GB, free: 48 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04232/8.995, allocations: 26.74 MB / 3.843 GB, free: 30.27 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.748e-05/8.995, allocations: 44.25 kB / 3.843 GB, free: 30.23 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=67): time 4.599e-06/8.995, allocations: 0 / 3.843 GB, free: 30.23 MB / 0.5417 GB Notification: Performance of matching and sorting (n=67): time 0.007689/9.002, allocations: 2.225 MB / 3.845 GB, free: 29.78 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.788e-05/9.003, allocations: 213.5 kB / 3.845 GB, free: 29.53 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001249/9.004, allocations: 0.8304 MB / 3.846 GB, free: 29.16 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001302/9.004, allocations: 37.11 kB / 3.846 GB, free: 29.12 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.000318/9.004, allocations: 493.1 kB / 3.847 GB, free: 28.74 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002186/9.004, allocations: 221.6 kB / 3.847 GB, free: 28.57 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.427e-05/9.005, allocations: 19.62 kB / 3.847 GB, free: 28.55 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 7.584e-05/9.005, allocations: 341.2 kB / 3.847 GB, free: 28.23 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001024/9.006, allocations: 395.4 kB / 3.847 GB, free: 28.12 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001123/9.007, allocations: 0.6881 MB / 3.848 GB, free: 27.64 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002032/9.009, allocations: 1.044 MB / 3.849 GB, free: 27.03 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.883e-06/9.009, allocations: 3.875 kB / 3.849 GB, free: 27.03 MB / 0.5417 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.002744/9.012, allocations: 1.183 MB / 3.85 GB, free: 26.61 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001769/9.012, allocations: 332 kB / 3.851 GB, free: 26.19 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.48e-05/9.012, allocations: 10 kB / 3.851 GB, free: 26.19 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.243e-05/9.012, allocations: 19.59 kB / 3.851 GB, free: 26.19 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009571/9.013, allocations: 275.1 kB / 3.851 GB, free: 26.15 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.675e-05/9.013, allocations: 20.22 kB / 3.851 GB, free: 26.15 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001333/9.014, allocations: 187.9 kB / 3.851 GB, free: 26.07 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.848e-05/9.014, allocations: 55.11 kB / 3.851 GB, free: 26.05 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.067e-05/9.014, allocations: 6.406 kB / 3.851 GB, free: 26.05 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002298/9.017, allocations: 1.06 MB / 3.852 GB, free: 25.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.321e-05/9.017, allocations: 7.062 kB / 3.852 GB, free: 25.7 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.317e-05/9.017, allocations: 11.19 kB / 3.852 GB, free: 25.7 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009376/9.018, allocations: 270.8 kB / 3.852 GB, free: 25.68 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.291e-05/9.018, allocations: 16.12 kB / 3.853 GB, free: 25.67 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001217/9.019, allocations: 177.5 kB / 3.853 GB, free: 25.6 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.792e-05/9.019, allocations: 47.08 kB / 3.853 GB, free: 25.59 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 12 (SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,V3.state_b.phase,V3.state_a.phase,V2.state_b.phase,V2.state_a.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (109): * Single equations (assignments): 109 * 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.0005934/9.02, allocations: 339.2 kB / 3.853 GB, free: 25.31 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002531/9.02, allocations: 107.6 kB / 3.853 GB, free: 25.26 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005834/9.026, allocations: 5.129 MB / 3.858 GB, free: 22.9 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.6e-05/9.026, allocations: 63.47 kB / 3.858 GB, free: 22.89 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/9.026, allocations: 7.938 kB / 3.858 GB, free: 22.88 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.17e-05/9.026, allocations: 3.797 kB / 3.858 GB, free: 22.88 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002854/9.029, allocations: 2.496 MB / 3.861 GB, free: 21.66 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.427e-05/9.029, allocations: 3.812 kB / 3.861 GB, free: 21.66 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008386/9.03, allocations: 238.8 kB / 3.861 GB, free: 21.64 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.161e-05/9.03, allocations: 7.875 kB / 3.861 GB, free: 21.63 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.846e-05/9.03, allocations: 19.62 kB / 3.861 GB, free: 21.62 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.334e-06/9.03, allocations: 3.906 kB / 3.861 GB, free: 21.62 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/9.03, allocations: 3.984 kB / 3.861 GB, free: 21.62 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003135/9.033, allocations: 2.383 MB / 3.863 GB, free: 20.54 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001096/9.034, allocations: 0.6987 MB / 3.864 GB, free: 20.07 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003749/9.034, allocations: 15.62 kB / 3.864 GB, free: 20.06 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001146/9.035, allocations: 109.9 kB / 3.864 GB, free: 20.04 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000177/9.036, allocations: 86.22 kB / 3.864 GB, free: 20.02 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.318e-05/9.036, allocations: 29.88 kB / 3.864 GB, free: 20.02 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001751/9.037, allocations: 1.189 MB / 3.865 GB, free: 19.54 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.6e-07/9.037, allocations: 0 / 3.865 GB, free: 19.54 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.007608/9.045, allocations: 1.638 MB / 3.867 GB, free: 19.23 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 42 ($cse2.phase,$cse2.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse12.phase,$cse12.region,$cse16.phase,$cse16.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse26.phase,$cse26.region,$cse30.phase,$cse30.region,$cse33.phase,$cse33.region,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.phase,$cse37.region,$cse40.phase,$cse40.region,SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (91): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * 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.009169/9.054, allocations: 1.799 MB / 3.869 GB, free: 18.76 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.004537/9.059, allocations: 2.041 MB / 3.871 GB, free: 18.1 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 6.973e-06/9.059, allocations: 3.5 kB / 3.871 GB, free: 18.1 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001545/9.06, allocations: 1.161 MB / 3.872 GB, free: 17.59 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003721/9.064, allocations: 0.6083 MB / 3.872 GB, free: 17.42 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00613/9.07, allocations: 4.978 MB / 3.877 GB, free: 14.52 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001023/9.071, allocations: 1.519 MB / 3.879 GB, free: 13.75 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004135/9.072, allocations: 113.6 kB / 3.879 GB, free: 13.73 MB / 0.5417 GB Notification: Performance of SimCode: time 8.61e-07/9.072, allocations: 0 / 3.879 GB, free: 13.73 MB / 0.5417 GB Notification: Performance of Templates: time 0.353/9.425, allocations: 40.85 MB / 3.919 GB, free: 68.45 MB / 0.5573 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveIncompressible/TestValveIncompressible.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches