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) 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 4.1.0-beta.om/package.mo", uses=false) 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=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.1.0-beta.om_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.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008079/0.0008082, allocations: 92.59 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008913/0.0008914, allocations: 204.3 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.44/1.44, allocations: 227.8 MB / 246.9 MB, free: 11.49 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.2163/0.2163, allocations: 46.2 MB / 345.3 MB, free: 11.39 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.0002882/0.0002882, allocations: 8 kB / 419.6 MB, free: 19.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1219/0.1222, allocations: 63.57 MB / 483.2 MB, free: 4.145 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.03649/0.1587, allocations: 28.44 MB / 0.4996 GB, free: 7.609 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2469/0.4056, allocations: 14.03 MB / 0.5133 GB, free: 11.04 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003573/0.406, allocations: 10.97 kB / 0.5133 GB, free: 11.04 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00061/0.4067, allocations: 215.4 kB / 0.5135 GB, free: 11.04 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008636/0.4153, allocations: 2.929 MB / 0.5164 GB, free: 10.98 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005256/0.4206, allocations: 1.971 MB / 0.5183 GB, free: 10.92 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001376/0.422, allocations: 1.145 MB / 0.5194 GB, free: 10.78 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003589/0.4223, allocations: 210.2 kB / 0.5196 GB, free: 10.76 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006685/0.423, allocations: 398.7 kB / 0.52 GB, free: 10.7 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000307/0.4233, allocations: 275.9 kB / 0.5203 GB, free: 10.69 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.282e-05/0.4234, allocations: 16.5 kB / 0.5203 GB, free: 10.69 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01378/0.4372, allocations: 7.13 MB / 0.5273 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001587/0.4374, allocations: 89.95 kB / 0.5273 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003301/0.4377, allocations: 228.3 kB / 0.5276 GB, free: 10.2 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008987/0.4467, allocations: 4.386 MB / 0.5318 GB, free: 8.328 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.4467, allocations: 5.594 kB / 0.5319 GB, free: 8.324 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.4467, allocations: 4 kB / 0.5319 GB, free: 8.32 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.603e-06/0.4467, allocations: 0 / 0.5319 GB, free: 8.32 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.003122/0.4499, allocations: 1.176 MB / 0.533 GB, free: 7.508 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.425e-05/0.4499, allocations: 9.625 kB / 0.533 GB, free: 7.508 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001645/0.4516, allocations: 229.8 kB / 0.5332 GB, free: 7.43 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003837/0.452, allocations: 359.4 kB / 0.5336 GB, free: 7.141 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.059e-05/0.452, allocations: 24.5 kB / 0.5336 GB, free: 7.141 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.221e-05/0.4521, allocations: 30.28 kB / 0.5336 GB, free: 7.141 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001518/0.4536, allocations: 0.6178 MB / 0.5342 GB, free: 6.871 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.745e-05/0.4536, allocations: 1.094 kB / 0.5342 GB, free: 6.871 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.445e-05/0.4537, allocations: 13.94 kB / 0.5342 GB, free: 6.871 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.351e-05/0.4537, allocations: 8.25 kB / 0.5343 GB, free: 6.871 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001636/0.4553, allocations: 0.5959 MB / 0.5348 GB, free: 6.691 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.002788/0.4581, allocations: 2.657 MB / 0.5374 GB, free: 4.199 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001654/0.4598, allocations: 499.6 kB / 0.5379 GB, free: 3.969 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004872/0.4603, allocations: 217 kB / 0.5381 GB, free: 3.867 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05518/0.5155, allocations: 26.98 MB / 0.5645 GB, free: 8.766 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.339e-05/0.5156, allocations: 42.55 kB / 0.5645 GB, free: 8.715 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.475e-06/0.5156, allocations: 0 / 0.5645 GB, free: 8.715 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.003403/0.519, allocations: 0.8923 MB / 0.5654 GB, free: 7.816 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.802e-05/0.5191, allocations: 110.8 kB / 0.5655 GB, free: 7.684 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004394/0.5196, allocations: 316.4 kB / 0.5658 GB, free: 7.371 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.407e-05/0.5196, allocations: 33.7 kB / 0.5658 GB, free: 7.332 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001797/0.5198, allocations: 196.3 kB / 0.566 GB, free: 7.137 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001026/0.5199, allocations: 86.75 kB / 0.5661 GB, free: 7.051 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.2e-05/0.52, allocations: 33.7 kB / 0.5661 GB, free: 7.012 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001751/0.5202, allocations: 338.8 kB / 0.5664 GB, free: 6.672 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005142/0.5207, allocations: 169.6 kB / 0.5666 GB, free: 6.508 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005795/0.5213, allocations: 268.6 kB / 0.5669 GB, free: 6.207 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001025/0.5223, allocations: 417 kB / 0.5673 GB, free: 5.766 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.5223, allocations: 0 / 0.5673 GB, free: 5.766 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001246/0.5236, allocations: 481 kB / 0.5677 GB, free: 5.289 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.183e-05/0.5236, allocations: 12.03 kB / 0.5677 GB, free: 5.277 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.5236, allocations: 4 kB / 0.5677 GB, free: 5.273 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.678e-05/0.5236, allocations: 7.938 kB / 0.5677 GB, free: 5.266 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004026/0.524, allocations: 99.8 kB / 0.5678 GB, free: 5.168 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.04e-05/0.5241, allocations: 4 kB / 0.5678 GB, free: 5.164 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004349/0.5245, allocations: 71.64 kB / 0.5679 GB, free: 5.094 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.774e-05/0.5246, allocations: 19.67 kB / 0.5679 GB, free: 5.078 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.0002349/0.5248, allocations: 165.7 kB / 0.5681 GB, free: 4.906 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.584e-05/0.5249, allocations: 35.53 kB / 0.5681 GB, free: 4.871 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00304/0.5279, allocations: 1.965 MB / 0.57 GB, free: 2.906 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.774e-05/0.528, allocations: 31.89 kB / 0.5701 GB, free: 2.875 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.528, allocations: 0 / 0.5701 GB, free: 2.875 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-06/0.528, allocations: 7.984 kB / 0.5701 GB, free: 2.867 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001282/0.5293, allocations: 1.014 MB / 0.5711 GB, free: 1.812 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.197e-06/0.5293, allocations: 0 / 0.5711 GB, free: 1.812 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003867/0.5297, allocations: 95.86 kB / 0.5712 GB, free: 1.719 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.999e-06/0.5297, allocations: 4 kB / 0.5712 GB, free: 1.715 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.376e-05/0.5298, allocations: 8 kB / 0.5712 GB, free: 1.707 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.5e-06/0.5298, allocations: 4.5 kB / 0.5712 GB, free: 1.703 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.704e-06/0.5298, allocations: 0 / 0.5712 GB, free: 1.703 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001835/0.5316, allocations: 1.139 MB / 0.5723 GB, free: 0.5508 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002424/0.5319, allocations: 211.6 kB / 0.5725 GB, free: 332 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.186e-05/0.5319, allocations: 11.98 kB / 0.5725 GB, free: 320 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003549/0.5323, allocations: 52.34 kB / 0.5725 GB, free: 268 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001103/0.5324, allocations: 35.94 kB / 0.5726 GB, free: 232 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.932e-05/0.5325, allocations: 12 kB / 0.5726 GB, free: 220 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004191/0.5329, allocations: 327.1 kB / 0.5729 GB, free: 15.89 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5329, allocations: 0 / 0.5729 GB, free: 15.89 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003343/0.5362, allocations: 1.007 MB / 0.5739 GB, free: 14.89 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.005885/0.5421, allocations: 1.184 MB / 0.575 GB, free: 13.79 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001534/0.5437, allocations: 0.6499 MB / 0.5757 GB, free: 13.14 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.633e-06/0.5437, allocations: 4 kB / 0.5757 GB, free: 13.14 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009346/0.5447, allocations: 0.5362 MB / 0.5762 GB, free: 12.6 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001383/0.5461, allocations: 201.7 kB / 0.5764 GB, free: 12.41 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002751/0.5488, allocations: 1.898 MB / 0.5783 GB, free: 10.47 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006518/0.5495, allocations: 0.9598 MB / 0.5792 GB, free: 9.484 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005411/0.55, allocations: 274.9 kB / 0.5795 GB, free: 9.219 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001165/0.5502, allocations: 39.44 kB / 0.5795 GB, free: 9.18 MB / 430.1 MB Notification: Performance of SimCode: time 7.31e-07/0.5502, allocations: 0 / 0.5795 GB, free: 9.18 MB / 430.1 MB Notification: Performance of Templates: time 0.08076/0.6309, allocations: 38.95 MB / 0.6175 GB, free: 2.332 MB / 462.1 MB make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.makefile (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) 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) Reference file matches