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.001126/0.001126, allocations: 93.38 kB / 18.01 MB, free: 5.738 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.001176/0.001177, allocations: 176.8 kB / 18.91 MB, free: 4.871 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.362/1.362, allocations: 223.3 MB / 242.9 MB, free: 220 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1998/0.1998, allocations: 44.25 MB / 338.3 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003566/0.0003568, allocations: 12.83 kB / 411 MB, free: 27.33 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1188, allocations: 61.92 MB / 472.9 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.03271/0.1515, allocations: 28.3 MB / 0.4895 GB, free: 0.9688 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01684/0.1684, allocations: 14.05 MB / 0.5032 GB, free: 2.875 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004943/0.169, allocations: 15.88 kB / 0.5032 GB, free: 2.859 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007822/0.1698, allocations: 210.9 kB / 0.5034 GB, free: 2.652 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2536/0.4234, allocations: 2.922 MB / 0.5063 GB, free: 13.09 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008395/0.4318, allocations: 1.974 MB / 0.5082 GB, free: 13.09 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002039/0.4339, allocations: 1.141 MB / 0.5093 GB, free: 13.09 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005662/0.4344, allocations: 209.6 kB / 0.5095 GB, free: 13.08 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001138/0.4356, allocations: 395.7 kB / 0.5099 GB, free: 13.08 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004984/0.4361, allocations: 274.5 kB / 0.5101 GB, free: 13.08 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.177e-05/0.4362, allocations: 15.5 kB / 0.5102 GB, free: 13.08 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01655/0.4527, allocations: 7.119 MB / 0.5171 GB, free: 13.06 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002502/0.453, allocations: 89.12 kB / 0.5172 GB, free: 13.06 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004613/0.4535, allocations: 227.1 kB / 0.5174 GB, free: 13.03 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00769/0.4612, allocations: 2.992 MB / 0.5203 GB, free: 12.97 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.161e-06/0.4612, allocations: 3.688 kB / 0.5203 GB, free: 12.97 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.4612, allocations: 0 / 0.5203 GB, free: 12.97 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.268e-06/0.4612, allocations: 0 / 0.5203 GB, free: 12.97 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.004971/0.4662, allocations: 1.171 MB / 0.5215 GB, free: 12.27 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.846e-05/0.4663, allocations: 13.56 kB / 0.5215 GB, free: 12.27 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001772/0.4681, allocations: 217.9 kB / 0.5217 GB, free: 12.25 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000508/0.4686, allocations: 370.5 kB / 0.522 GB, free: 12.01 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.357e-05/0.4686, allocations: 28 kB / 0.5221 GB, free: 12.01 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.166e-05/0.4687, allocations: 26.88 kB / 0.5221 GB, free: 12.01 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001616/0.4703, allocations: 0.6202 MB / 0.5227 GB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.541e-05/0.4704, allocations: 4.312 kB / 0.5227 GB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.329e-05/0.4704, allocations: 11.47 kB / 0.5227 GB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.426e-05/0.4704, allocations: 8.719 kB / 0.5227 GB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00172/0.4722, allocations: 0.5974 MB / 0.5233 GB, free: 11.65 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.002753/0.4749, allocations: 2.633 MB / 0.5259 GB, free: 9.469 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001598/0.4765, allocations: 0.5091 MB / 0.5264 GB, free: 9.324 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004877/0.477, allocations: 219.2 kB / 0.5266 GB, free: 9.277 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04796/0.525, allocations: 24.42 MB / 0.5504 GB, free: 4.52 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.28e-05/0.5251, allocations: 34.25 kB / 0.5505 GB, free: 4.48 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 2.675e-06/0.5251, allocations: 0 / 0.5505 GB, free: 4.48 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.003144/0.5283, allocations: 0.8947 MB / 0.5513 GB, free: 3.738 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.798e-05/0.5283, allocations: 106.8 kB / 0.5514 GB, free: 3.609 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000374/0.5287, allocations: 312.7 kB / 0.5517 GB, free: 3.355 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.934e-05/0.5288, allocations: 30.77 kB / 0.5518 GB, free: 3.324 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001822/0.529, allocations: 205.9 kB / 0.552 GB, free: 3.168 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.277e-05/0.5291, allocations: 86.34 kB / 0.5521 GB, free: 3.098 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.306e-05/0.5291, allocations: 31.95 kB / 0.5521 GB, free: 3.07 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.5293, allocations: 343.8 kB / 0.5524 GB, free: 2.738 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004709/0.5297, allocations: 178.5 kB / 0.5526 GB, free: 2.605 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005033/0.5303, allocations: 253.2 kB / 0.5528 GB, free: 2.363 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000937/0.5312, allocations: 424.8 kB / 0.5532 GB, free: 2.016 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.5312, allocations: 0 / 0.5532 GB, free: 2.016 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001148/0.5324, allocations: 476.4 kB / 0.5537 GB, free: 1.645 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.408e-05/0.5324, allocations: 8 kB / 0.5537 GB, free: 1.637 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/0.5324, allocations: 2.516 kB / 0.5537 GB, free: 1.637 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.42e-05/0.5325, allocations: 4 kB / 0.5537 GB, free: 1.633 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003836/0.5328, allocations: 107.8 kB / 0.5538 GB, free: 1.539 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.271e-05/0.5329, allocations: 7.984 kB / 0.5538 GB, free: 1.531 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004199/0.5333, allocations: 68.16 kB / 0.5539 GB, free: 1.469 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.224e-05/0.5333, allocations: 14.42 kB / 0.5539 GB, free: 1.457 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.0002121/0.5336, allocations: 160.7 kB / 0.554 GB, free: 1.32 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.053e-05/0.5336, allocations: 31.62 kB / 0.5541 GB, free: 1.289 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002559/0.5362, allocations: 1.977 MB / 0.556 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.289e-05/0.5362, allocations: 31.89 kB / 0.556 GB, free: 15.92 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/0.5363, allocations: 0 / 0.556 GB, free: 15.92 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.5363, allocations: 3.984 kB / 0.556 GB, free: 15.92 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001082/0.5374, allocations: 1.009 MB / 0.557 GB, free: 15.19 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.484e-06/0.5374, allocations: 0 / 0.557 GB, free: 15.19 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003767/0.5378, allocations: 92.77 kB / 0.5571 GB, free: 15.1 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.702e-06/0.5378, allocations: 10.69 kB / 0.5571 GB, free: 15.1 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.226e-05/0.5378, allocations: 10.3 kB / 0.5571 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.22e-06/0.5378, allocations: 7.938 kB / 0.5571 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.5378, allocations: 0 / 0.5571 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001619/0.5394, allocations: 1.131 MB / 0.5582 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002274/0.5397, allocations: 224.8 kB / 0.5585 GB, free: 14.03 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.989e-05/0.5398, allocations: 3.875 kB / 0.5585 GB, free: 14.03 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003359/0.5401, allocations: 57.33 kB / 0.5585 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001185/0.5402, allocations: 27.83 kB / 0.5585 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.691e-05/0.5403, allocations: 13.73 kB / 0.5586 GB, free: 13.94 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003637/0.5406, allocations: 331.9 kB / 0.5589 GB, free: 13.69 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.5406, allocations: 0 / 0.5589 GB, free: 13.69 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.005201/0.5459, allocations: 0.9929 MB / 0.5598 GB, free: 12.74 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.007146/0.553, allocations: 1.178 MB / 0.561 GB, free: 11.7 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001431/0.5545, allocations: 0.6448 MB / 0.5616 GB, free: 11.25 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.5545, allocations: 0 / 0.5616 GB, free: 11.25 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007667/0.5553, allocations: 0.5378 MB / 0.5621 GB, free: 10.72 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001346/0.5566, allocations: 213.6 kB / 0.5623 GB, free: 10.52 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002408/0.559, allocations: 1.922 MB / 0.5642 GB, free: 8.555 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005124/0.5596, allocations: 0.9677 MB / 0.5652 GB, free: 7.566 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001515/0.5597, allocations: 42.62 kB / 0.5652 GB, free: 7.527 MB / 414.1 MB Notification: Performance of SimCode: time 6.72e-07/0.5598, allocations: 0 / 0.5652 GB, free: 7.527 MB / 414.1 MB Notification: Performance of Templates: time 0.04006/0.5998, allocations: 24 MB / 0.5886 GB, free: 15.63 MB / 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/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