Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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=500,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.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,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.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001401/0.001401, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001467/0.001467, allocations: 199.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.448/1.448, allocations: 227.4 MB / 247 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2203/0.2203, allocations: 46.12 MB / 344.3 MB, free: 11.47 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.003396/0.003396, allocations: 84.17 kB / 481.4 MB, free: 4.043 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3243/0.3277, allocations: 62.43 MB / 0.5311 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.03345/0.3612, allocations: 28.28 MB / 0.5587 GB, free: 5.375 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01726/0.3785, allocations: 13.31 MB / 0.5717 GB, free: 8.023 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004228/0.379, allocations: 11.88 kB / 0.5717 GB, free: 8.012 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007923/0.3799, allocations: 250.4 kB / 0.5719 GB, free: 7.766 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01019/0.3901, allocations: 3.654 MB / 0.5755 GB, free: 4.109 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006755/0.3968, allocations: 2.379 MB / 0.5778 GB, free: 1.734 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001519/0.3984, allocations: 0.9002 MB / 0.5787 GB, free: 0.832 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00047/0.3988, allocations: 260.5 kB / 0.579 GB, free: 0.5742 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009593/0.3998, allocations: 442.2 kB / 0.5794 GB, free: 144 kB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004151/0.4002, allocations: 270.9 kB / 0.5796 GB, free: 15.88 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.554e-05/0.4003, allocations: 36 kB / 0.5797 GB, free: 15.84 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01709/0.4174, allocations: 7.235 MB / 0.5867 GB, free: 8.598 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003135/0.4178, allocations: 99.66 kB / 0.5868 GB, free: 8.5 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004901/0.4183, allocations: 223.1 kB / 0.587 GB, free: 8.281 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01269/0.431, allocations: 4.427 MB / 0.5914 GB, free: 3.844 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.942e-06/0.431, allocations: 4 kB / 0.5914 GB, free: 3.84 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.431, allocations: 0 / 0.5914 GB, free: 3.84 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.147e-06/0.4311, allocations: 0 / 0.5914 GB, free: 3.84 MB / 446.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.003756/0.4348, allocations: 1.286 MB / 0.5926 GB, free: 2.5 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.4349, allocations: 8.031 kB / 0.5926 GB, free: 2.492 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001764/0.4366, allocations: 212.5 kB / 0.5928 GB, free: 2.285 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005943/0.4372, allocations: 383.5 kB / 0.5932 GB, free: 1.871 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.215e-05/0.4373, allocations: 21.03 kB / 0.5932 GB, free: 1.852 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.294e-05/0.4374, allocations: 32.38 kB / 0.5933 GB, free: 1.82 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001659/0.439, allocations: 0.5939 MB / 0.5938 GB, free: 1.184 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.4391, allocations: 0 / 0.5938 GB, free: 1.184 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.776e-05/0.4391, allocations: 16 kB / 0.5938 GB, free: 1.168 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.298e-06/0.4391, allocations: 8 kB / 0.5939 GB, free: 1.16 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001805/0.4409, allocations: 0.5484 MB / 0.5944 GB, free: 0.6133 MB / 446.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.003291/0.4442, allocations: 2.625 MB / 0.597 GB, free: 13.75 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0017/0.446, allocations: 474 kB / 0.5974 GB, free: 13.28 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005199/0.4465, allocations: 200.7 kB / 0.5976 GB, free: 13.08 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05585/0.5024, allocations: 26.87 MB / 0.6238 GB, free: 14.79 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.765e-05/0.5024, allocations: 34.56 kB / 0.6239 GB, free: 14.75 MB / 494.1 MB Notification: Performance of pre-optimization done (n=25): time 2.675e-06/0.5025, allocations: 4 kB / 0.6239 GB, free: 14.75 MB / 494.1 MB Notification: Performance of matching and sorting (n=25): time 0.003241/0.5057, allocations: 0.8209 MB / 0.6247 GB, free: 13.92 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001052/0.5058, allocations: 110.8 kB / 0.6248 GB, free: 13.79 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004221/0.5063, allocations: 308.5 kB / 0.6251 GB, free: 13.48 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.91e-05/0.5063, allocations: 29.7 kB / 0.6251 GB, free: 13.44 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002792/0.5066, allocations: 212.5 kB / 0.6253 GB, free: 13.23 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.637e-05/0.5067, allocations: 83.23 kB / 0.6254 GB, free: 13.14 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001306/0.5068, allocations: 69.69 kB / 0.6255 GB, free: 13.07 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001651/0.507, allocations: 346.8 kB / 0.6258 GB, free: 12.72 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00053/0.5075, allocations: 147.9 kB / 0.6259 GB, free: 12.58 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000538/0.5081, allocations: 247.7 kB / 0.6262 GB, free: 12.3 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009555/0.509, allocations: 385.9 kB / 0.6265 GB, free: 11.89 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.5091, allocations: 0 / 0.6265 GB, free: 11.89 MB / 494.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001171/0.5102, allocations: 453.1 kB / 0.627 GB, free: 11.44 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/0.5103, allocations: 4 kB / 0.627 GB, free: 11.43 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.5103, allocations: 4 kB / 0.627 GB, free: 11.43 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.948e-05/0.5103, allocations: 7.938 kB / 0.627 GB, free: 11.42 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003691/0.5107, allocations: 91.86 kB / 0.6271 GB, free: 11.33 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.065e-05/0.5107, allocations: 4 kB / 0.6271 GB, free: 11.33 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003023/0.511, allocations: 47.75 kB / 0.6271 GB, free: 11.28 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.452e-05/0.5111, allocations: 20.03 kB / 0.6271 GB, free: 11.26 MB / 494.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.0001917/0.5113, allocations: 157.8 kB / 0.6273 GB, free: 11.1 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.946e-05/0.5114, allocations: 39.77 kB / 0.6273 GB, free: 11.06 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002852/0.5142, allocations: 1.913 MB / 0.6292 GB, free: 9.133 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.651e-05/0.5143, allocations: 35.88 kB / 0.6292 GB, free: 9.098 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.5143, allocations: 0 / 0.6292 GB, free: 9.098 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.5143, allocations: 0 / 0.6292 GB, free: 9.098 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001201/0.5155, allocations: 1.024 MB / 0.6302 GB, free: 8.023 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.5155, allocations: 0 / 0.6302 GB, free: 8.023 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003481/0.5159, allocations: 79.86 kB / 0.6303 GB, free: 7.945 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/0.5159, allocations: 0 / 0.6303 GB, free: 7.945 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.543e-05/0.5159, allocations: 12 kB / 0.6303 GB, free: 7.934 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.549e-06/0.5159, allocations: 3.938 kB / 0.6303 GB, free: 7.93 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.5159, allocations: 0 / 0.6303 GB, free: 7.93 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001738/0.5177, allocations: 1.1 MB / 0.6314 GB, free: 6.812 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001842/0.5179, allocations: 176.2 kB / 0.6316 GB, free: 6.621 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.773e-05/0.5179, allocations: 23.78 kB / 0.6316 GB, free: 6.598 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002988/0.5183, allocations: 31.91 kB / 0.6316 GB, free: 6.566 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000103/0.5184, allocations: 35.95 kB / 0.6317 GB, free: 6.531 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.559e-05/0.5184, allocations: 8 kB / 0.6317 GB, free: 6.523 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0004068/0.5188, allocations: 327.1 kB / 0.632 GB, free: 6.203 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5188, allocations: 0 / 0.632 GB, free: 6.203 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003006/0.5218, allocations: 1.01 MB / 0.633 GB, free: 5.191 MB / 494.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.005027/0.5269, allocations: 1.185 MB / 0.6341 GB, free: 4.004 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001402/0.5283, allocations: 0.6105 MB / 0.6347 GB, free: 3.391 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.5283, allocations: 3.938 kB / 0.6347 GB, free: 3.387 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008038/0.5291, allocations: 0.5166 MB / 0.6352 GB, free: 2.871 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001235/0.5304, allocations: 227.5 kB / 0.6354 GB, free: 2.652 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002376/0.5327, allocations: 1.533 MB / 0.6369 GB, free: 1.094 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006624/0.5334, allocations: 0.9677 MB / 0.6379 GB, free: 104 kB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.000514/0.5339, allocations: 282.1 kB / 0.6381 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001177/0.5341, allocations: 43.36 kB / 0.6382 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of SimCode: time 2.7e-07/0.5341, allocations: 0 / 0.6382 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of Templates: time 0.05739/0.5915, allocations: 39.66 MB / 0.6769 GB, free: 8.172 MB / 0.5294 GB make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveLinear/TestValveLinear.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] Reference file matches