Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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: 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_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001664/0.001664, allocations: 174.4 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.492/1.492, allocations: 221.5 MB / 230.7 MB, free: 7.52 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.00096/0.0009602, allocations: 96.45 kB / 281.6 MB, free: 5.25 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.194/0.194, allocations: 44.14 MB / 376.5 MB, free: 3.023 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.231e-05/2.234e-05, allocations: 4.219 kB / 444.6 MB, free: 15.22 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1413/0.1413, allocations: 61.92 MB / 0.4947 GB, free: 1.234 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.484/7.625, allocations: 2.777 GB / 3.271 GB, free: 116.7 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002645/7.625, allocations: 84.31 kB / 3.271 GB, free: 116.7 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 1.787/9.412, allocations: 0.5024 GB / 3.774 GB, free: 40.16 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.472e-06/9.412, allocations: 0 / 3.774 GB, free: 40.16 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001106/9.412, allocations: 26.42 kB / 3.774 GB, free: 40.14 MB / 0.5261 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.008486/9.421, allocations: 2.056 MB / 3.776 GB, free: 38.07 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.591e-05/9.421, allocations: 15.98 kB / 3.776 GB, free: 38.05 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006062/9.427, allocations: 0.723 MB / 3.777 GB, free: 37.34 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001991/9.429, allocations: 0.8049 MB / 3.777 GB, free: 36.51 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001026/9.429, allocations: 47.88 kB / 3.777 GB, free: 36.47 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002677/9.43, allocations: 52 kB / 3.777 GB, free: 36.42 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001818/9.431, allocations: 0.9277 MB / 3.778 GB, free: 35.49 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00201/9.433, allocations: 1.088 MB / 3.779 GB, free: 34.3 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.921e-05/9.433, allocations: 3.938 kB / 3.779 GB, free: 34.3 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001695/9.434, allocations: 4 kB / 3.779 GB, free: 34.3 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.363e-05/9.434, allocations: 24 kB / 3.779 GB, free: 34.27 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4653/9.899, allocations: 52.96 MB / 3.831 GB, free: 65.71 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001144/9.9, allocations: 0.5999 MB / 3.832 GB, free: 65.69 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005355/9.901, allocations: 306.7 kB / 3.832 GB, free: 65.68 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02977/9.93, allocations: 16.64 MB / 3.848 GB, free: 55.37 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.772e-05/9.931, allocations: 43.7 kB / 3.848 GB, free: 55.33 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=61): time 2.935e-06/9.931, allocations: 3.172 kB / 3.848 GB, free: 55.33 MB / 0.5417 GB Notification: Performance of matching and sorting (n=61): time 0.005519/9.936, allocations: 1.486 MB / 3.85 GB, free: 55.29 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.512e-05/9.936, allocations: 215.8 kB / 3.85 GB, free: 55.04 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008009/9.937, allocations: 0.558 MB / 3.85 GB, free: 54.92 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 6.186e-05/9.937, allocations: 27.08 kB / 3.851 GB, free: 54.89 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003196/9.937, allocations: 0.5054 MB / 3.851 GB, free: 54.68 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001585/9.938, allocations: 203.9 kB / 3.851 GB, free: 54.58 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.028e-05/9.938, allocations: 0 / 3.851 GB, free: 54.58 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001255/9.938, allocations: 390.7 kB / 3.852 GB, free: 54.26 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004153/9.938, allocations: 253.8 kB / 3.852 GB, free: 54.26 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005668/9.939, allocations: 0.5441 MB / 3.852 GB, free: 53.92 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002303/9.941, allocations: 0.5639 MB / 3.853 GB, free: 53.91 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.336e-06/9.941, allocations: 1.219 kB / 3.853 GB, free: 53.91 MB / 0.5417 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.003325/9.944, allocations: 1.106 MB / 3.854 GB, free: 53.82 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006843/9.945, allocations: 3.238 MB / 3.857 GB, free: 50.47 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.928e-05/9.945, allocations: 8.562 kB / 3.857 GB, free: 50.47 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.653e-05/9.945, allocations: 13.5 kB / 3.857 GB, free: 50.47 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00102/9.946, allocations: 273.9 kB / 3.857 GB, free: 50.47 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.003e-05/9.946, allocations: 19.91 kB / 3.857 GB, free: 50.47 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001117/9.947, allocations: 156.8 kB / 3.858 GB, free: 50.45 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.972e-05/9.947, allocations: 56.14 kB / 3.858 GB, free: 50.45 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 7.614e-06/9.947, allocations: 6.188 kB / 3.858 GB, free: 50.45 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002552/9.95, allocations: 0.8839 MB / 3.859 GB, free: 50.43 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.39e-05/9.95, allocations: 8.094 kB / 3.859 GB, free: 50.43 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.927e-05/9.95, allocations: 14.62 kB / 3.859 GB, free: 50.43 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009426/9.951, allocations: 270.5 kB / 3.859 GB, free: 50.43 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.172e-05/9.951, allocations: 20.33 kB / 3.859 GB, free: 50.43 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000871/9.952, allocations: 133.9 kB / 3.859 GB, free: 50.41 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.974e-05/9.952, allocations: 53.97 kB / 3.859 GB, free: 50.41 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 () * 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.0002466/9.952, allocations: 140.3 kB / 3.859 GB, free: 50.3 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001998/9.952, allocations: 87.12 kB / 3.859 GB, free: 50.25 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004093/9.957, allocations: 3.365 MB / 3.863 GB, free: 49.84 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.06e-05/9.957, allocations: 28.81 kB / 3.863 GB, free: 49.84 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/9.957, allocations: 0 / 3.863 GB, free: 49.84 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.947e-06/9.957, allocations: 3.797 kB / 3.863 GB, free: 49.84 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002106/9.959, allocations: 1.828 MB / 3.864 GB, free: 49.55 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/9.959, allocations: 0 / 3.864 GB, free: 49.55 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007551/9.959, allocations: 222.2 kB / 3.865 GB, free: 49.55 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.683e-06/9.96, allocations: 3.438 kB / 3.865 GB, free: 49.55 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.304e-05/9.96, allocations: 14.09 kB / 3.865 GB, free: 49.55 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.43e-06/9.96, allocations: 3.031 kB / 3.865 GB, free: 49.55 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/9.96, allocations: 0 / 3.865 GB, free: 49.55 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002101/9.962, allocations: 1.324 MB / 3.866 GB, free: 49.24 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000792/9.962, allocations: 0.7553 MB / 3.867 GB, free: 48.96 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002031/9.963, allocations: 0 / 3.867 GB, free: 48.96 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007693/9.963, allocations: 89.3 kB / 3.867 GB, free: 48.96 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001442/9.964, allocations: 90.39 kB / 3.867 GB, free: 48.96 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.202e-05/9.964, allocations: 26.8 kB / 3.867 GB, free: 48.96 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001471/9.965, allocations: 1.349 MB / 3.868 GB, free: 48.81 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.5e-07/9.965, allocations: 2 kB / 3.868 GB, free: 48.81 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.008353/9.974, allocations: 1.633 MB / 3.87 GB, free: 48.7 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: 18 ($cse1.phase,$cse1.region,$cse10.phase,$cse10.region,$cse13.phase,$cse13.region,$cse22.phase,$cse22.region,$cse25.phase,$cse25.region,$cse34.phase,$cse34.region,SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.007163/9.981, allocations: 1.92 MB / 3.872 GB, free: 48.5 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.00191/9.983, allocations: 1.217 MB / 3.873 GB, free: 48.48 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/9.983, allocations: 3.812 kB / 3.873 GB, free: 48.48 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0004619/9.983, allocations: 496 kB / 3.873 GB, free: 48.48 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002382/9.986, allocations: 439.7 kB / 3.874 GB, free: 48.46 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002972/9.989, allocations: 2.224 MB / 3.876 GB, free: 47.82 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000656/9.989, allocations: 1.439 MB / 3.877 GB, free: 47.08 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.00203/9.991, allocations: 1.668 MB / 3.879 GB, free: 47.04 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001982/9.991, allocations: 87.8 kB / 3.879 GB, free: 47.03 MB / 0.5417 GB Notification: Performance of SimCode: time 7.21e-07/9.991, allocations: 0 / 3.879 GB, free: 47.03 MB / 0.5417 GB Notification: Performance of Templates: time 0.05466/10.05, allocations: 42.26 MB / 3.92 GB, free: 44.3 MB / 0.5417 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveIncompressible/TestValveIncompressible.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches