Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001891/0.001891, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002187/0.002187, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.604/1.604, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2192/0.2192, allocations: 46.12 MB / 344.2 MB, free: 11.57 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002307/0.002307, allocations: 83 kB / 417.7 MB, free: 19.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1361/0.1385, allocations: 62.46 MB / 480.1 MB, free: 5.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.03378/0.1723, allocations: 28.27 MB / 0.4965 GB, free: 8.863 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2782/0.4505, allocations: 13.3 MB / 0.5095 GB, free: 10.6 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004988/0.4511, allocations: 9.781 kB / 0.5095 GB, free: 10.6 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008627/0.452, allocations: 250.9 kB / 0.5097 GB, free: 10.6 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01296/0.465, allocations: 3.663 MB / 0.5133 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008065/0.4731, allocations: 2.382 MB / 0.5156 GB, free: 10.5 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001668/0.4747, allocations: 0.8984 MB / 0.5165 GB, free: 10.5 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005323/0.4753, allocations: 243 kB / 0.5167 GB, free: 10.49 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009904/0.4763, allocations: 449.6 kB / 0.5172 GB, free: 10.48 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003681/0.4767, allocations: 275.1 kB / 0.5174 GB, free: 10.46 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.874e-05/0.4767, allocations: 33.59 kB / 0.5174 GB, free: 10.46 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02101/0.4978, allocations: 7.061 MB / 0.5243 GB, free: 10.31 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002904/0.4981, allocations: 102.7 kB / 0.5244 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005184/0.4986, allocations: 223.6 kB / 0.5247 GB, free: 10.2 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01482/0.5134, allocations: 4.424 MB / 0.529 GB, free: 8.094 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.5135, allocations: 0 / 0.529 GB, free: 8.094 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.5135, allocations: 0 / 0.529 GB, free: 8.094 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.86e-05/0.5135, allocations: 1.375 kB / 0.529 GB, free: 8.094 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.004421/0.518, allocations: 1.248 MB / 0.5302 GB, free: 7.184 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/0.518, allocations: 8.25 kB / 0.5302 GB, free: 7.184 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001738/0.5198, allocations: 217.6 kB / 0.5304 GB, free: 7.098 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005001/0.5203, allocations: 362 kB / 0.5308 GB, free: 6.762 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.714e-05/0.5203, allocations: 22.19 kB / 0.5308 GB, free: 6.754 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.864e-05/0.5204, allocations: 31.62 kB / 0.5308 GB, free: 6.742 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001508/0.5219, allocations: 0.5908 MB / 0.5314 GB, free: 6.355 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.506e-05/0.5219, allocations: 1.188 kB / 0.5314 GB, free: 6.355 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.289e-05/0.522, allocations: 12.28 kB / 0.5314 GB, free: 6.348 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.375e-05/0.522, allocations: 12.69 kB / 0.5314 GB, free: 6.344 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001589/0.5236, allocations: 0.545 MB / 0.5319 GB, free: 6.086 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.002626/0.5262, allocations: 2.637 MB / 0.5345 GB, free: 3.594 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001476/0.5277, allocations: 465.2 kB / 0.535 GB, free: 3.367 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004218/0.5282, allocations: 204.9 kB / 0.5352 GB, free: 3.262 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05404/0.5822, allocations: 26.76 MB / 0.5613 GB, free: 8.453 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.626e-05/0.5823, allocations: 42.56 kB / 0.5613 GB, free: 8.402 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 4.197e-06/0.5823, allocations: 3.984 kB / 0.5613 GB, free: 8.398 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.003186/0.5855, allocations: 0.8175 MB / 0.5621 GB, free: 7.574 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.683e-05/0.5856, allocations: 106.8 kB / 0.5622 GB, free: 7.445 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004148/0.5861, allocations: 312.5 kB / 0.5625 GB, free: 7.137 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.657e-05/0.5861, allocations: 29.7 kB / 0.5626 GB, free: 7.102 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001765/0.5863, allocations: 212.1 kB / 0.5628 GB, free: 6.891 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.939e-05/0.5864, allocations: 77.59 kB / 0.5628 GB, free: 6.816 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000117/0.5865, allocations: 73.59 kB / 0.5629 GB, free: 6.738 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.5867, allocations: 342.8 kB / 0.5632 GB, free: 6.395 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004524/0.5871, allocations: 153.7 kB / 0.5634 GB, free: 6.246 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005196/0.5877, allocations: 247.7 kB / 0.5636 GB, free: 5.965 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009025/0.5886, allocations: 382.8 kB / 0.564 GB, free: 5.559 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.5886, allocations: 4 kB / 0.564 GB, free: 5.555 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001093/0.5897, allocations: 436.8 kB / 0.5644 GB, free: 5.121 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.819e-05/0.5897, allocations: 6.5 kB / 0.5644 GB, free: 5.117 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.5897, allocations: 4 kB / 0.5644 GB, free: 5.113 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.013e-05/0.5898, allocations: 4 kB / 0.5644 GB, free: 5.109 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003616/0.5901, allocations: 100.1 kB / 0.5645 GB, free: 5.012 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.533e-05/0.5901, allocations: 8.547 kB / 0.5645 GB, free: 5.004 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003256/0.5905, allocations: 51.59 kB / 0.5646 GB, free: 4.953 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.09e-05/0.5905, allocations: 16 kB / 0.5646 GB, free: 4.938 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.0002119/0.5907, allocations: 157.8 kB / 0.5647 GB, free: 4.773 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.772e-05/0.5908, allocations: 31.62 kB / 0.5648 GB, free: 4.742 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002659/0.5935, allocations: 1.927 MB / 0.5666 GB, free: 2.812 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.444e-05/0.5936, allocations: 35.88 kB / 0.5667 GB, free: 2.777 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.5936, allocations: 0 / 0.5667 GB, free: 2.777 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.5936, allocations: 0 / 0.5667 GB, free: 2.777 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001102/0.5947, allocations: 1.016 MB / 0.5677 GB, free: 1.719 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.471e-06/0.5947, allocations: 0 / 0.5677 GB, free: 1.719 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003559/0.5951, allocations: 79.86 kB / 0.5677 GB, free: 1.641 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.5951, allocations: 4 kB / 0.5677 GB, free: 1.637 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.376e-05/0.5951, allocations: 12 kB / 0.5678 GB, free: 1.625 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.84e-06/0.5951, allocations: 3.938 kB / 0.5678 GB, free: 1.621 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.5951, allocations: 0 / 0.5678 GB, free: 1.621 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001611/0.5967, allocations: 1.1 MB / 0.5688 GB, free: 0.5078 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000162/0.5969, allocations: 163.7 kB / 0.569 GB, free: 336 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.199e-05/0.597, allocations: 27.73 kB / 0.569 GB, free: 308 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002746/0.5973, allocations: 27.91 kB / 0.569 GB, free: 280 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001077/0.5974, allocations: 35.95 kB / 0.5691 GB, free: 244 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.65e-05/0.5974, allocations: 12 kB / 0.5691 GB, free: 232 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000389/0.5978, allocations: 335 kB / 0.5694 GB, free: 15.9 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5978, allocations: 0 / 0.5694 GB, free: 15.9 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003843/0.6017, allocations: 0.9916 MB / 0.5704 GB, free: 14.91 MB / 430.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.006478/0.6082, allocations: 1.181 MB / 0.5715 GB, free: 13.82 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001877/0.6101, allocations: 0.6374 MB / 0.5722 GB, free: 13.18 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 9.147e-06/0.6101, allocations: 4 kB / 0.5722 GB, free: 13.18 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008089/0.6109, allocations: 0.5173 MB / 0.5727 GB, free: 12.66 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001344/0.6123, allocations: 221.4 kB / 0.5729 GB, free: 12.45 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002406/0.6147, allocations: 1.522 MB / 0.5744 GB, free: 10.9 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005901/0.6153, allocations: 0.9638 MB / 0.5753 GB, free: 9.91 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005139/0.6158, allocations: 278.3 kB / 0.5756 GB, free: 9.645 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001127/0.6159, allocations: 43.42 kB / 0.5756 GB, free: 9.602 MB / 430.1 MB Notification: Performance of SimCode: time 6.01e-07/0.616, allocations: 0 / 0.5756 GB, free: 9.602 MB / 430.1 MB Notification: Performance of Templates: time 0.05937/0.6753, allocations: 39.65 MB / 0.6143 GB, free: 2.043 MB / 462.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches