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.001023/0.001023, allocations: 101.8 kB / 16.27 MB, free: 5.93 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.001093/0.001093, allocations: 190.1 kB / 17.2 MB, free: 5.574 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.604/1.604, allocations: 205.1 MB / 223.1 MB, free: 12.3 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.2104/0.2104, allocations: 43.52 MB / 313.9 MB, free: 0.5273 MB / 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.001739/0.001739, allocations: 66.17 kB / 382.7 MB, free: 56.7 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1246/0.1264, allocations: 57.8 MB / 440.5 MB, free: 6.906 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.03018/0.1566, allocations: 28.12 MB / 468.7 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01584/0.1725, allocations: 13.3 MB / 482 MB, free: 13.32 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004173/0.1729, allocations: 11.94 kB / 482 MB, free: 13.31 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008486/0.1738, allocations: 254.3 kB / 482.2 MB, free: 13.06 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01134/0.1852, allocations: 3.654 MB / 485.9 MB, free: 9.41 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007255/0.1925, allocations: 2.367 MB / 488.2 MB, free: 7.043 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001575/0.194, allocations: 0.8964 MB / 489.1 MB, free: 6.141 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004471/0.1945, allocations: 252.7 kB / 489.4 MB, free: 5.887 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007979/0.1953, allocations: 430.3 kB / 489.8 MB, free: 5.465 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003497/0.1957, allocations: 274.8 kB / 490.1 MB, free: 5.195 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.181e-05/0.1957, allocations: 39.94 kB / 490.1 MB, free: 5.156 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0136/0.2093, allocations: 7.055 MB / 497.2 MB, free: 14.09 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002529/0.2096, allocations: 91.67 kB / 497.3 MB, free: 14 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004048/0.2101, allocations: 223 kB / 497.5 MB, free: 13.79 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01252/0.2226, allocations: 4.413 MB / 0.4901 GB, free: 9.363 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.092e-06/0.2226, allocations: 0 / 0.4901 GB, free: 9.363 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.2227, allocations: 0 / 0.4901 GB, free: 9.363 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.182e-05/0.2227, allocations: 0 / 0.4901 GB, free: 9.363 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.003898/0.2266, allocations: 1.24 MB / 0.4913 GB, free: 8.074 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.762e-05/0.2266, allocations: 15.89 kB / 0.4913 GB, free: 8.059 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001808/0.2285, allocations: 216.1 kB / 0.4916 GB, free: 7.848 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000562/0.229, allocations: 363.3 kB / 0.4919 GB, free: 7.453 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.166e-05/0.2291, allocations: 21.03 kB / 0.4919 GB, free: 7.43 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.512e-05/0.2292, allocations: 32.38 kB / 0.4919 GB, free: 7.398 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00159/0.2308, allocations: 0.5977 MB / 0.4925 GB, free: 6.762 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/0.2308, allocations: 0 / 0.4925 GB, free: 6.762 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.596e-05/0.2308, allocations: 12 kB / 0.4925 GB, free: 6.75 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.112e-05/0.2309, allocations: 12 kB / 0.4926 GB, free: 6.738 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001677/0.2325, allocations: 0.5406 MB / 0.4931 GB, free: 6.195 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.003285/0.2358, allocations: 2.636 MB / 0.4957 GB, free: 3.324 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001563/0.2374, allocations: 466.1 kB / 0.4961 GB, free: 2.859 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004804/0.2379, allocations: 200.7 kB / 0.4963 GB, free: 2.66 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04977/0.2877, allocations: 24.21 MB / 0.5199 GB, free: 7.562 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.292e-05/0.2878, allocations: 38.5 kB / 0.52 GB, free: 7.516 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.525e-06/0.2878, allocations: 0 / 0.52 GB, free: 7.516 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.003082/0.2909, allocations: 0.8253 MB / 0.5208 GB, free: 6.684 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.977e-05/0.2909, allocations: 106.8 kB / 0.5209 GB, free: 6.555 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003883/0.2913, allocations: 308.5 kB / 0.5212 GB, free: 6.25 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.158e-05/0.2914, allocations: 29.7 kB / 0.5212 GB, free: 6.215 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001647/0.2916, allocations: 208.2 kB / 0.5214 GB, free: 6.004 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.395e-05/0.2917, allocations: 90.73 kB / 0.5215 GB, free: 5.914 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001126/0.2918, allocations: 61.69 kB / 0.5215 GB, free: 5.848 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.00013/0.2919, allocations: 350.8 kB / 0.5219 GB, free: 5.496 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000431/0.2924, allocations: 147.8 kB / 0.522 GB, free: 5.352 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004798/0.2928, allocations: 243 kB / 0.5223 GB, free: 5.074 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009148/0.2938, allocations: 377.1 kB / 0.5226 GB, free: 4.672 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.2938, allocations: 0 / 0.5226 GB, free: 4.672 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001069/0.2949, allocations: 449.5 kB / 0.523 GB, free: 4.227 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.031e-05/0.2949, allocations: 4.312 kB / 0.523 GB, free: 4.223 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.2949, allocations: 8 kB / 0.5231 GB, free: 4.215 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.041e-05/0.2949, allocations: 7.938 kB / 0.5231 GB, free: 4.207 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003459/0.2953, allocations: 83.88 kB / 0.5231 GB, free: 4.125 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.497e-05/0.2953, allocations: 11.92 kB / 0.5232 GB, free: 4.113 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003138/0.2956, allocations: 47.66 kB / 0.5232 GB, free: 4.066 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.1e-05/0.2957, allocations: 16 kB / 0.5232 GB, free: 4.051 MB / 414.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.000177/0.2959, allocations: 165.7 kB / 0.5234 GB, free: 3.879 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.245e-05/0.296, allocations: 35.62 kB / 0.5234 GB, free: 3.844 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002439/0.2984, allocations: 1.924 MB / 0.5253 GB, free: 1.906 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.79e-05/0.2984, allocations: 35.89 kB / 0.5253 GB, free: 1.871 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/0.2985, allocations: 3.984 kB / 0.5253 GB, free: 1.867 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.2985, allocations: 0 / 0.5253 GB, free: 1.867 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001001/0.2995, allocations: 1.008 MB / 0.5263 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.914e-06/0.2995, allocations: 4 kB / 0.5263 GB, free: 0.8086 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003273/0.2998, allocations: 91.73 kB / 0.5264 GB, free: 0.7188 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.2998, allocations: 0 / 0.5264 GB, free: 0.7188 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.31e-05/0.2999, allocations: 8 kB / 0.5264 GB, free: 0.7109 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.2999, allocations: 3.938 kB / 0.5264 GB, free: 0.707 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.2999, allocations: 0 / 0.5264 GB, free: 0.707 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2395/0.5394, allocations: 1.1 MB / 0.5275 GB, free: 94.01 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003239/0.5397, allocations: 165.2 kB / 0.5276 GB, free: 93.92 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001068/0.5399, allocations: 22.22 kB / 0.5277 GB, free: 93.92 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003249/0.5402, allocations: 37.11 kB / 0.5277 GB, free: 93.92 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001356/0.5403, allocations: 29.52 kB / 0.5277 GB, free: 93.92 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.188e-05/0.5404, allocations: 13.66 kB / 0.5277 GB, free: 93.92 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004182/0.5408, allocations: 326.8 kB / 0.528 GB, free: 93.83 MB / 414.1 MB Notification: Performance of sort global known variables: time 4e-07/0.5408, allocations: 0 / 0.528 GB, free: 93.83 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003675/0.5445, allocations: 0.9901 MB / 0.529 GB, free: 93.81 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.005079/0.5496, allocations: 1.168 MB / 0.5302 GB, free: 93.7 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001961/0.5516, allocations: 0.6275 MB / 0.5308 GB, free: 93.69 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.395e-06/0.5516, allocations: 1.438 kB / 0.5308 GB, free: 93.69 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008536/0.5525, allocations: 0.5263 MB / 0.5313 GB, free: 93.69 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001799/0.5543, allocations: 225.7 kB / 0.5315 GB, free: 93.68 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002763/0.5571, allocations: 1.524 MB / 0.533 GB, free: 93.18 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005945/0.5577, allocations: 0.9646 MB / 0.5339 GB, free: 92.48 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0008454/0.5585, allocations: 272 kB / 0.5342 GB, free: 92.48 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001571/0.5587, allocations: 47 kB / 0.5342 GB, free: 92.47 MB / 414.1 MB Notification: Performance of SimCode: time 9.52e-07/0.5587, allocations: 0 / 0.5342 GB, free: 92.47 MB / 414.1 MB Notification: Performance of Templates: time 0.07366/0.6324, allocations: 39.57 MB / 0.5729 GB, free: 61.34 MB / 414.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