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.001401/0.001401, allocations: 118.8 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.00159/0.00159, allocations: 198 kB / 18.73 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.329/1.329, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2085/0.2085, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001368/0.001368, allocations: 79.88 kB / 481.3 MB, free: 4.059 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3429/0.3443, allocations: 62.42 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03027/0.3746, allocations: 28.27 MB / 0.5586 GB, free: 5.395 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01539/0.39, allocations: 13.29 MB / 0.5716 GB, free: 8.059 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004687/0.3905, allocations: 15.88 kB / 0.5716 GB, free: 8.043 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008143/0.3914, allocations: 242.4 kB / 0.5718 GB, free: 7.805 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01053/0.4019, allocations: 3.668 MB / 0.5754 GB, free: 4.141 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007647/0.4096, allocations: 2.359 MB / 0.5777 GB, free: 1.781 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001486/0.4111, allocations: 0.8924 MB / 0.5786 GB, free: 0.8867 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000598/0.4117, allocations: 268.5 kB / 0.5788 GB, free: 0.6211 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001026/0.4128, allocations: 438.2 kB / 0.5792 GB, free: 196 kB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005598/0.4133, allocations: 270.9 kB / 0.5795 GB, free: 15.93 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001024/0.4134, allocations: 35.94 kB / 0.5795 GB, free: 15.89 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01573/0.4292, allocations: 7.227 MB / 0.5866 GB, free: 8.656 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002119/0.4294, allocations: 99.72 kB / 0.5867 GB, free: 8.559 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003893/0.4298, allocations: 223 kB / 0.5869 GB, free: 8.34 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0142/0.444, allocations: 4.427 MB / 0.5912 GB, free: 3.902 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.105e-06/0.4441, allocations: 0 / 0.5912 GB, free: 3.902 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.116e-06/0.4441, allocations: 0 / 0.5912 GB, free: 3.902 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.625e-05/0.4441, allocations: 0 / 0.5912 GB, free: 3.902 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.004614/0.4488, allocations: 1.271 MB / 0.5925 GB, free: 2.578 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.641e-05/0.4488, allocations: 12.03 kB / 0.5925 GB, free: 2.566 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002/0.4508, allocations: 212.5 kB / 0.5927 GB, free: 2.359 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008319/0.4517, allocations: 387.4 kB / 0.5931 GB, free: 1.941 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.77e-05/0.4518, allocations: 29.03 kB / 0.5931 GB, free: 1.914 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.307e-05/0.4518, allocations: 24.38 kB / 0.5931 GB, free: 1.891 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001605/0.4534, allocations: 0.5822 MB / 0.5937 GB, free: 1.266 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.503e-05/0.4535, allocations: 4 kB / 0.5937 GB, free: 1.262 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.615e-05/0.4535, allocations: 12 kB / 0.5937 GB, free: 1.25 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.289e-05/0.4535, allocations: 8 kB / 0.5937 GB, free: 1.242 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001589/0.4551, allocations: 0.5289 MB / 0.5942 GB, free: 0.7148 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.003537/0.4587, allocations: 2.621 MB / 0.5968 GB, free: 13.85 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001575/0.4603, allocations: 466.1 kB / 0.5972 GB, free: 13.39 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004219/0.4607, allocations: 188.7 kB / 0.5974 GB, free: 13.2 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04958/0.5103, allocations: 26.89 MB / 0.6237 GB, free: 14.9 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.942e-05/0.5104, allocations: 38.56 kB / 0.6237 GB, free: 14.86 MB / 494.1 MB Notification: Performance of pre-optimization done (n=25): time 2.875e-06/0.5104, allocations: 0 / 0.6237 GB, free: 14.86 MB / 494.1 MB Notification: Performance of matching and sorting (n=25): time 0.002978/0.5134, allocations: 0.7897 MB / 0.6245 GB, free: 14.06 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001114/0.5135, allocations: 106.8 kB / 0.6246 GB, free: 13.93 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000558/0.5141, allocations: 308.5 kB / 0.6249 GB, free: 13.62 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 5.763e-05/0.5142, allocations: 33.7 kB / 0.6249 GB, free: 13.58 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002135/0.5144, allocations: 212.5 kB / 0.6251 GB, free: 13.37 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000122/0.5145, allocations: 91.25 kB / 0.6252 GB, free: 13.28 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001724/0.5147, allocations: 65.69 kB / 0.6252 GB, free: 13.21 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001876/0.5149, allocations: 342.8 kB / 0.6256 GB, free: 12.86 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004255/0.5153, allocations: 139.9 kB / 0.6257 GB, free: 12.73 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005235/0.5159, allocations: 231.8 kB / 0.6259 GB, free: 12.46 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008612/0.5168, allocations: 365.9 kB / 0.6263 GB, free: 12.07 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.66e-06/0.5168, allocations: 4 kB / 0.6263 GB, free: 12.07 MB / 494.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001052/0.5178, allocations: 429.2 kB / 0.6267 GB, free: 11.64 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.217e-05/0.5179, allocations: 8 kB / 0.6267 GB, free: 11.63 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.679e-06/0.5179, allocations: 0 / 0.6267 GB, free: 11.63 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.026e-05/0.5179, allocations: 11.94 kB / 0.6267 GB, free: 11.62 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003104/0.5182, allocations: 79.88 kB / 0.6268 GB, free: 11.54 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.391e-05/0.5183, allocations: 4 kB / 0.6268 GB, free: 11.54 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003157/0.5186, allocations: 39.81 kB / 0.6268 GB, free: 11.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.925e-05/0.5186, allocations: 19.98 kB / 0.6268 GB, free: 11.48 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.0002302/0.5189, allocations: 165.7 kB / 0.627 GB, free: 11.31 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001087/0.519, allocations: 39.77 kB / 0.627 GB, free: 11.27 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002569/0.5216, allocations: 1.893 MB / 0.6289 GB, free: 9.367 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.171e-05/0.5216, allocations: 35.83 kB / 0.6289 GB, free: 9.332 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.5216, allocations: 3.984 kB / 0.6289 GB, free: 9.328 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.5216, allocations: 0 / 0.6289 GB, free: 9.328 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001101/0.5228, allocations: 1.024 MB / 0.6299 GB, free: 8.254 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.646e-06/0.5228, allocations: 8 kB / 0.6299 GB, free: 8.246 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002881/0.5231, allocations: 71.88 kB / 0.63 GB, free: 8.176 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.324e-06/0.5231, allocations: 3.984 kB / 0.63 GB, free: 8.172 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.323e-05/0.5231, allocations: 8 kB / 0.63 GB, free: 8.164 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.719e-06/0.5231, allocations: 3.938 kB / 0.63 GB, free: 8.16 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.5231, allocations: 0 / 0.63 GB, free: 8.16 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001494/0.5246, allocations: 1.085 MB / 0.6311 GB, free: 7.059 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001854/0.5248, allocations: 168.3 kB / 0.6312 GB, free: 6.875 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.334e-05/0.5249, allocations: 23.78 kB / 0.6313 GB, free: 6.852 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002669/0.5252, allocations: 27.92 kB / 0.6313 GB, free: 6.824 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001002/0.5253, allocations: 31.95 kB / 0.6313 GB, free: 6.793 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.97e-05/0.5253, allocations: 15.98 kB / 0.6313 GB, free: 6.777 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.000351/0.5257, allocations: 323.1 kB / 0.6316 GB, free: 6.461 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5257, allocations: 0 / 0.6316 GB, free: 6.461 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003286/0.529, allocations: 1.01 MB / 0.6326 GB, free: 5.449 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.005741/0.5347, allocations: 1.176 MB / 0.6338 GB, free: 4.27 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001332/0.5361, allocations: 0.5982 MB / 0.6344 GB, free: 3.672 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.072e-06/0.5361, allocations: 0 / 0.6344 GB, free: 3.672 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006995/0.5368, allocations: 0.5028 MB / 0.6348 GB, free: 3.172 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001221/0.5381, allocations: 229.7 kB / 0.6351 GB, free: 2.953 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002549/0.5406, allocations: 1.518 MB / 0.6365 GB, free: 1.402 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005305/0.5412, allocations: 0.9638 MB / 0.6375 GB, free: 424 kB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0004907/0.5417, allocations: 277.6 kB / 0.6378 GB, free: 144 kB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001245/0.5418, allocations: 43.42 kB / 0.6378 GB, free: 100 kB / 494.1 MB Notification: Performance of SimCode: time 2.81e-07/0.5418, allocations: 0 / 0.6378 GB, free: 100 kB / 494.1 MB Notification: Performance of Templates: time 0.05814/0.5999, allocations: 39.49 MB / 0.6764 GB, free: 8.656 MB / 0.5294 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches