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.0009848/0.000988, allocations: 115.8 kB / 18.4 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001072/0.001072, allocations: 203.4 kB / 19.35 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.35/1.35, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.209/0.209, allocations: 46.1 MB / 344.9 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001312, allocations: 74.09 kB / 419 MB, free: 19.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1308/0.1322, allocations: 62.44 MB / 481.5 MB, free: 4.531 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.02797/0.1602, allocations: 28.25 MB / 0.4978 GB, free: 8.18 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.279/0.4392, allocations: 13.29 MB / 0.5107 GB, free: 11.29 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003806/0.4396, allocations: 10.06 kB / 0.5108 GB, free: 11.29 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008318/0.4405, allocations: 248.3 kB / 0.511 GB, free: 11.29 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01216/0.4527, allocations: 3.664 MB / 0.5146 GB, free: 11.26 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006996/0.4597, allocations: 2.367 MB / 0.5169 GB, free: 11.2 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00143/0.4612, allocations: 0.8923 MB / 0.5178 GB, free: 11.2 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004181/0.4616, allocations: 251.5 kB / 0.518 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007391/0.4623, allocations: 446.7 kB / 0.5184 GB, free: 11.12 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003236/0.4627, allocations: 270.6 kB / 0.5187 GB, free: 11.08 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.415e-05/0.4627, allocations: 34.44 kB / 0.5187 GB, free: 11.08 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01761/0.4803, allocations: 7.229 MB / 0.5258 GB, free: 10.66 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002026/0.4806, allocations: 94.7 kB / 0.5259 GB, free: 10.62 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004397/0.481, allocations: 222.5 kB / 0.5261 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01268/0.4937, allocations: 4.421 MB / 0.5304 GB, free: 8.277 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.4938, allocations: 0 / 0.5304 GB, free: 8.277 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.4938, allocations: 0 / 0.5304 GB, free: 8.277 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.857e-06/0.4938, allocations: 1.375 kB / 0.5304 GB, free: 8.277 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.003726/0.4975, allocations: 1.233 MB / 0.5316 GB, free: 7.383 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/0.4976, allocations: 8.656 kB / 0.5316 GB, free: 7.383 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001708/0.4993, allocations: 215 kB / 0.5318 GB, free: 7.297 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005097/0.4998, allocations: 375.4 kB / 0.5322 GB, free: 6.953 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.132e-05/0.4998, allocations: 26.78 kB / 0.5322 GB, free: 6.941 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.128e-05/0.4999, allocations: 27.81 kB / 0.5322 GB, free: 6.934 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001394/0.5013, allocations: 0.5828 MB / 0.5328 GB, free: 6.551 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.472e-05/0.5013, allocations: 0 / 0.5328 GB, free: 6.551 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.965e-05/0.5014, allocations: 17.5 kB / 0.5328 GB, free: 6.539 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.111e-05/0.5014, allocations: 6.875 kB / 0.5328 GB, free: 6.539 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001436/0.5028, allocations: 0.5278 MB / 0.5333 GB, free: 6.289 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.002376/0.5052, allocations: 2.627 MB / 0.5359 GB, free: 3.805 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001363/0.5066, allocations: 463.8 kB / 0.5363 GB, free: 3.574 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003573/0.507, allocations: 186.7 kB / 0.5365 GB, free: 3.48 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04768/0.5547, allocations: 26.88 MB / 0.5628 GB, free: 8.375 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.171e-05/0.5547, allocations: 46.78 kB / 0.5628 GB, free: 8.324 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.275e-06/0.5547, allocations: 0 / 0.5628 GB, free: 8.324 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.002676/0.5574, allocations: 0.7902 MB / 0.5636 GB, free: 7.527 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.817e-05/0.5575, allocations: 114.8 kB / 0.5637 GB, free: 7.391 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003316/0.5578, allocations: 308.4 kB / 0.564 GB, free: 7.086 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.134e-05/0.5579, allocations: 29.7 kB / 0.564 GB, free: 7.051 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001406/0.558, allocations: 208.2 kB / 0.5642 GB, free: 6.844 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.189e-05/0.5581, allocations: 82.77 kB / 0.5643 GB, free: 6.762 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001144/0.5582, allocations: 69.69 kB / 0.5643 GB, free: 6.688 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001219/0.5583, allocations: 342.8 kB / 0.5647 GB, free: 6.344 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003454/0.5587, allocations: 137.7 kB / 0.5648 GB, free: 6.211 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004034/0.5591, allocations: 235.8 kB / 0.565 GB, free: 5.941 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007275/0.5598, allocations: 361.2 kB / 0.5654 GB, free: 5.555 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.5598, allocations: 0 / 0.5654 GB, free: 5.555 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0008814/0.5607, allocations: 427.1 kB / 0.5658 GB, free: 5.133 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.5608, allocations: 12.06 kB / 0.5658 GB, free: 5.121 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.5608, allocations: 0 / 0.5658 GB, free: 5.121 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/0.5608, allocations: 4 kB / 0.5658 GB, free: 5.117 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003162/0.5611, allocations: 87.83 kB / 0.5659 GB, free: 5.031 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.155e-05/0.5611, allocations: 7.984 kB / 0.5659 GB, free: 5.023 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002602/0.5614, allocations: 43.58 kB / 0.5659 GB, free: 4.98 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.301e-05/0.5614, allocations: 21.02 kB / 0.566 GB, free: 4.961 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: 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.0001705/0.5616, allocations: 161.7 kB / 0.5661 GB, free: 4.793 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.423e-05/0.5617, allocations: 31.62 kB / 0.5661 GB, free: 4.762 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002222/0.5639, allocations: 1.897 MB / 0.568 GB, free: 2.863 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.606e-05/0.564, allocations: 31.89 kB / 0.568 GB, free: 2.832 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.564, allocations: 0.875 kB / 0.568 GB, free: 2.832 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.321e-06/0.564, allocations: 3.984 kB / 0.568 GB, free: 2.828 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009062/0.5649, allocations: 1.008 MB / 0.569 GB, free: 1.781 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.5649, allocations: 7.984 kB / 0.569 GB, free: 1.773 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002772/0.5652, allocations: 75.88 kB / 0.5691 GB, free: 1.699 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.467e-06/0.5652, allocations: 0 / 0.5691 GB, free: 1.699 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.043e-05/0.5652, allocations: 8.875 kB / 0.5691 GB, free: 1.691 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.5652, allocations: 3.938 kB / 0.5691 GB, free: 1.688 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.5652, allocations: 0 / 0.5691 GB, free: 1.688 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001447/0.5667, allocations: 1.084 MB / 0.5702 GB, free: 0.5859 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001243/0.5668, allocations: 155.9 kB / 0.5703 GB, free: 424 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.143e-05/0.5669, allocations: 23.75 kB / 0.5703 GB, free: 400 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002436/0.5672, allocations: 32.97 kB / 0.5704 GB, free: 368 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.326e-05/0.5672, allocations: 31.95 kB / 0.5704 GB, free: 336 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.291e-05/0.5673, allocations: 16 kB / 0.5704 GB, free: 320 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003471/0.5676, allocations: 323.7 kB / 0.5707 GB, free: 0 / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5676, allocations: 0 / 0.5707 GB, free: 0 / 414.1 MB Notification: Performance of remove unused functions: time 0.003688/0.5713, allocations: 0.9916 MB / 0.5717 GB, free: 15.01 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: 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.004836/0.5762, allocations: 1.175 MB / 0.5728 GB, free: 13.92 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001193/0.5774, allocations: 0.5945 MB / 0.5734 GB, free: 13.32 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.5774, allocations: 0 / 0.5734 GB, free: 13.32 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006095/0.578, allocations: 0.5067 MB / 0.5739 GB, free: 12.82 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001082/0.5791, allocations: 218 kB / 0.5741 GB, free: 12.62 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001994/0.5811, allocations: 1.506 MB / 0.5756 GB, free: 11.08 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005042/0.5816, allocations: 0.9677 MB / 0.5765 GB, free: 10.09 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004151/0.5821, allocations: 278.2 kB / 0.5768 GB, free: 9.824 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.257e-05/0.5822, allocations: 35.44 kB / 0.5768 GB, free: 9.789 MB / 430.1 MB Notification: Performance of SimCode: time 4.9e-07/0.5822, allocations: 0 / 0.5768 GB, free: 9.789 MB / 430.1 MB Notification: Performance of Templates: time 0.05297/0.6351, allocations: 39.35 MB / 0.6153 GB, free: 2.52 MB / 462.1 MB 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 -s cvode -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