Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.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.TestValveDiscrete,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.TestValveDiscrete") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,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.TestValveDiscrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001143/0.001143, allocations: 102.7 kB / 16.27 MB, free: 6.344 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.001172/0.001172, allocations: 192.7 kB / 17.2 MB, free: 5.945 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.306/1.306, allocations: 205.1 MB / 223.1 MB, free: 12.31 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.2313/0.2313, allocations: 43.53 MB / 313.9 MB, free: 0.5352 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.001612/0.001612, allocations: 65.88 kB / 382.7 MB, free: 56.69 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1265/0.1281, allocations: 57.79 MB / 440.5 MB, free: 6.918 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.0312/0.1594, allocations: 28.12 MB / 468.6 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01529/0.1747, allocations: 13.29 MB / 481.9 MB, free: 13.35 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003615/0.1751, allocations: 15.88 kB / 481.9 MB, free: 13.34 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007587/0.1759, allocations: 246.4 kB / 482.2 MB, free: 13.09 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009846/0.1858, allocations: 3.654 MB / 485.8 MB, free: 9.441 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007187/0.193, allocations: 2.366 MB / 488.2 MB, free: 7.078 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001328/0.1943, allocations: 0.8925 MB / 489.1 MB, free: 6.18 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004767/0.1948, allocations: 248.7 kB / 489.3 MB, free: 5.93 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000907/0.1957, allocations: 426.3 kB / 489.8 MB, free: 5.512 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003551/0.1961, allocations: 270.9 kB / 490 MB, free: 5.246 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.983e-05/0.1962, allocations: 32 kB / 490.1 MB, free: 5.215 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01517/0.2113, allocations: 7.059 MB / 497.1 MB, free: 14.15 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002102/0.2116, allocations: 99.67 kB / 497.2 MB, free: 14.05 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003481/0.212, allocations: 219 kB / 497.4 MB, free: 13.84 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01211/0.2241, allocations: 4.409 MB / 0.4901 GB, free: 9.418 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.053e-06/0.2241, allocations: 0 / 0.4901 GB, free: 9.418 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.2241, allocations: 4 kB / 0.4901 GB, free: 9.414 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.845e-05/0.2242, allocations: 0 / 0.4901 GB, free: 9.414 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.003939/0.2281, allocations: 1.224 MB / 0.4913 GB, free: 8.141 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.901e-05/0.2282, allocations: 11.89 kB / 0.4913 GB, free: 8.129 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001903/0.2301, allocations: 212.3 kB / 0.4915 GB, free: 7.922 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005991/0.2307, allocations: 367.2 kB / 0.4918 GB, free: 7.523 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.489e-05/0.2308, allocations: 32.97 kB / 0.4919 GB, free: 7.488 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.95e-05/0.2308, allocations: 28.38 kB / 0.4919 GB, free: 7.461 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001637/0.2325, allocations: 0.5783 MB / 0.4925 GB, free: 6.844 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.505e-05/0.2325, allocations: 3.984 kB / 0.4925 GB, free: 6.84 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.841e-05/0.2326, allocations: 12 kB / 0.4925 GB, free: 6.828 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.321e-05/0.2326, allocations: 11.94 kB / 0.4925 GB, free: 6.816 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001626/0.2342, allocations: 0.525 MB / 0.493 GB, free: 6.289 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.003368/0.2376, allocations: 2.636 MB / 0.4956 GB, free: 3.418 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001584/0.2392, allocations: 458.1 kB / 0.496 GB, free: 2.961 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004347/0.2397, allocations: 185.8 kB / 0.4962 GB, free: 2.777 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0522/0.2919, allocations: 24.21 MB / 0.5198 GB, free: 7.676 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.779e-05/0.292, allocations: 34.56 kB / 0.5199 GB, free: 7.633 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.384e-06/0.292, allocations: 4 kB / 0.5199 GB, free: 7.629 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.002996/0.295, allocations: 0.7933 MB / 0.5206 GB, free: 6.828 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.018e-05/0.2951, allocations: 110.8 kB / 0.5208 GB, free: 6.695 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004061/0.2955, allocations: 312.5 kB / 0.521 GB, free: 6.387 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.168e-05/0.2955, allocations: 33.7 kB / 0.5211 GB, free: 6.348 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001676/0.2957, allocations: 196.2 kB / 0.5213 GB, free: 6.148 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.914e-05/0.2958, allocations: 94.73 kB / 0.5214 GB, free: 6.055 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001236/0.296, allocations: 69.69 kB / 0.5214 GB, free: 5.98 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.2961, allocations: 338.8 kB / 0.5217 GB, free: 5.641 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003866/0.2965, allocations: 135.9 kB / 0.5219 GB, free: 5.508 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004571/0.297, allocations: 235 kB / 0.5221 GB, free: 5.238 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008477/0.2978, allocations: 357.1 kB / 0.5224 GB, free: 4.855 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.2978, allocations: 4 kB / 0.5224 GB, free: 4.852 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001096/0.2989, allocations: 413.7 kB / 0.5228 GB, free: 4.441 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.346e-05/0.299, allocations: 8 kB / 0.5228 GB, free: 4.434 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/0.299, allocations: 4.312 kB / 0.5229 GB, free: 4.43 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.183e-05/0.299, allocations: 11.94 kB / 0.5229 GB, free: 4.418 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003292/0.2994, allocations: 83.88 kB / 0.5229 GB, free: 4.336 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.209e-05/0.2994, allocations: 7.938 kB / 0.523 GB, free: 4.328 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003013/0.2997, allocations: 47.66 kB / 0.523 GB, free: 4.281 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.469e-05/0.2997, allocations: 12 kB / 0.523 GB, free: 4.27 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: 5 (Opening.y,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.00021/0.3, allocations: 169.6 kB / 0.5232 GB, free: 4.094 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001083/0.3001, allocations: 39.53 kB / 0.5232 GB, free: 4.055 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002463/0.3025, allocations: 1.893 MB / 0.5251 GB, free: 2.148 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.884e-05/0.3026, allocations: 35.88 kB / 0.5251 GB, free: 2.113 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.538e-06/0.3026, allocations: 3.984 kB / 0.5251 GB, free: 2.109 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.3026, allocations: 0 / 0.5251 GB, free: 2.109 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001066/0.3037, allocations: 1.015 MB / 0.5261 GB, free: 1.047 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.972e-06/0.3037, allocations: 0 / 0.5261 GB, free: 1.047 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000302/0.304, allocations: 67.94 kB / 0.5262 GB, free: 0.9805 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.304, allocations: 4 kB / 0.5262 GB, free: 0.9766 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.297e-05/0.304, allocations: 8 kB / 0.5262 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.25e-06/0.3041, allocations: 3.938 kB / 0.5262 GB, free: 0.9648 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.3041, allocations: 3.938 kB / 0.5262 GB, free: 0.9609 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2394/0.5435, allocations: 1.086 MB / 0.5272 GB, free: 93.97 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002622/0.5438, allocations: 157.7 kB / 0.5274 GB, free: 93.88 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001707/0.544, allocations: 25.56 kB / 0.5274 GB, free: 93.88 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005153/0.5445, allocations: 26.03 kB / 0.5274 GB, free: 93.88 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001533/0.5447, allocations: 36.52 kB / 0.5275 GB, free: 93.88 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.641e-05/0.5447, allocations: 8.344 kB / 0.5275 GB, free: 93.88 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000504/0.5452, allocations: 330.5 kB / 0.5278 GB, free: 93.79 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5452, allocations: 0 / 0.5278 GB, free: 93.79 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003721/0.549, allocations: 0.9929 MB / 0.5288 GB, free: 93.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: 19 ($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,Opening.y) * 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.005102/0.5541, allocations: 1.166 MB / 0.5299 GB, free: 93.65 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001974/0.5561, allocations: 0.6092 MB / 0.5305 GB, free: 93.64 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.531e-06/0.5561, allocations: 0.9062 kB / 0.5305 GB, free: 93.64 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007806/0.5569, allocations: 0.5114 MB / 0.531 GB, free: 93.64 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001461/0.5583, allocations: 217.9 kB / 0.5312 GB, free: 93.63 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002205/0.5606, allocations: 1.522 MB / 0.5327 GB, free: 93.13 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004616/0.561, allocations: 0.9604 MB / 0.5336 GB, free: 92.43 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006295/0.5617, allocations: 279.7 kB / 0.5339 GB, free: 92.42 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001124/0.5618, allocations: 42.22 kB / 0.5339 GB, free: 92.41 MB / 414.1 MB Notification: Performance of SimCode: time 6.91e-07/0.5618, allocations: 0 / 0.5339 GB, free: 92.41 MB / 414.1 MB Notification: Performance of Templates: time 0.04582/0.6076, allocations: 39.42 MB / 0.5724 GB, free: 61.77 MB / 414.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches