Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.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.TestValveCompressible,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|downstreamPressure.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible,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|downstreamPressure.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001328/0.001328, allocations: 196.5 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.284/1.284, allocations: 225.4 MB / 240.1 MB, free: 15.05 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009564/0.0009567, allocations: 89.09 kB / 292.1 MB, free: 6.023 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1811/0.1811, allocations: 45.14 MB / 389.3 MB, free: 11.86 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.97e-05/3.973e-05, allocations: 4 kB / 460.4 MB, free: 70.02 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09376/0.09382, allocations: 63.25 MB / 0.5114 GB, free: 6.789 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.486/5.579, allocations: 2.778 GB / 3.289 GB, free: 8.273 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002294/5.58, allocations: 86.33 kB / 3.289 GB, free: 8.23 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.9433/6.523, allocations: 239.5 MB / 3.523 GB, free: 98.55 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.194e-06/6.523, allocations: 0 / 3.523 GB, free: 98.55 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 7.4e-05/6.523, allocations: 10.53 kB / 3.523 GB, free: 98.55 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: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.005259/6.528, allocations: 1.285 MB / 3.524 GB, free: 98.14 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/6.529, allocations: 9.594 kB / 3.524 GB, free: 98.14 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002029/6.531, allocations: 266.1 kB / 3.525 GB, free: 98.11 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007032/6.531, allocations: 416.6 kB / 3.525 GB, free: 97.89 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.921e-05/6.531, allocations: 27.5 kB / 3.525 GB, free: 97.89 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.664e-05/6.531, allocations: 36.03 kB / 3.525 GB, free: 97.89 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001352/6.533, allocations: 0.6215 MB / 3.526 GB, free: 97.76 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.307e-05/6.533, allocations: 4.859 kB / 3.526 GB, free: 97.76 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.307e-05/6.533, allocations: 19.17 kB / 3.526 GB, free: 97.75 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.178e-05/6.533, allocations: 12.41 kB / 3.526 GB, free: 97.75 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00108/6.534, allocations: 0.5327 MB / 3.526 GB, free: 97.75 MB / 0.5417 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002537/6.536, allocations: 2.717 MB / 3.529 GB, free: 95.86 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00125/6.538, allocations: 0.5043 MB / 3.53 GB, free: 95.84 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001811/6.538, allocations: 144.2 kB / 3.53 GB, free: 95.83 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04149/6.579, allocations: 26.71 MB / 3.556 GB, free: 78.56 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.686e-05/6.579, allocations: 36.59 kB / 3.556 GB, free: 78.52 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=28): time 1.944e-06/6.58, allocations: 0 / 3.556 GB, free: 78.52 MB / 0.5417 GB Notification: Performance of matching and sorting (n=28): time 0.002011/6.582, allocations: 0.6696 MB / 3.556 GB, free: 78.46 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.579e-05/6.582, allocations: 109.4 kB / 3.557 GB, free: 78.33 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003722/6.582, allocations: 335.9 kB / 3.557 GB, free: 78.23 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.776e-05/6.582, allocations: 30.39 kB / 3.557 GB, free: 78.2 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001084/6.582, allocations: 232.3 kB / 3.557 GB, free: 78.08 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 5.745e-05/6.582, allocations: 91.34 kB / 3.557 GB, free: 78.03 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.796e-05/6.582, allocations: 12.06 kB / 3.557 GB, free: 78.03 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 6.728e-05/6.582, allocations: 353.4 kB / 3.558 GB, free: 77.71 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001706/6.582, allocations: 108 kB / 3.558 GB, free: 77.71 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002373/6.583, allocations: 233.2 kB / 3.558 GB, free: 77.57 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000201/6.583, allocations: 137.3 kB / 3.558 GB, free: 77.57 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/6.583, allocations: 1 kB / 3.558 GB, free: 77.57 MB / 0.5417 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0005852/6.583, allocations: 403.9 kB / 3.558 GB, free: 77.51 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002109/6.584, allocations: 1.4 MB / 3.56 GB, free: 76.06 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/6.584, allocations: 4.031 kB / 3.56 GB, free: 76.06 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.823e-05/6.584, allocations: 5.844 kB / 3.56 GB, free: 76.06 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00042/6.584, allocations: 106.9 kB / 3.56 GB, free: 76.06 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.146e-05/6.584, allocations: 12.53 kB / 3.56 GB, free: 76.06 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004209/6.585, allocations: 77.23 kB / 3.56 GB, free: 76.05 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.186e-05/6.585, allocations: 17.56 kB / 3.56 GB, free: 76.05 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 7.775e-06/6.585, allocations: 7.438 kB / 3.56 GB, free: 76.05 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005836/6.585, allocations: 331.8 kB / 3.56 GB, free: 76.04 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/6.585, allocations: 6.719 kB / 3.56 GB, free: 76.04 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.166e-06/6.585, allocations: 10.17 kB / 3.56 GB, free: 76.04 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004306/6.586, allocations: 102.3 kB / 3.56 GB, free: 76.04 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.217e-06/6.586, allocations: 13.2 kB / 3.56 GB, free: 76.04 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003814/6.586, allocations: 77.19 kB / 3.56 GB, free: 76.03 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.722e-05/6.586, allocations: 24.16 kB / 3.56 GB, free: 76.03 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 4 (SourceP1.medium.phase,SinkP1.medium.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 44 * 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 9.399e-05/6.586, allocations: 130.2 kB / 3.561 GB, free: 75.92 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.149e-05/6.586, allocations: 39.44 kB / 3.561 GB, free: 75.9 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00213/6.589, allocations: 1.908 MB / 3.563 GB, free: 75.69 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.099e-05/6.589, allocations: 29.42 kB / 3.563 GB, free: 75.69 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/6.589, allocations: 8.625 kB / 3.563 GB, free: 75.68 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.191e-06/6.589, allocations: 0 / 3.563 GB, free: 75.68 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00104/6.59, allocations: 1.052 MB / 3.564 GB, free: 75.45 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/6.59, allocations: 0 / 3.564 GB, free: 75.45 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004002/6.59, allocations: 85.72 kB / 3.564 GB, free: 75.45 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.472e-06/6.59, allocations: 2.219 kB / 3.564 GB, free: 75.45 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.591e-05/6.59, allocations: 13.27 kB / 3.564 GB, free: 75.45 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/6.59, allocations: 5.438 kB / 3.564 GB, free: 75.45 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/6.59, allocations: 0 / 3.564 GB, free: 75.45 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001202/6.591, allocations: 1.037 MB / 3.565 GB, free: 75.21 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002746/6.592, allocations: 271.2 kB / 3.565 GB, free: 75.06 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.6e-05/6.592, allocations: 8.719 kB / 3.565 GB, free: 75.06 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004267/6.592, allocations: 38.53 kB / 3.565 GB, free: 75.06 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.388e-05/6.592, allocations: 43.89 kB / 3.565 GB, free: 75.06 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.176e-05/6.592, allocations: 10.47 kB / 3.565 GB, free: 75.06 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0004098/6.593, allocations: 367.3 kB / 3.565 GB, free: 74.97 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.51e-07/6.593, allocations: 0 / 3.565 GB, free: 74.97 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.00479/6.598, allocations: 1.191 MB / 3.567 GB, free: 74.84 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,$cse2.phase,$cse2.region,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse14.phase,$cse14.region,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * 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.004349/6.602, allocations: 1.435 MB / 3.568 GB, free: 74.58 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0009414/6.603, allocations: 0.7301 MB / 3.569 GB, free: 74.55 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.187e-06/6.603, allocations: 6.25 kB / 3.569 GB, free: 74.55 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0003759/6.603, allocations: 491.1 kB / 3.569 GB, free: 74.55 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001135/6.604, allocations: 227.6 kB / 3.569 GB, free: 74.55 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00137/6.606, allocations: 1.209 MB / 3.571 GB, free: 74.27 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000298/6.606, allocations: 1.008 MB / 3.572 GB, free: 73.57 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0007031/6.607, allocations: 0.5741 MB / 3.572 GB, free: 73.56 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.029e-05/6.607, allocations: 45.36 kB / 3.572 GB, free: 73.55 MB / 0.5417 GB Notification: Performance of SimCode: time 5.41e-07/6.607, allocations: 0 / 3.572 GB, free: 73.55 MB / 0.5417 GB Notification: Performance of Templates: time 0.04023/6.647, allocations: 34.7 MB / 3.606 GB, free: 72.51 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveCompressible/TestValveCompressible.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches