Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.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.TestValveDiscrete,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.TestValveDiscrete") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,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.TestValveDiscrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001343/0.001343, allocations: 116.2 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001572/0.001572, allocations: 210.1 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.493/1.493, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2277/0.2277, allocations: 46.1 MB / 345 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00159/0.00159, allocations: 75.88 kB / 482 MB, free: 4.078 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3947/0.3964, allocations: 62.43 MB / 0.5316 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03162/0.428, allocations: 28.27 MB / 0.5593 GB, free: 5.383 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01588/0.444, allocations: 13.29 MB / 0.5722 GB, free: 8.047 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005311/0.4445, allocations: 7.938 kB / 0.5722 GB, free: 8.039 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008302/0.4454, allocations: 262.3 kB / 0.5725 GB, free: 7.781 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0115/0.4569, allocations: 3.669 MB / 0.5761 GB, free: 4.113 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009763/0.4667, allocations: 2.371 MB / 0.5784 GB, free: 1.746 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001834/0.4686, allocations: 0.8925 MB / 0.5793 GB, free: 0.8516 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007837/0.4694, allocations: 260.5 kB / 0.5795 GB, free: 0.5938 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001518/0.4709, allocations: 442.2 kB / 0.5799 GB, free: 164 kB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007237/0.4717, allocations: 270.9 kB / 0.5802 GB, free: 15.89 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000138/0.4718, allocations: 35.94 kB / 0.5802 GB, free: 15.86 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01603/0.4879, allocations: 7.235 MB / 0.5873 GB, free: 8.617 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002562/0.4882, allocations: 103.6 kB / 0.5874 GB, free: 8.516 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004144/0.4886, allocations: 227 kB / 0.5876 GB, free: 8.293 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01187/0.5005, allocations: 4.413 MB / 0.5919 GB, free: 3.871 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.665e-06/0.5005, allocations: 0 / 0.5919 GB, free: 3.871 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.5005, allocations: 0 / 0.5919 GB, free: 3.871 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.225e-05/0.5006, allocations: 4 kB / 0.5919 GB, free: 3.867 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.003782/0.5044, allocations: 1.232 MB / 0.5931 GB, free: 2.586 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.686e-05/0.5044, allocations: 11.97 kB / 0.5931 GB, free: 2.574 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001864/0.5063, allocations: 216.2 kB / 0.5933 GB, free: 2.363 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007164/0.507, allocations: 371.3 kB / 0.5937 GB, free: 1.961 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.364e-05/0.5071, allocations: 29.03 kB / 0.5937 GB, free: 1.934 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.608e-05/0.5071, allocations: 24.38 kB / 0.5937 GB, free: 1.91 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001601/0.5088, allocations: 0.5861 MB / 0.5943 GB, free: 1.281 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/0.5088, allocations: 0 / 0.5943 GB, free: 1.281 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.791e-05/0.5088, allocations: 16 kB / 0.5943 GB, free: 1.266 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.143e-05/0.5089, allocations: 11.98 kB / 0.5943 GB, free: 1.254 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001549/0.5104, allocations: 0.5289 MB / 0.5949 GB, free: 0.7266 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.003172/0.5136, allocations: 2.609 MB / 0.5974 GB, free: 13.88 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001513/0.5151, allocations: 462.1 kB / 0.5978 GB, free: 13.41 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004393/0.5156, allocations: 192.7 kB / 0.598 GB, free: 13.22 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04936/0.565, allocations: 26.88 MB / 0.6243 GB, free: 14.93 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.962e-05/0.565, allocations: 34.56 kB / 0.6243 GB, free: 14.89 MB / 494.1 MB Notification: Performance of pre-optimization done (n=25): time 2.074e-06/0.5651, allocations: 4 kB / 0.6243 GB, free: 14.88 MB / 494.1 MB Notification: Performance of matching and sorting (n=25): time 0.002845/0.5679, allocations: 0.7895 MB / 0.6251 GB, free: 14.09 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.493e-05/0.568, allocations: 110.8 kB / 0.6252 GB, free: 13.95 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003923/0.5684, allocations: 308.5 kB / 0.6255 GB, free: 13.64 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.204e-05/0.5685, allocations: 33.7 kB / 0.6255 GB, free: 13.61 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001653/0.5686, allocations: 200.2 kB / 0.6257 GB, free: 13.4 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.033e-05/0.5687, allocations: 86.83 kB / 0.6258 GB, free: 13.32 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000134/0.5689, allocations: 73.69 kB / 0.6259 GB, free: 13.24 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.569, allocations: 342.8 kB / 0.6262 GB, free: 12.89 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003623/0.5694, allocations: 139.9 kB / 0.6263 GB, free: 12.76 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004319/0.5698, allocations: 231.8 kB / 0.6265 GB, free: 12.49 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007426/0.5706, allocations: 361.9 kB / 0.6269 GB, free: 12.11 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.5706, allocations: 4 kB / 0.6269 GB, free: 12.1 MB / 494.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009861/0.5716, allocations: 420.7 kB / 0.6273 GB, free: 11.68 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.364e-05/0.5716, allocations: 8 kB / 0.6273 GB, free: 11.68 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.101e-05/0.5716, allocations: 4 kB / 0.6273 GB, free: 11.67 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.38e-05/0.5717, allocations: 12.19 kB / 0.6273 GB, free: 11.66 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003268/0.572, allocations: 91.81 kB / 0.6274 GB, free: 11.57 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.147e-05/0.572, allocations: 4 kB / 0.6274 GB, free: 11.57 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000297/0.5723, allocations: 47.66 kB / 0.6275 GB, free: 11.52 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.227e-05/0.5724, allocations: 12 kB / 0.6275 GB, free: 11.51 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: 5 (Opening.y,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.0002085/0.5726, allocations: 161.7 kB / 0.6276 GB, free: 11.34 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.269e-05/0.5727, allocations: 35.62 kB / 0.6277 GB, free: 11.3 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002405/0.5751, allocations: 1.889 MB / 0.6295 GB, free: 9.402 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.232e-05/0.5751, allocations: 35.88 kB / 0.6295 GB, free: 9.367 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.859e-06/0.5752, allocations: 0 / 0.6295 GB, free: 9.367 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.5752, allocations: 7.938 kB / 0.6295 GB, free: 9.359 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001086/0.5763, allocations: 1.011 MB / 0.6305 GB, free: 8.297 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.191e-06/0.5763, allocations: 0 / 0.6305 GB, free: 8.297 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002982/0.5766, allocations: 67.94 kB / 0.6306 GB, free: 8.23 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.412e-06/0.5766, allocations: 4 kB / 0.6306 GB, free: 8.227 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.864e-05/0.5766, allocations: 11.98 kB / 0.6306 GB, free: 8.215 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.32e-06/0.5766, allocations: 7.875 kB / 0.6306 GB, free: 8.207 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.5766, allocations: 4 kB / 0.6306 GB, free: 8.203 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001463/0.5781, allocations: 1.073 MB / 0.6317 GB, free: 7.113 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001598/0.5783, allocations: 167.8 kB / 0.6318 GB, free: 6.93 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.372e-05/0.5784, allocations: 19.78 kB / 0.6319 GB, free: 6.91 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002547/0.5786, allocations: 31.91 kB / 0.6319 GB, free: 6.879 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.504e-05/0.5787, allocations: 31.95 kB / 0.6319 GB, free: 6.848 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.953e-05/0.5788, allocations: 12 kB / 0.6319 GB, free: 6.836 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.000372/0.5791, allocations: 327.1 kB / 0.6322 GB, free: 6.516 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.5792, allocations: 0 / 0.6322 GB, free: 6.516 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002964/0.5821, allocations: 0.9993 MB / 0.6332 GB, free: 5.516 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: 19 ($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,Opening.y) * 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.005148/0.5873, allocations: 1.181 MB / 0.6344 GB, free: 4.332 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001344/0.5887, allocations: 0.591 MB / 0.6349 GB, free: 3.742 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.102e-06/0.5887, allocations: 0 / 0.6349 GB, free: 3.742 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007119/0.5894, allocations: 0.5099 MB / 0.6354 GB, free: 3.234 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001163/0.5906, allocations: 214 kB / 0.6356 GB, free: 3.031 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002324/0.5929, allocations: 1.529 MB / 0.6371 GB, free: 1.469 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005071/0.5934, allocations: 0.9677 MB / 0.6381 GB, free: 488 kB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001423/0.5936, allocations: 47.42 kB / 0.6381 GB, free: 440 kB / 494.1 MB Notification: Performance of SimCode: time 8.82e-07/0.5936, allocations: 0 / 0.6381 GB, free: 440 kB / 494.1 MB Notification: Performance of Templates: time 0.03894/0.6326, allocations: 24.08 MB / 0.6616 GB, free: 8.363 MB / 0.5138 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches