Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.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.TestValveCoefficients,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|SourceP4.ports.1..m_flow|SourceP4.ports.1..p|SourceP4.ports.1..h_outflow|V4.port_b.m_flow|V4.port_b.p|V4.port_b.h_outflow|V4.minLimiter.y|SinkP4.ports.1..m_flow|SinkP4.ports.1..p|SinkP4.ports.1..h_outflow",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients,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|SourceP4.ports.1..m_flow|SourceP4.ports.1..p|SourceP4.ports.1..h_outflow|V4.port_b.m_flow|V4.port_b.p|V4.port_b.h_outflow|V4.minLimiter.y|SinkP4.ports.1..m_flow|SinkP4.ports.1..p|SinkP4.ports.1..h_outflow",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001204/0.001204, allocations: 193.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.344/1.344, allocations: 225.6 MB / 234.8 MB, free: 3.262 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008753/0.0008757, allocations: 100.3 kB / 286.7 MB, free: 5.25 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2107/0.2107, allocations: 45.15 MB / 383.8 MB, free: 272 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.417e-05/1.418e-05, allocations: 0 / 453.2 MB, free: 75.82 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1279/0.1279, allocations: 63.26 MB / 0.5044 GB, free: 12.62 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.401/6.529, allocations: 2.778 GB / 3.282 GB, free: 112.9 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002657/6.53, allocations: 83.95 kB / 3.282 GB, free: 112.8 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 1.926/8.456, allocations: 0.6382 GB / 3.92 GB, free: 47.07 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.553e-06/8.456, allocations: 4.922 kB / 3.92 GB, free: 47.07 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 8.941e-05/8.456, allocations: 39.14 kB / 3.92 GB, free: 47.06 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: 301 * Number of variables: 301 Notification: Performance of Generate backend data structure: time 0.007301/8.463, allocations: 2.439 MB / 3.923 GB, free: 45.73 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.825e-05/8.463, allocations: 11.19 kB / 3.923 GB, free: 45.73 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006768/8.47, allocations: 0.9577 MB / 3.924 GB, free: 45.58 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001556/8.471, allocations: 0.9931 MB / 3.925 GB, free: 45.02 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.589e-05/8.471, allocations: 63.56 kB / 3.925 GB, free: 45 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001151/8.472, allocations: 64.94 kB / 3.925 GB, free: 45 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001576/8.473, allocations: 1.21 MB / 3.926 GB, free: 44.57 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001648/8.475, allocations: 1.429 MB / 3.927 GB, free: 43.76 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.96e-05/8.475, allocations: 7.875 kB / 3.927 GB, free: 43.75 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001071/8.475, allocations: 7.688 kB / 3.927 GB, free: 43.75 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.832e-05/8.475, allocations: 34.03 kB / 3.927 GB, free: 43.75 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1146/8.59, allocations: 76.6 MB / 4.002 GB, free: 15.27 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008379/8.59, allocations: 0.7719 MB / 4.003 GB, free: 14.58 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003907/8.591, allocations: 381 kB / 4.003 GB, free: 14.24 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3301/8.921, allocations: 18.24 MB / 4.021 GB, free: 77.77 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.735e-05/8.921, allocations: 45.75 kB / 4.021 GB, free: 77.73 MB / 0.573 GB Notification: Performance of pre-optimization done (n=72): time 2.825e-06/8.921, allocations: 0 / 4.021 GB, free: 77.73 MB / 0.573 GB Notification: Performance of matching and sorting (n=72): time 0.006469/8.928, allocations: 1.902 MB / 4.023 GB, free: 77.68 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001028/8.928, allocations: 264 kB / 4.023 GB, free: 77.37 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008684/8.929, allocations: 0.7263 MB / 4.024 GB, free: 77.23 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 6.485e-05/8.929, allocations: 25.7 kB / 4.024 GB, free: 77.2 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003196/8.929, allocations: 0.6767 MB / 4.025 GB, free: 76.95 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001497/8.929, allocations: 237 kB / 4.025 GB, free: 76.83 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.98e-05/8.929, allocations: 0 / 4.025 GB, free: 76.83 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 7.097e-05/8.929, allocations: 352.4 kB / 4.025 GB, free: 76.52 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004264/8.93, allocations: 327.2 kB / 4.026 GB, free: 76.52 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000573/8.93, allocations: 0.7446 MB / 4.026 GB, free: 76.02 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00271/8.933, allocations: 0.7605 MB / 4.027 GB, free: 76.02 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.495e-06/8.933, allocations: 3.719 kB / 4.027 GB, free: 76.02 MB / 0.573 GB Notification: Performance of matching and sorting (n=143) (initialization): time 0.003677/8.937, allocations: 1.456 MB / 4.028 GB, free: 75.91 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.000724/8.937, allocations: 4.876 MB / 4.033 GB, free: 70.85 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.634e-05/8.937, allocations: 13.47 kB / 4.033 GB, free: 70.85 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.363e-05/8.937, allocations: 22.52 kB / 4.033 GB, free: 70.85 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001128/8.939, allocations: 364.3 kB / 4.034 GB, free: 70.85 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.948e-05/8.939, allocations: 26.45 kB / 4.034 GB, free: 70.85 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001323/8.94, allocations: 234.7 kB / 4.034 GB, free: 70.81 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.333e-05/8.94, allocations: 69.83 kB / 4.034 GB, free: 70.81 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 8.235e-06/8.94, allocations: 7.688 kB / 4.034 GB, free: 70.81 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003018/8.943, allocations: 1.177 MB / 4.035 GB, free: 70.79 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.115e-05/8.943, allocations: 17.55 kB / 4.035 GB, free: 70.79 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.563e-05/8.943, allocations: 20.91 kB / 4.035 GB, free: 70.79 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001171/8.944, allocations: 358.1 kB / 4.035 GB, free: 70.79 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.234e-05/8.944, allocations: 28.62 kB / 4.035 GB, free: 70.79 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00108/8.945, allocations: 178.7 kB / 4.036 GB, free: 70.77 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001095/8.946, allocations: 68.28 kB / 4.036 GB, free: 70.77 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 16 (SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,SourceP4.medium.phase,SinkP4.medium.phase,V4.state_b.phase,V4.state_a.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 (143): * Single equations (assignments): 143 * 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.0002548/8.946, allocations: 150.2 kB / 4.036 GB, free: 70.66 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001913/8.946, allocations: 112.8 kB / 4.036 GB, free: 70.61 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005918/8.952, allocations: 4.387 MB / 4.04 GB, free: 70 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.217e-05/8.952, allocations: 32.41 kB / 4.04 GB, free: 70 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.974e-06/8.952, allocations: 0 / 4.04 GB, free: 70 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.053e-05/8.952, allocations: 7.344 kB / 4.04 GB, free: 70 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003528/8.956, allocations: 2.359 MB / 4.043 GB, free: 69.62 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/8.956, allocations: 2.438 kB / 4.043 GB, free: 69.62 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009912/8.957, allocations: 259.4 kB / 4.043 GB, free: 69.62 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.263e-05/8.957, allocations: 3.938 kB / 4.043 GB, free: 69.62 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.093e-05/8.957, allocations: 10.8 kB / 4.043 GB, free: 69.62 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.833e-06/8.957, allocations: 3.141 kB / 4.043 GB, free: 69.62 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/8.957, allocations: 0 / 4.043 GB, free: 69.62 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003582/8.96, allocations: 1.661 MB / 4.044 GB, free: 69.27 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001552/8.962, allocations: 0.979 MB / 4.045 GB, free: 68.92 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003409/8.962, allocations: 1 kB / 4.045 GB, free: 68.92 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001092/8.963, allocations: 105 kB / 4.046 GB, free: 68.91 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002081/8.964, allocations: 116.2 kB / 4.046 GB, free: 68.91 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.877e-05/8.964, allocations: 29.84 kB / 4.046 GB, free: 68.91 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002469/8.966, allocations: 1.781 MB / 4.047 GB, free: 68.77 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.51e-07/8.966, allocations: 0 / 4.047 GB, free: 68.77 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.007653/8.974, allocations: 1.872 MB / 4.049 GB, free: 68.64 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 24 ($cse1.phase,$cse1.region,$cse10.phase,$cse10.region,$cse13.phase,$cse13.region,$cse22.phase,$cse22.region,$cse25.phase,$cse25.region,$cse34.phase,$cse34.region,$cse37.phase,$cse37.region,$cse46.phase,$cse46.region,SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,SourceP4.medium.phase,SinkP4.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.00658/8.98, allocations: 2.137 MB / 4.051 GB, free: 68.44 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.002303/8.983, allocations: 1.584 MB / 4.053 GB, free: 68.41 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 5.6e-06/8.983, allocations: 0 / 4.053 GB, free: 68.41 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0005959/8.983, allocations: 0.6143 MB / 4.053 GB, free: 68.4 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003079/8.986, allocations: 0.5587 MB / 4.054 GB, free: 68.38 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003897/8.99, allocations: 2.921 MB / 4.057 GB, free: 67.56 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001045/8.991, allocations: 1.679 MB / 4.058 GB, free: 66.83 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.002671/8.994, allocations: 2.217 MB / 4.061 GB, free: 66.81 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002406/8.994, allocations: 110.4 kB / 4.061 GB, free: 66.8 MB / 0.573 GB Notification: Performance of SimCode: time 5.51e-07/8.994, allocations: 1.625 kB / 4.061 GB, free: 66.8 MB / 0.573 GB Notification: Performance of Templates: time 0.06268/9.057, allocations: 48.7 MB / 4.108 GB, free: 64.63 MB / 0.573 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveCoefficients/TestValveCoefficients.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches