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.001383/0.001383, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.327/1.327, allocations: 227.2 MB / 245 MB, free: 5.898 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009494/0.0009493, allocations: 101.5 kB / 297.3 MB, free: 5.977 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3861/0.3861, allocations: 45.24 MB / 394.7 MB, free: 31.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002665/0.0002665, allocations: 8 kB / 468.4 MB, free: 7.719 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3672/0.3675, allocations: 63.24 MB / 0.5192 GB, free: 37.51 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.258/6.625, allocations: 2.778 GB / 3.298 GB, free: 109.8 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002192/6.626, allocations: 86.61 kB / 3.298 GB, free: 109.8 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.464/8.09, allocations: 0.5092 GB / 3.807 GB, free: 24.15 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.683e-06/8.09, allocations: 0 / 3.807 GB, free: 24.15 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 9.643e-05/8.09, allocations: 30.27 kB / 3.807 GB, free: 24.12 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.007416/8.098, allocations: 2.182 MB / 3.809 GB, free: 21.94 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/8.098, allocations: 8.031 kB / 3.809 GB, free: 21.93 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005755/8.103, allocations: 0.7127 MB / 3.81 GB, free: 21.23 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001714/8.105, allocations: 0.8162 MB / 3.81 GB, free: 20.39 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.067e-05/8.105, allocations: 78 kB / 3.811 GB, free: 20.32 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001775/8.105, allocations: 84 kB / 3.811 GB, free: 20.23 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003892/8.109, allocations: 1.752 MB / 3.812 GB, free: 18.39 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.345e-05/8.109, allocations: 7.938 kB / 3.812 GB, free: 18.38 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001241/8.109, allocations: 40 kB / 3.812 GB, free: 18.34 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.591e-05/8.109, allocations: 24 kB / 3.812 GB, free: 18.32 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003929/8.113, allocations: 1.653 MB / 3.814 GB, free: 16.69 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007818/8.121, allocations: 7.554 MB / 3.821 GB, free: 8.668 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003468/8.125, allocations: 1.298 MB / 3.823 GB, free: 7.379 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.331/8.456, allocations: 26.74 MB / 3.849 GB, free: 59.18 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.869e-05/8.456, allocations: 46.56 kB / 3.849 GB, free: 59.14 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=67): time 3.216e-06/8.456, allocations: 0 / 3.849 GB, free: 59.14 MB / 0.5573 GB Notification: Performance of matching and sorting (n=67): time 0.006935/8.463, allocations: 2.223 MB / 3.851 GB, free: 59.1 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.171e-05/8.463, allocations: 215.2 kB / 3.851 GB, free: 58.85 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00105/8.464, allocations: 0.7274 MB / 3.852 GB, free: 58.71 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 8.546e-05/8.464, allocations: 41.02 kB / 3.852 GB, free: 58.68 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.000296/8.464, allocations: 487.3 kB / 3.852 GB, free: 58.54 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001715/8.464, allocations: 224.9 kB / 3.853 GB, free: 58.43 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.331e-05/8.465, allocations: 20.34 kB / 3.853 GB, free: 58.43 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 7.21e-05/8.465, allocations: 342.7 kB / 3.853 GB, free: 58.12 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008989/8.466, allocations: 396.2 kB / 3.853 GB, free: 58.12 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009799/8.467, allocations: 0.6824 MB / 3.854 GB, free: 57.77 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009728/8.468, allocations: 453.1 kB / 3.854 GB, free: 57.77 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.253e-06/8.468, allocations: 3.781 kB / 3.854 GB, free: 57.77 MB / 0.5573 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.002341/8.47, allocations: 1.19 MB / 3.856 GB, free: 57.67 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007035/8.471, allocations: 3.226 MB / 3.859 GB, free: 54.32 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.214e-05/8.471, allocations: 8.859 kB / 3.859 GB, free: 54.32 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.608e-05/8.471, allocations: 14.38 kB / 3.859 GB, free: 54.32 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009304/8.472, allocations: 277.6 kB / 3.859 GB, free: 54.32 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.764e-05/8.472, allocations: 18.23 kB / 3.859 GB, free: 54.32 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001154/8.473, allocations: 186.1 kB / 3.859 GB, free: 54.29 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.551e-05/8.473, allocations: 58.69 kB / 3.859 GB, free: 54.29 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.117e-05/8.473, allocations: 2.875 kB / 3.859 GB, free: 54.29 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0022/8.475, allocations: 1.051 MB / 3.86 GB, free: 54.27 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.512e-05/8.475, allocations: 5.875 kB / 3.86 GB, free: 54.27 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/8.475, allocations: 18.03 kB / 3.86 GB, free: 54.27 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008527/8.476, allocations: 271.6 kB / 3.861 GB, free: 54.27 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.272e-05/8.476, allocations: 25.62 kB / 3.861 GB, free: 54.27 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009544/8.477, allocations: 169.2 kB / 3.861 GB, free: 54.25 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.336e-05/8.477, allocations: 51.08 kB / 3.861 GB, free: 54.25 MB / 0.5573 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.0004735/8.478, allocations: 339.3 kB / 3.861 GB, free: 54.06 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001699/8.478, allocations: 110.2 kB / 3.861 GB, free: 54 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005841/8.484, allocations: 5.125 MB / 3.866 GB, free: 53.46 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.466e-05/8.484, allocations: 61.67 kB / 3.866 GB, free: 53.46 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/8.484, allocations: 1.031 kB / 3.866 GB, free: 53.46 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.047e-05/8.484, allocations: 10.91 kB / 3.866 GB, free: 53.46 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002737/8.486, allocations: 2.502 MB / 3.869 GB, free: 53.13 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.085e-05/8.486, allocations: 0 / 3.869 GB, free: 53.13 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000752/8.487, allocations: 235.6 kB / 3.869 GB, free: 53.13 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.139e-05/8.487, allocations: 11.95 kB / 3.869 GB, free: 53.13 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.5e-05/8.487, allocations: 19.09 kB / 3.869 GB, free: 53.13 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.921e-06/8.487, allocations: 4.969 kB / 3.869 GB, free: 53.13 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/8.487, allocations: 0 / 3.869 GB, free: 53.13 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002935/8.49, allocations: 2.382 MB / 3.871 GB, free: 52.72 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009043/8.491, allocations: 0.6985 MB / 3.872 GB, free: 52.41 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000277/8.491, allocations: 25.77 kB / 3.872 GB, free: 52.4 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009539/8.492, allocations: 112.1 kB / 3.872 GB, free: 52.39 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001657/8.493, allocations: 78.72 kB / 3.872 GB, free: 52.39 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.696e-05/8.493, allocations: 35.36 kB / 3.872 GB, free: 52.39 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.00141/8.494, allocations: 1.192 MB / 3.873 GB, free: 52.25 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.3e-07/8.494, allocations: 0 / 3.873 GB, free: 52.25 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.00724/8.501, allocations: 1.629 MB / 3.875 GB, free: 52.17 MB / 0.5573 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.009318/8.511, allocations: 1.772 MB / 3.877 GB, free: 51.98 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.004601/8.515, allocations: 2.046 MB / 3.879 GB, free: 51.94 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/8.515, allocations: 0 / 3.879 GB, free: 51.94 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001718/8.517, allocations: 1.166 MB / 3.88 GB, free: 51.94 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003222/8.52, allocations: 0.6041 MB / 3.88 GB, free: 51.91 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006167/8.526, allocations: 4.93 MB / 3.885 GB, free: 49.7 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001562/8.528, allocations: 1.57 MB / 3.887 GB, free: 48.97 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.002874/8.531, allocations: 1.582 MB / 3.888 GB, free: 48.96 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003599/8.531, allocations: 106.3 kB / 3.888 GB, free: 48.95 MB / 0.5573 GB Notification: Performance of SimCode: time 1.403e-06/8.531, allocations: 3.094 kB / 3.888 GB, free: 48.95 MB / 0.5573 GB Notification: Performance of Templates: time 0.07221/8.604, allocations: 52.93 MB / 3.94 GB, free: 47.06 MB / 0.5573 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