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.001421/0.001421, allocations: 106.7 kB / 17.21 MB, free: 6.27 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.00157/0.00157, allocations: 194 kB / 18.12 MB, free: 5.363 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.373/1.373, allocations: 222.9 MB / 241.8 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.2135/0.2135, allocations: 44.17 MB / 336.1 MB, free: 3.031 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001872/0.001872, allocations: 63.14 kB / 407.7 MB, free: 27.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1443/0.1462, allocations: 60.82 MB / 468.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.03072/0.177, allocations: 29 MB / 497.5 MB, free: 1.75 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0193/0.1963, allocations: 14.29 MB / 0.4998 GB, free: 3.414 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006542/0.1971, allocations: 11.94 kB / 0.4998 GB, free: 3.402 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001001/0.1981, allocations: 214.8 kB / 0.5 GB, free: 3.191 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01139/0.2095, allocations: 2.924 MB / 0.5029 GB, free: 280 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2527/0.4622, allocations: 1.956 MB / 0.5048 GB, free: 13.55 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001693/0.464, allocations: 1.146 MB / 0.5059 GB, free: 13.55 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004164/0.4644, allocations: 215 kB / 0.5061 GB, free: 13.54 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009431/0.4653, allocations: 410.8 kB / 0.5065 GB, free: 13.54 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003797/0.4657, allocations: 270 kB / 0.5068 GB, free: 13.54 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.393e-05/0.4658, allocations: 17.5 kB / 0.5068 GB, free: 13.54 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01664/0.4824, allocations: 7.121 MB / 0.5137 GB, free: 13.52 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002805/0.4827, allocations: 86.58 kB / 0.5138 GB, free: 13.52 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006782/0.4834, allocations: 212.4 kB / 0.514 GB, free: 13.52 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01598/0.4994, allocations: 4.41 MB / 0.5183 GB, free: 13.43 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.662e-06/0.4995, allocations: 0 / 0.5183 GB, free: 13.43 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.4995, allocations: 3.094 kB / 0.5183 GB, free: 13.43 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.115e-06/0.4995, allocations: 3.156 kB / 0.5183 GB, free: 13.43 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.005359/0.5049, allocations: 1.235 MB / 0.5195 GB, free: 12.71 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.336e-05/0.5049, allocations: 14.75 kB / 0.5196 GB, free: 12.71 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001707/0.5066, allocations: 217 kB / 0.5198 GB, free: 12.68 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004254/0.5071, allocations: 362.7 kB / 0.5201 GB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.867e-05/0.5071, allocations: 26.03 kB / 0.5201 GB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.252e-05/0.5072, allocations: 28.88 kB / 0.5202 GB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001497/0.5087, allocations: 0.5973 MB / 0.5207 GB, free: 12.21 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.328e-05/0.5087, allocations: 1.188 kB / 0.5207 GB, free: 12.21 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.959e-05/0.5087, allocations: 11.25 kB / 0.5208 GB, free: 12.21 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.093e-05/0.5088, allocations: 9.125 kB / 0.5208 GB, free: 12.21 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001617/0.5104, allocations: 0.5453 MB / 0.5213 GB, free: 12.08 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.002641/0.513, allocations: 2.617 MB / 0.5239 GB, free: 9.914 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001431/0.5145, allocations: 479.9 kB / 0.5243 GB, free: 9.781 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004165/0.5149, allocations: 196.6 kB / 0.5245 GB, free: 9.738 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04331/0.5582, allocations: 24.21 MB / 0.5481 GB, free: 4.969 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.719e-05/0.5583, allocations: 34.56 kB / 0.5482 GB, free: 4.926 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 2.414e-06/0.5583, allocations: 4 kB / 0.5482 GB, free: 4.922 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.002857/0.5612, allocations: 0.8201 MB / 0.549 GB, free: 4.254 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.573e-05/0.5612, allocations: 106.8 kB / 0.5491 GB, free: 4.125 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003863/0.5616, allocations: 311.6 kB / 0.5494 GB, free: 3.875 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.992e-05/0.5617, allocations: 32.83 kB / 0.5494 GB, free: 3.84 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001362/0.5618, allocations: 204.5 kB / 0.5496 GB, free: 3.684 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.284e-05/0.5619, allocations: 90.16 kB / 0.5497 GB, free: 3.609 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001369/0.562, allocations: 69.09 kB / 0.5498 GB, free: 3.559 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.5622, allocations: 345.9 kB / 0.5501 GB, free: 3.227 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004063/0.5626, allocations: 145.1 kB / 0.5502 GB, free: 3.121 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004829/0.5631, allocations: 242.7 kB / 0.5505 GB, free: 2.895 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008644/0.564, allocations: 387.7 kB / 0.5508 GB, free: 2.582 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.564, allocations: 4 kB / 0.5508 GB, free: 2.578 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001029/0.565, allocations: 440.9 kB / 0.5513 GB, free: 2.246 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.411e-05/0.565, allocations: 8 kB / 0.5513 GB, free: 2.238 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.565, allocations: 0 / 0.5513 GB, free: 2.238 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.104e-05/0.5651, allocations: 4 kB / 0.5513 GB, free: 2.234 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003628/0.5654, allocations: 90.5 kB / 0.5514 GB, free: 2.152 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.091e-05/0.5654, allocations: 12.5 kB / 0.5514 GB, free: 2.145 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003824/0.5658, allocations: 58.47 kB / 0.5514 GB, free: 2.094 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.002e-05/0.5659, allocations: 19.55 kB / 0.5514 GB, free: 2.078 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.0001822/0.5661, allocations: 153.4 kB / 0.5516 GB, free: 1.941 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.385e-05/0.5662, allocations: 36.11 kB / 0.5516 GB, free: 1.91 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002313/0.5685, allocations: 1.937 MB / 0.5535 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.734e-05/0.5685, allocations: 33.83 kB / 0.5535 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.5685, allocations: 0 / 0.5535 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/0.5685, allocations: 7.922 kB / 0.5536 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001059/0.5696, allocations: 1.008 MB / 0.5545 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.5696, allocations: 0 / 0.5545 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003371/0.57, allocations: 74.84 kB / 0.5546 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.955e-06/0.57, allocations: 14.98 kB / 0.5546 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.922e-05/0.57, allocations: 4 kB / 0.5546 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.641e-06/0.57, allocations: 7.938 kB / 0.5546 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.57, allocations: 3.938 kB / 0.5546 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001531/0.5716, allocations: 1.093 MB / 0.5557 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000169/0.5717, allocations: 167.8 kB / 0.5559 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.022e-05/0.5718, allocations: 23.69 kB / 0.5559 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003273/0.5722, allocations: 47.89 kB / 0.5559 GB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001048/0.5723, allocations: 31.95 kB / 0.556 GB, free: 14.08 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.472e-05/0.5723, allocations: 8 kB / 0.556 GB, free: 14.07 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003855/0.5727, allocations: 331.1 kB / 0.5563 GB, free: 13.75 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5727, allocations: 0 / 0.5563 GB, free: 13.75 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004028/0.5767, allocations: 0.9877 MB / 0.5573 GB, free: 12.76 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.006249/0.583, allocations: 1.176 MB / 0.5584 GB, free: 11.68 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001448/0.5845, allocations: 0.6117 MB / 0.559 GB, free: 11.08 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.5845, allocations: 0.625 kB / 0.559 GB, free: 11.08 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007458/0.5852, allocations: 0.5199 MB / 0.5595 GB, free: 10.57 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001295/0.5865, allocations: 203.4 kB / 0.5597 GB, free: 10.38 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002467/0.589, allocations: 1.852 MB / 0.5615 GB, free: 8.5 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000595/0.5896, allocations: 0.9638 MB / 0.5624 GB, free: 7.512 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004805/0.5901, allocations: 270.9 kB / 0.5627 GB, free: 7.258 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001151/0.5902, allocations: 47.42 kB / 0.5628 GB, free: 7.211 MB / 414.1 MB Notification: Performance of SimCode: time 9.72e-07/0.5902, allocations: 0 / 0.5628 GB, free: 7.211 MB / 414.1 MB Notification: Performance of Templates: time 0.05541/0.6457, allocations: 38.96 MB / 0.6008 GB, free: 464 kB / 446.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveLinear/TestValveLinear.csv","/var/lib/jenkins/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