Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.conf.json 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/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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,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|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,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|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001573/0.001573, allocations: 110.5 kB / 17.86 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001724/0.001724, allocations: 201.9 kB / 18.78 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.38/1.38, allocations: 222.9 MB / 242.5 MB, free: 15.57 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2174/0.2174, allocations: 44.17 MB / 336.8 MB, free: 3.031 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 64.42 kB / 408.4 MB, free: 27.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1161, allocations: 60.83 MB / 469.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.03545/0.1516, allocations: 28.99 MB / 498.2 MB, free: 1.75 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01934/0.171, allocations: 14.28 MB / 0.5005 GB, free: 3.422 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004956/0.1716, allocations: 11.88 kB / 0.5005 GB, free: 3.41 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008468/0.1724, allocations: 218.8 kB / 0.5007 GB, free: 3.195 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009941/0.1824, allocations: 2.926 MB / 0.5035 GB, free: 280 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2223/0.4048, allocations: 1.962 MB / 0.5054 GB, free: 13.59 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0017/0.4065, allocations: 1.141 MB / 0.5066 GB, free: 13.59 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004057/0.4069, allocations: 217.8 kB / 0.5068 GB, free: 13.58 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009059/0.4078, allocations: 405.1 kB / 0.5072 GB, free: 13.58 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004046/0.4083, allocations: 274.3 kB / 0.5074 GB, free: 13.58 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.428e-05/0.4083, allocations: 17.47 kB / 0.5074 GB, free: 13.58 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01539/0.4237, allocations: 7.124 MB / 0.5144 GB, free: 13.57 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002535/0.424, allocations: 84.97 kB / 0.5145 GB, free: 13.57 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004892/0.4245, allocations: 214.2 kB / 0.5147 GB, free: 13.57 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007498/0.432, allocations: 3.008 MB / 0.5176 GB, free: 13.51 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.4321, allocations: 1.062 kB / 0.5176 GB, free: 13.51 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.4321, allocations: 0 / 0.5176 GB, free: 13.51 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.247e-06/0.4321, allocations: 0.5 kB / 0.5176 GB, free: 13.51 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.004535/0.4366, allocations: 1.244 MB / 0.5188 GB, free: 12.8 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.447e-05/0.4367, allocations: 13.78 kB / 0.5188 GB, free: 12.8 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001745/0.4384, allocations: 218.9 kB / 0.519 GB, free: 12.78 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004613/0.4389, allocations: 361.3 kB / 0.5194 GB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.261e-05/0.4389, allocations: 26.53 kB / 0.5194 GB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.629e-05/0.439, allocations: 29.59 kB / 0.5194 GB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001535/0.4405, allocations: 0.5893 MB / 0.52 GB, free: 12.41 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.479e-05/0.4406, allocations: 3.469 kB / 0.52 GB, free: 12.41 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.485e-05/0.4406, allocations: 17.72 kB / 0.52 GB, free: 12.41 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.001e-05/0.4406, allocations: 9.781 kB / 0.5201 GB, free: 12.41 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001618/0.4423, allocations: 0.5447 MB / 0.5206 GB, free: 12.41 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.002785/0.4451, allocations: 2.62 MB / 0.5231 GB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001614/0.4467, allocations: 469 kB / 0.5236 GB, free: 10.35 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004547/0.4472, allocations: 202.2 kB / 0.5238 GB, free: 10.3 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04575/0.4929, allocations: 24.21 MB / 0.5474 GB, free: 5.898 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.225e-05/0.493, allocations: 33.5 kB / 0.5475 GB, free: 5.859 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 2.395e-06/0.493, allocations: 0 / 0.5475 GB, free: 5.859 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.003008/0.496, allocations: 0.8227 MB / 0.5483 GB, free: 5.188 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.48e-05/0.4961, allocations: 110.8 kB / 0.5484 GB, free: 5.055 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003725/0.4965, allocations: 303.8 kB / 0.5487 GB, free: 4.812 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.837e-05/0.4965, allocations: 32.2 kB / 0.5487 GB, free: 4.777 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001335/0.4967, allocations: 200.9 kB / 0.5489 GB, free: 4.625 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.089e-05/0.4968, allocations: 94.12 kB / 0.549 GB, free: 4.547 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001143/0.4969, allocations: 70.16 kB / 0.549 GB, free: 4.496 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.497, allocations: 339.6 kB / 0.5494 GB, free: 4.168 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004132/0.4975, allocations: 150.9 kB / 0.5495 GB, free: 4.059 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004775/0.498, allocations: 241.5 kB / 0.5497 GB, free: 3.832 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008769/0.4988, allocations: 383.5 kB / 0.5501 GB, free: 3.52 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.4989, allocations: 0 / 0.5501 GB, free: 3.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001073/0.4999, allocations: 443.1 kB / 0.5505 GB, free: 3.188 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.426e-05/0.5, allocations: 12.3 kB / 0.5505 GB, free: 3.176 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.5, allocations: 4 kB / 0.5505 GB, free: 3.172 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.5, allocations: 4 kB / 0.5505 GB, free: 3.168 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003829/0.5004, allocations: 95.56 kB / 0.5506 GB, free: 3.086 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.194e-05/0.5004, allocations: 7.375 kB / 0.5506 GB, free: 3.082 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003916/0.5008, allocations: 61.27 kB / 0.5507 GB, free: 3.027 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.288e-05/0.5009, allocations: 15.44 kB / 0.5507 GB, free: 3.016 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 4 (SinkP1.medium.phase,SourceP1.medium.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 (35): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002075/0.5011, allocations: 161.3 kB / 0.5509 GB, free: 2.875 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.373e-05/0.5012, allocations: 31.62 kB / 0.5509 GB, free: 2.844 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002386/0.5035, allocations: 1.921 MB / 0.5528 GB, free: 1.555 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.099e-05/0.5036, allocations: 34.52 kB / 0.5528 GB, free: 1.531 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.5036, allocations: 6.328 kB / 0.5528 GB, free: 1.527 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.5036, allocations: 0 / 0.5528 GB, free: 1.527 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001099/0.5047, allocations: 1.012 MB / 0.5538 GB, free: 0.793 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/0.5047, allocations: 0 / 0.5538 GB, free: 0.793 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003575/0.5051, allocations: 73.92 kB / 0.5539 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.516e-06/0.5051, allocations: 7.281 kB / 0.5539 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.598e-05/0.5052, allocations: 4.312 kB / 0.5539 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.185e-06/0.5052, allocations: 11.88 kB / 0.5539 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.5052, allocations: 0 / 0.5539 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001633/0.5068, allocations: 1.098 MB / 0.555 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001839/0.507, allocations: 165.5 kB / 0.5551 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.347e-05/0.5071, allocations: 31.69 kB / 0.5552 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003124/0.5074, allocations: 39.89 kB / 0.5552 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/0.5075, allocations: 31.95 kB / 0.5552 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.766e-05/0.5076, allocations: 11.98 kB / 0.5552 GB, free: 15.45 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003836/0.508, allocations: 331.1 kB / 0.5556 GB, free: 15.13 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.508, allocations: 0 / 0.5556 GB, free: 15.13 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004503/0.5125, allocations: 0.9955 MB / 0.5565 GB, free: 14.13 MB / 414.1 MB 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,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008133/0.5206, allocations: 1.173 MB / 0.5577 GB, free: 13.06 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001761/0.5224, allocations: 0.6077 MB / 0.5583 GB, free: 12.46 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.942e-06/0.5225, allocations: 0 / 0.5583 GB, free: 12.46 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008113/0.5233, allocations: 0.5163 MB / 0.5588 GB, free: 11.95 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001444/0.5248, allocations: 221.9 kB / 0.559 GB, free: 11.75 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002825/0.5276, allocations: 1.883 MB / 0.5608 GB, free: 9.836 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005883/0.5282, allocations: 0.9638 MB / 0.5618 GB, free: 8.848 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001735/0.5284, allocations: 43.42 kB / 0.5618 GB, free: 8.805 MB / 414.1 MB Notification: Performance of SimCode: time 1.613e-06/0.5284, allocations: 0 / 0.5618 GB, free: 8.805 MB / 414.1 MB Notification: Performance of Templates: time 0.03811/0.5665, allocations: 24.05 MB / 0.5853 GB, free: 0.8594 MB / 430.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveLinear/TestValveLinear.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches