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.001297/0.001296, allocations: 114.3 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00116/0.00116, allocations: 210 kB / 19.4 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2087/0.2087, allocations: 46.11 MB / 345 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001538/0.001538, allocations: 79.88 kB / 482 MB, free: 4.051 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3316/0.3332, allocations: 62.43 MB / 0.5317 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.03447/0.3677, allocations: 28.28 MB / 0.5593 GB, free: 5.352 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01654/0.3843, allocations: 13.3 MB / 0.5723 GB, free: 8 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005652/0.3849, allocations: 7.938 kB / 0.5723 GB, free: 7.992 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009325/0.3858, allocations: 246.4 kB / 0.5725 GB, free: 7.75 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01119/0.3971, allocations: 3.666 MB / 0.5761 GB, free: 4.086 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007529/0.4046, allocations: 2.374 MB / 0.5784 GB, free: 1.715 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00135/0.406, allocations: 0.8963 MB / 0.5793 GB, free: 0.8164 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005245/0.4065, allocations: 268.5 kB / 0.5795 GB, free: 0.5508 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009409/0.4075, allocations: 446.2 kB / 0.58 GB, free: 116 kB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004939/0.408, allocations: 274.8 kB / 0.5802 GB, free: 15.84 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001109/0.4081, allocations: 36 kB / 0.5803 GB, free: 15.81 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01461/0.4227, allocations: 7.227 MB / 0.5873 GB, free: 8.574 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002157/0.423, allocations: 99.67 kB / 0.5874 GB, free: 8.477 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003489/0.4234, allocations: 223 kB / 0.5876 GB, free: 8.258 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01079/0.4342, allocations: 4.413 MB / 0.5919 GB, free: 3.836 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.115e-06/0.4342, allocations: 0 / 0.5919 GB, free: 3.836 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.4342, allocations: 0 / 0.5919 GB, free: 3.836 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.266e-05/0.4343, allocations: 4 kB / 0.5919 GB, free: 3.832 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.004082/0.4384, allocations: 1.251 MB / 0.5932 GB, free: 2.531 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.536e-05/0.4384, allocations: 8.031 kB / 0.5932 GB, free: 2.523 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001913/0.4403, allocations: 216.3 kB / 0.5934 GB, free: 2.312 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007435/0.4411, allocations: 371.2 kB / 0.5937 GB, free: 1.91 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.155e-05/0.4412, allocations: 29.03 kB / 0.5938 GB, free: 1.883 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.326e-05/0.4412, allocations: 28.38 kB / 0.5938 GB, free: 1.855 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001696/0.4429, allocations: 0.6017 MB / 0.5944 GB, free: 1.211 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.443, allocations: 0 / 0.5944 GB, free: 1.211 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.706e-05/0.443, allocations: 15.98 kB / 0.5944 GB, free: 1.195 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.978e-06/0.443, allocations: 8 kB / 0.5944 GB, free: 1.188 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001775/0.4448, allocations: 0.5484 MB / 0.5949 GB, free: 0.6406 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.003187/0.448, allocations: 2.617 MB / 0.5975 GB, free: 13.78 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001677/0.4497, allocations: 470.1 kB / 0.5979 GB, free: 13.31 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004874/0.4502, allocations: 208.7 kB / 0.5981 GB, free: 13.11 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05185/0.5021, allocations: 26.88 MB / 0.6244 GB, free: 14.81 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.838e-05/0.5022, allocations: 34.56 kB / 0.6244 GB, free: 14.77 MB / 494.1 MB Notification: Performance of pre-optimization done (n=25): time 3.727e-06/0.5022, allocations: 7.922 kB / 0.6244 GB, free: 14.76 MB / 494.1 MB Notification: Performance of matching and sorting (n=25): time 0.003097/0.5053, allocations: 0.8207 MB / 0.6252 GB, free: 13.93 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.183e-05/0.5054, allocations: 110.8 kB / 0.6253 GB, free: 13.8 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003619/0.5057, allocations: 304.5 kB / 0.6256 GB, free: 13.5 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.176e-05/0.5058, allocations: 33.7 kB / 0.6257 GB, free: 13.46 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001461/0.5059, allocations: 204.2 kB / 0.6258 GB, free: 13.25 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.68e-05/0.506, allocations: 82.75 kB / 0.6259 GB, free: 13.17 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001216/0.5062, allocations: 69.69 kB / 0.626 GB, free: 13.09 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000122/0.5063, allocations: 342.8 kB / 0.6263 GB, free: 12.75 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004265/0.5067, allocations: 147.9 kB / 0.6265 GB, free: 12.61 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004974/0.5072, allocations: 243.7 kB / 0.6267 GB, free: 12.33 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009153/0.5082, allocations: 393.9 kB / 0.6271 GB, free: 11.91 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.5082, allocations: 0 / 0.6271 GB, free: 11.91 MB / 494.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001132/0.5093, allocations: 440.7 kB / 0.6275 GB, free: 11.47 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.271e-05/0.5093, allocations: 11.98 kB / 0.6275 GB, free: 11.46 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.862e-06/0.5094, allocations: 0 / 0.6275 GB, free: 11.46 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.873e-05/0.5094, allocations: 8.25 kB / 0.6275 GB, free: 11.45 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003625/0.5097, allocations: 95.88 kB / 0.6276 GB, free: 11.36 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.515e-05/0.5098, allocations: 4 kB / 0.6276 GB, free: 11.36 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003621/0.5101, allocations: 43.72 kB / 0.6276 GB, free: 11.31 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.994e-05/0.5102, allocations: 19.98 kB / 0.6277 GB, free: 11.29 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.0002245/0.5104, allocations: 157.7 kB / 0.6278 GB, free: 11.13 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.148e-05/0.5105, allocations: 39.53 kB / 0.6279 GB, free: 11.09 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002472/0.513, allocations: 1.904 MB / 0.6297 GB, free: 9.172 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-05/0.513, allocations: 35.89 kB / 0.6297 GB, free: 9.137 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/0.5131, allocations: 4 kB / 0.6297 GB, free: 9.133 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.96e-06/0.5131, allocations: 0 / 0.6297 GB, free: 9.133 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009935/0.5141, allocations: 1.019 MB / 0.6307 GB, free: 8.062 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/0.5141, allocations: 0 / 0.6307 GB, free: 8.062 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003285/0.5144, allocations: 79.88 kB / 0.6308 GB, free: 7.984 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.511e-06/0.5144, allocations: 7.938 kB / 0.6308 GB, free: 7.977 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.305e-05/0.5145, allocations: 7.984 kB / 0.6308 GB, free: 7.969 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.055e-05/0.5145, allocations: 7.938 kB / 0.6308 GB, free: 7.961 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.5145, allocations: 0 / 0.6308 GB, free: 7.961 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001574/0.5161, allocations: 1.096 MB / 0.6319 GB, free: 6.848 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001461/0.5162, allocations: 163.9 kB / 0.6321 GB, free: 6.668 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.607e-05/0.5163, allocations: 27.69 kB / 0.6321 GB, free: 6.641 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002932/0.5166, allocations: 39.91 kB / 0.6321 GB, free: 6.602 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.885e-05/0.5167, allocations: 27.95 kB / 0.6322 GB, free: 6.574 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.255e-05/0.5167, allocations: 8 kB / 0.6322 GB, free: 6.566 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003556/0.5171, allocations: 335.1 kB / 0.6325 GB, free: 6.238 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5171, allocations: 0 / 0.6325 GB, free: 6.238 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002809/0.5199, allocations: 0.9955 MB / 0.6335 GB, free: 5.242 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.005227/0.5251, allocations: 1.167 MB / 0.6346 GB, free: 4.074 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001364/0.5265, allocations: 0.606 MB / 0.6352 GB, free: 3.469 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.031e-06/0.5266, allocations: 12.55 kB / 0.6352 GB, free: 3.457 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008007/0.5274, allocations: 0.5128 MB / 0.6357 GB, free: 2.945 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001218/0.5286, allocations: 221.5 kB / 0.6359 GB, free: 2.727 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002319/0.5309, allocations: 1.533 MB / 0.6374 GB, free: 1.156 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005332/0.5315, allocations: 0.9599 MB / 0.6384 GB, free: 176 kB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001266/0.5316, allocations: 39.44 kB / 0.6384 GB, free: 136 kB / 494.1 MB Notification: Performance of SimCode: time 3.2e-07/0.5316, allocations: 7.938 kB / 0.6384 GB, free: 128 kB / 494.1 MB Notification: Performance of Templates: time 0.03753/0.5692, allocations: 24.13 MB / 0.662 GB, free: 8.012 MB / 0.5137 GB 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/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_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches