Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001239/0.001239, allocations: 106.5 kB / 16.41 MB, free: 6.504 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.001146/0.001146, allocations: 192.2 kB / 17.34 MB, free: 5.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.275/1.275, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2056/0.2056, allocations: 43.53 MB / 314.1 MB, free: 428 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001735/0.001735, allocations: 67.91 kB / 441.8 MB, free: 5.633 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.109, allocations: 57.79 MB / 499.6 MB, free: 11.77 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.0304/0.1395, allocations: 28.14 MB / 0.5154 GB, free: 15.52 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01636/0.1559, allocations: 13.3 MB / 0.5283 GB, free: 2.18 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004538/0.1564, allocations: 11.94 kB / 0.5284 GB, free: 2.168 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008229/0.1573, allocations: 258.4 kB / 0.5286 GB, free: 1.914 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2399/0.3971, allocations: 3.651 MB / 0.5322 GB, free: 5.516 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005976/0.4031, allocations: 2.365 MB / 0.5345 GB, free: 5.496 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001632/0.4048, allocations: 0.8979 MB / 0.5354 GB, free: 5.496 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004176/0.4052, allocations: 251.6 kB / 0.5356 GB, free: 5.488 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000726/0.406, allocations: 447.9 kB / 0.536 GB, free: 5.484 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003096/0.4063, allocations: 272 kB / 0.5363 GB, free: 5.484 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.298e-05/0.4063, allocations: 33.34 kB / 0.5363 GB, free: 5.484 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01485/0.4212, allocations: 7.231 MB / 0.5434 GB, free: 5.465 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002107/0.4214, allocations: 99.27 kB / 0.5435 GB, free: 5.465 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004379/0.4219, allocations: 221.2 kB / 0.5437 GB, free: 5.465 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.012/0.4339, allocations: 4.402 MB / 0.548 GB, free: 5.312 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.4339, allocations: 0 / 0.548 GB, free: 5.312 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.434, allocations: 0 / 0.548 GB, free: 5.312 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.888e-06/0.434, allocations: 5 kB / 0.548 GB, free: 5.312 MB / 414.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.00439/0.4384, allocations: 1.238 MB / 0.5492 GB, free: 4.59 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.741e-05/0.4384, allocations: 16.77 kB / 0.5492 GB, free: 4.586 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001717/0.4402, allocations: 213.6 kB / 0.5494 GB, free: 4.559 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006043/0.4408, allocations: 374.6 kB / 0.5498 GB, free: 4.32 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.53e-05/0.4408, allocations: 26.59 kB / 0.5498 GB, free: 4.32 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.268e-05/0.4409, allocations: 29.97 kB / 0.5498 GB, free: 4.32 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001427/0.4423, allocations: 0.598 MB / 0.5504 GB, free: 4.184 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.771e-05/0.4423, allocations: 1.406 kB / 0.5504 GB, free: 4.184 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.556e-05/0.4424, allocations: 14.94 kB / 0.5504 GB, free: 4.184 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.186e-05/0.4424, allocations: 11.97 kB / 0.5504 GB, free: 4.184 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001527/0.4439, allocations: 0.5466 MB / 0.551 GB, free: 4.18 MB / 414.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.002397/0.4464, allocations: 2.624 MB / 0.5535 GB, free: 2.086 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001456/0.4478, allocations: 472.6 kB / 0.554 GB, free: 1.949 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004377/0.4483, allocations: 195.6 kB / 0.5542 GB, free: 1.906 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04454/0.4928, allocations: 24.32 MB / 0.5779 GB, free: 14.88 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.548e-05/0.4929, allocations: 38.56 kB / 0.578 GB, free: 14.84 MB / 446.1 MB Notification: Performance of pre-optimization done (n=25): time 3.056e-06/0.4929, allocations: 0 / 0.578 GB, free: 14.84 MB / 446.1 MB Notification: Performance of matching and sorting (n=25): time 0.002948/0.4959, allocations: 0.8148 MB / 0.5788 GB, free: 14.17 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.51e-05/0.496, allocations: 114.1 kB / 0.5789 GB, free: 14.04 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004106/0.4964, allocations: 315.4 kB / 0.5792 GB, free: 13.78 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.218e-05/0.4964, allocations: 29.33 kB / 0.5792 GB, free: 13.75 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001493/0.4966, allocations: 203.4 kB / 0.5794 GB, free: 13.6 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001014/0.4967, allocations: 84.88 kB / 0.5795 GB, free: 13.52 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001218/0.4968, allocations: 63.94 kB / 0.5795 GB, free: 13.48 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.497, allocations: 345.9 kB / 0.5799 GB, free: 13.14 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003779/0.4974, allocations: 149.5 kB / 0.58 GB, free: 13.04 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004574/0.4978, allocations: 242.6 kB / 0.5802 GB, free: 12.8 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007919/0.4986, allocations: 382.6 kB / 0.5806 GB, free: 12.5 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.4987, allocations: 0 / 0.5806 GB, free: 12.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001004/0.4997, allocations: 449.8 kB / 0.581 GB, free: 12.13 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.021e-05/0.4997, allocations: 4 kB / 0.581 GB, free: 12.12 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/0.4997, allocations: 4 kB / 0.581 GB, free: 12.12 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.281e-05/0.4997, allocations: 7.938 kB / 0.581 GB, free: 12.11 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003461/0.5001, allocations: 91.75 kB / 0.5811 GB, free: 12.03 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.288e-05/0.5001, allocations: 6.25 kB / 0.5811 GB, free: 12.02 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003495/0.5005, allocations: 51.64 kB / 0.5812 GB, free: 11.97 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.538e-05/0.5005, allocations: 16 kB / 0.5812 GB, free: 11.96 MB / 446.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.0002129/0.5007, allocations: 165 kB / 0.5814 GB, free: 11.79 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000106/0.5009, allocations: 39.98 kB / 0.5814 GB, free: 11.75 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002564/0.5034, allocations: 1.908 MB / 0.5833 GB, free: 9.848 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.862e-05/0.5035, allocations: 31.89 kB / 0.5833 GB, free: 9.816 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.5035, allocations: 0 / 0.5833 GB, free: 9.816 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.171e-06/0.5035, allocations: 3.984 kB / 0.5833 GB, free: 9.812 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001033/0.5045, allocations: 1.014 MB / 0.5843 GB, free: 8.762 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.504e-06/0.5045, allocations: 5.5 kB / 0.5843 GB, free: 8.758 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003088/0.5049, allocations: 82.83 kB / 0.5844 GB, free: 8.68 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.259e-06/0.5049, allocations: 0 / 0.5844 GB, free: 8.68 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.334e-05/0.5049, allocations: 8 kB / 0.5844 GB, free: 8.672 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.977e-06/0.5049, allocations: 3.938 kB / 0.5844 GB, free: 8.668 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.5049, allocations: 0 / 0.5844 GB, free: 8.668 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001553/0.5065, allocations: 1.096 MB / 0.5854 GB, free: 7.555 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001678/0.5067, allocations: 167.8 kB / 0.5856 GB, free: 7.371 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.499e-05/0.5068, allocations: 23.69 kB / 0.5856 GB, free: 7.348 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002818/0.507, allocations: 31.91 kB / 0.5857 GB, free: 7.316 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001026/0.5072, allocations: 39.94 kB / 0.5857 GB, free: 7.277 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.823e-05/0.5072, allocations: 12.69 kB / 0.5857 GB, free: 7.266 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003543/0.5075, allocations: 323.1 kB / 0.586 GB, free: 6.953 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.034e-06/0.5076, allocations: 3.844 kB / 0.586 GB, free: 6.953 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004128/0.5117, allocations: 0.9992 MB / 0.587 GB, free: 5.957 MB / 446.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.007304/0.519, allocations: 1.17 MB / 0.5881 GB, free: 4.891 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001309/0.5203, allocations: 0.6126 MB / 0.5887 GB, free: 4.289 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.5203, allocations: 0 / 0.5887 GB, free: 4.289 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007298/0.5211, allocations: 0.5205 MB / 0.5892 GB, free: 3.777 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001159/0.5223, allocations: 215 kB / 0.5894 GB, free: 3.57 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002189/0.5245, allocations: 1.51 MB / 0.5909 GB, free: 2.039 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005067/0.525, allocations: 0.9599 MB / 0.5919 GB, free: 1.055 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004548/0.5254, allocations: 281.5 kB / 0.5921 GB, free: 0.7891 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001073/0.5256, allocations: 47.42 kB / 0.5922 GB, free: 0.7422 MB / 446.1 MB Notification: Performance of SimCode: time 2.715e-06/0.5256, allocations: 0 / 0.5922 GB, free: 0.7422 MB / 446.1 MB Notification: Performance of Templates: time 0.05475/0.5803, allocations: 39.57 MB / 0.6308 GB, free: 9.227 MB / 494.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValveLinear/TestValveLinear.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches