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.001041/0.001041, allocations: 108.2 kB / 18.39 MB, free: 4.629 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.001066/0.001066, allocations: 182.9 kB / 19.33 MB, free: 3.699 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.384/1.384, allocations: 222.9 MB / 243 MB, free: 15.08 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.1991/0.1991, allocations: 44.18 MB / 337.4 MB, free: 2.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 66.62 kB / 409.9 MB, free: 26.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1219, allocations: 60.83 MB / 470.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.02886/0.1508, allocations: 28.13 MB / 498.8 MB, free: 1.398 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01665/0.1675, allocations: 13.31 MB / 0.5001 GB, free: 4.039 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004253/0.168, allocations: 7.938 kB / 0.5002 GB, free: 4.031 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008483/0.1689, allocations: 246.4 kB / 0.5004 GB, free: 3.789 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01052/0.1794, allocations: 3.669 MB / 0.504 GB, free: 124 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2402/0.4196, allocations: 2.355 MB / 0.5063 GB, free: 13.52 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001862/0.4215, allocations: 0.8973 MB / 0.5071 GB, free: 13.52 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000821/0.4224, allocations: 250.5 kB / 0.5074 GB, free: 13.51 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001737/0.4241, allocations: 449 kB / 0.5078 GB, free: 13.5 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007/0.4248, allocations: 277.5 kB / 0.5081 GB, free: 13.5 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.233e-05/0.4249, allocations: 33.59 kB / 0.5081 GB, free: 13.5 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0181/0.443, allocations: 7.216 MB / 0.5152 GB, free: 13.5 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002677/0.4433, allocations: 98.5 kB / 0.5153 GB, free: 13.5 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004969/0.4438, allocations: 224 kB / 0.5155 GB, free: 13.5 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01444/0.4583, allocations: 4.416 MB / 0.5198 GB, free: 13.4 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.086e-06/0.4583, allocations: 0 / 0.5198 GB, free: 13.4 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.4584, allocations: 0.875 kB / 0.5198 GB, free: 13.4 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.317e-06/0.4584, allocations: 0 / 0.5198 GB, free: 13.4 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.005088/0.4635, allocations: 1.244 MB / 0.521 GB, free: 12.68 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.437e-05/0.4635, allocations: 9.875 kB / 0.521 GB, free: 12.68 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001729/0.4653, allocations: 217.1 kB / 0.5212 GB, free: 12.65 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005885/0.4659, allocations: 369.9 kB / 0.5216 GB, free: 12.42 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.04e-05/0.4659, allocations: 26.09 kB / 0.5216 GB, free: 12.42 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.058e-05/0.466, allocations: 28.77 kB / 0.5216 GB, free: 12.42 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00152/0.4675, allocations: 0.5975 MB / 0.5222 GB, free: 12.29 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.642e-05/0.4675, allocations: 1.219 kB / 0.5222 GB, free: 12.29 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.183e-05/0.4676, allocations: 11.12 kB / 0.5222 GB, free: 12.29 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.47e-05/0.4676, allocations: 7.75 kB / 0.5222 GB, free: 12.29 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001548/0.4692, allocations: 0.5462 MB / 0.5228 GB, free: 12.2 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.002708/0.4719, allocations: 2.624 MB / 0.5253 GB, free: 10.02 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001406/0.4733, allocations: 473.3 kB / 0.5258 GB, free: 9.879 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004101/0.4737, allocations: 198.5 kB / 0.526 GB, free: 9.832 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0442/0.5179, allocations: 24.3 MB / 0.5497 GB, free: 4.738 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.951e-05/0.518, allocations: 41.84 kB / 0.5497 GB, free: 4.691 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 2.124e-06/0.518, allocations: 3.938 kB / 0.5497 GB, free: 4.688 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.002827/0.5209, allocations: 0.8183 MB / 0.5505 GB, free: 4.02 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.706e-05/0.5209, allocations: 106.8 kB / 0.5506 GB, free: 3.891 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003527/0.5213, allocations: 317.4 kB / 0.5509 GB, free: 3.629 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.344e-05/0.5213, allocations: 29.02 kB / 0.551 GB, free: 3.598 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000158/0.5215, allocations: 203.4 kB / 0.5512 GB, free: 3.445 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.961e-05/0.5216, allocations: 88.16 kB / 0.5512 GB, free: 3.371 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001089/0.5217, allocations: 69.03 kB / 0.5513 GB, free: 3.32 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001227/0.5218, allocations: 340.6 kB / 0.5516 GB, free: 2.992 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003939/0.5222, allocations: 149.7 kB / 0.5518 GB, free: 2.883 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004445/0.5227, allocations: 246 kB / 0.552 GB, free: 2.652 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008532/0.5235, allocations: 381.7 kB / 0.5524 GB, free: 2.348 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.5236, allocations: 4 kB / 0.5524 GB, free: 2.344 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000989/0.5245, allocations: 443.4 kB / 0.5528 GB, free: 1.996 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.829e-05/0.5246, allocations: 4 kB / 0.5528 GB, free: 1.992 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.5246, allocations: 4 kB / 0.5528 GB, free: 1.988 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.818e-05/0.5246, allocations: 4 kB / 0.5528 GB, free: 1.984 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003505/0.525, allocations: 98.56 kB / 0.5529 GB, free: 1.895 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.027e-06/0.525, allocations: 4 kB / 0.5529 GB, free: 1.891 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002946/0.5253, allocations: 51.66 kB / 0.553 GB, free: 1.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.298e-05/0.5253, allocations: 19.98 kB / 0.553 GB, free: 1.82 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.0002082/0.5255, allocations: 160 kB / 0.5531 GB, free: 1.664 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.621e-05/0.5256, allocations: 35.62 kB / 0.5532 GB, free: 1.629 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002355/0.528, allocations: 1.911 MB / 0.555 GB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.864e-05/0.528, allocations: 31.89 kB / 0.5551 GB, free: 15.69 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.034e-06/0.528, allocations: 0 / 0.5551 GB, free: 15.69 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-06/0.5281, allocations: 7.453 kB / 0.5551 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001053/0.5291, allocations: 1.021 MB / 0.5561 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/0.5291, allocations: 3.75 kB / 0.5561 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003107/0.5294, allocations: 75.94 kB / 0.5561 GB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.5295, allocations: 0 / 0.5561 GB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.777e-05/0.5295, allocations: 11.98 kB / 0.5562 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.977e-06/0.5295, allocations: 3.938 kB / 0.5562 GB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.5295, allocations: 0 / 0.5562 GB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001459/0.531, allocations: 1.096 MB / 0.5572 GB, free: 13.42 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001488/0.5311, allocations: 163.8 kB / 0.5574 GB, free: 13.24 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.05e-05/0.5312, allocations: 27.69 kB / 0.5574 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002626/0.5315, allocations: 27.91 kB / 0.5574 GB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.993e-05/0.5316, allocations: 35.95 kB / 0.5575 GB, free: 13.15 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.765e-05/0.5316, allocations: 15.98 kB / 0.5575 GB, free: 13.14 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003473/0.532, allocations: 327.1 kB / 0.5578 GB, free: 12.82 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.532, allocations: 0 / 0.5578 GB, free: 12.82 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004833/0.5368, allocations: 0.9916 MB / 0.5588 GB, free: 11.83 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.00596/0.5428, allocations: 1.18 MB / 0.5599 GB, free: 10.76 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001336/0.5442, allocations: 0.6075 MB / 0.5605 GB, free: 10.16 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.5442, allocations: 0 / 0.5605 GB, free: 10.16 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007203/0.5449, allocations: 0.525 MB / 0.561 GB, free: 9.641 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001189/0.5461, allocations: 213 kB / 0.5612 GB, free: 9.441 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002169/0.5483, allocations: 1.511 MB / 0.5627 GB, free: 7.91 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004946/0.5488, allocations: 0.9599 MB / 0.5636 GB, free: 6.926 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004494/0.5493, allocations: 275.7 kB / 0.5639 GB, free: 6.664 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001097/0.5494, allocations: 39.44 kB / 0.5639 GB, free: 6.625 MB / 414.1 MB Notification: Performance of SimCode: time 6.62e-07/0.5494, allocations: 0 / 0.5639 GB, free: 6.625 MB / 414.1 MB Notification: Performance of Templates: time 0.05324/0.6026, allocations: 39.45 MB / 0.6025 GB, free: 15.35 MB / 462.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 -s cvode -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