Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_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_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_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001061/0.001061, allocations: 198.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.272/1.272, allocations: 225.6 MB / 234.8 MB, free: 3.277 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008004/0.0008004, allocations: 97.41 kB / 286.7 MB, free: 5.27 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1964/0.1964, allocations: 45.15 MB / 383.8 MB, free: 304 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.671e-05/1.682e-05, allocations: 0 / 453.2 MB, free: 75.83 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.1182, allocations: 63.25 MB / 0.5044 GB, free: 12.64 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.584/6.702, allocations: 2.778 GB / 3.282 GB, free: 137.5 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000204/6.702, allocations: 74.83 kB / 3.282 GB, free: 137.4 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 1.614/8.316, allocations: 0.5025 GB / 3.785 GB, free: 25.83 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.843e-06/8.316, allocations: 2.688 kB / 3.785 GB, free: 25.83 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001194/8.316, allocations: 35.52 kB / 3.785 GB, free: 25.8 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.008796/8.325, allocations: 2.057 MB / 3.787 GB, free: 23.71 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.21e-05/8.325, allocations: 12.03 kB / 3.787 GB, free: 23.7 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006092/8.331, allocations: 0.7142 MB / 3.787 GB, free: 22.99 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001869/8.333, allocations: 0.8116 MB / 3.788 GB, free: 22.16 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001032/8.333, allocations: 40 kB / 3.788 GB, free: 22.12 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002377/8.333, allocations: 52 kB / 3.788 GB, free: 22.07 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001676/8.335, allocations: 0.9099 MB / 3.789 GB, free: 21.16 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001766/8.337, allocations: 1.096 MB / 3.79 GB, free: 19.96 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.52e-05/8.337, allocations: 8 kB / 3.79 GB, free: 19.96 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001486/8.337, allocations: 7.156 kB / 3.79 GB, free: 19.95 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.682e-05/8.337, allocations: 24 kB / 3.79 GB, free: 19.93 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4024/8.74, allocations: 57.24 MB / 3.846 GB, free: 45.27 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001079/8.741, allocations: 0.5999 MB / 3.847 GB, free: 45.24 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004791/8.741, allocations: 303.5 kB / 3.847 GB, free: 45.23 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03173/8.773, allocations: 18.5 MB / 3.865 GB, free: 32.76 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.49e-05/8.773, allocations: 41.94 kB / 3.865 GB, free: 32.72 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=61): time 2.926e-06/8.773, allocations: 0 / 3.865 GB, free: 32.72 MB / 0.5417 GB Notification: Performance of matching and sorting (n=61): time 0.005195/8.778, allocations: 1.491 MB / 3.867 GB, free: 32.68 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.229e-05/8.778, allocations: 214 kB / 3.867 GB, free: 32.43 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007817/8.779, allocations: 0.556 MB / 3.867 GB, free: 32.3 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.000106/8.779, allocations: 25.7 kB / 3.867 GB, free: 32.27 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002967/8.78, allocations: 0.5141 MB / 3.868 GB, free: 32.06 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001755/8.78, allocations: 200.9 kB / 3.868 GB, free: 31.96 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.888e-05/8.78, allocations: 0 / 3.868 GB, free: 31.96 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000107/8.78, allocations: 388.7 kB / 3.868 GB, free: 31.64 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003689/8.78, allocations: 251.1 kB / 3.869 GB, free: 31.64 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004773/8.781, allocations: 0.5403 MB / 3.869 GB, free: 31.29 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002212/8.783, allocations: 0.5725 MB / 3.87 GB, free: 31.27 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.662e-06/8.783, allocations: 0.8438 kB / 3.87 GB, free: 31.27 MB / 0.5417 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.003141/8.786, allocations: 1.099 MB / 3.871 GB, free: 31.18 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005556/8.787, allocations: 3.238 MB / 3.874 GB, free: 27.79 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.852e-05/8.787, allocations: 9.312 kB / 3.874 GB, free: 27.79 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.336e-05/8.787, allocations: 11.59 kB / 3.874 GB, free: 27.79 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009338/8.788, allocations: 275 kB / 3.874 GB, free: 27.79 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.869e-05/8.788, allocations: 16.28 kB / 3.874 GB, free: 27.79 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001145/8.789, allocations: 161.3 kB / 3.874 GB, free: 27.75 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.909e-05/8.789, allocations: 55.59 kB / 3.874 GB, free: 27.75 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 8.706e-06/8.789, allocations: 5.156 kB / 3.874 GB, free: 27.75 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002342/8.791, allocations: 0.8901 MB / 3.875 GB, free: 27.72 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.236e-05/8.791, allocations: 9.688 kB / 3.875 GB, free: 27.72 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/8.791, allocations: 16.42 kB / 3.875 GB, free: 27.71 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008622/8.792, allocations: 274 kB / 3.876 GB, free: 27.71 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.768e-05/8.792, allocations: 18.58 kB / 3.876 GB, free: 27.71 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009338/8.793, allocations: 136.7 kB / 3.876 GB, free: 27.69 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.542e-05/8.793, allocations: 45.27 kB / 3.876 GB, free: 27.69 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.0002121/8.794, allocations: 136.3 kB / 3.876 GB, free: 27.58 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002095/8.794, allocations: 86.59 kB / 3.876 GB, free: 27.54 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0038/8.798, allocations: 3.368 MB / 3.879 GB, free: 27.09 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.087e-05/8.798, allocations: 29.11 kB / 3.879 GB, free: 27.09 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.663e-06/8.798, allocations: 0 / 3.879 GB, free: 27.09 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.777e-06/8.798, allocations: 7.156 kB / 3.879 GB, free: 27.09 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002065/8.8, allocations: 1.818 MB / 3.881 GB, free: 26.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/8.8, allocations: 0 / 3.881 GB, free: 26.8 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007849/8.8, allocations: 228.9 kB / 3.881 GB, free: 26.79 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.121e-05/8.801, allocations: 2.969 kB / 3.881 GB, free: 26.79 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.848e-05/8.801, allocations: 9.188 kB / 3.881 GB, free: 26.79 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.548e-06/8.801, allocations: 3.906 kB / 3.881 GB, free: 26.79 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/8.801, allocations: 7.656 kB / 3.881 GB, free: 26.79 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002202/8.803, allocations: 1.33 MB / 3.883 GB, free: 26.48 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009956/8.804, allocations: 0.7513 MB / 3.883 GB, free: 26.21 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000361/8.804, allocations: 7.406 kB / 3.883 GB, free: 26.21 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001007/8.805, allocations: 84.48 kB / 3.883 GB, free: 26.2 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001573/8.805, allocations: 92.12 kB / 3.884 GB, free: 26.2 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.517e-05/8.805, allocations: 32.11 kB / 3.884 GB, free: 26.19 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001694/8.807, allocations: 1.349 MB / 3.885 GB, free: 26.04 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.4e-07/8.807, allocations: 0 / 3.885 GB, free: 26.04 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.00818/8.815, allocations: 1.649 MB / 3.887 GB, free: 25.93 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.009868/8.825, allocations: 1.906 MB / 3.888 GB, free: 25.64 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002089/8.827, allocations: 1.22 MB / 3.89 GB, free: 25.62 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/8.827, allocations: 0 / 3.89 GB, free: 25.62 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0005701/8.828, allocations: 499.5 kB / 3.89 GB, free: 25.62 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002549/8.83, allocations: 440.7 kB / 3.89 GB, free: 25.58 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00337/8.834, allocations: 2.222 MB / 3.893 GB, free: 24.93 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007278/8.835, allocations: 1.434 MB / 3.894 GB, free: 24.18 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.00217/8.837, allocations: 1.669 MB / 3.896 GB, free: 24.13 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002326/8.837, allocations: 93.38 kB / 3.896 GB, free: 24.12 MB / 0.5417 GB Notification: Performance of SimCode: time 6.01e-07/8.837, allocations: 0 / 3.896 GB, free: 24.12 MB / 0.5417 GB Notification: Performance of Templates: time 0.05701/8.894, allocations: 42.32 MB / 3.937 GB, free: 21.4 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches