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.001372/0.001373, allocations: 121.7 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.001543/0.001543, allocations: 212.8 kB / 19.41 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.318/1.318, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2053/0.2053, allocations: 46.1 MB / 345 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001391/0.001392, allocations: 76.16 kB / 482 MB, free: 4.062 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3428/0.3442, allocations: 62.43 MB / 0.5317 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03072/0.375, allocations: 28.26 MB / 0.5593 GB, free: 5.402 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01566/0.3907, allocations: 13.29 MB / 0.5722 GB, free: 8.07 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004951/0.3912, allocations: 15.94 kB / 0.5722 GB, free: 8.055 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008304/0.3921, allocations: 246.4 kB / 0.5725 GB, free: 7.812 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01039/0.4025, allocations: 3.668 MB / 0.5761 GB, free: 4.145 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006537/0.4091, allocations: 2.363 MB / 0.5784 GB, free: 1.785 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001142/0.4103, allocations: 0.8886 MB / 0.5792 GB, free: 0.8945 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003884/0.4107, allocations: 264.5 kB / 0.5795 GB, free: 0.6328 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007312/0.4114, allocations: 446.2 kB / 0.5799 GB, free: 200 kB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003345/0.4117, allocations: 266.9 kB / 0.5802 GB, free: 15.93 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.768e-05/0.4118, allocations: 35.98 kB / 0.5802 GB, free: 15.9 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01353/0.4254, allocations: 7.231 MB / 0.5873 GB, free: 8.66 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001975/0.4256, allocations: 107.7 kB / 0.5874 GB, free: 8.555 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003069/0.4259, allocations: 223 kB / 0.5876 GB, free: 8.336 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0102/0.4361, allocations: 4.409 MB / 0.5919 GB, free: 3.918 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.464e-06/0.4362, allocations: 0 / 0.5919 GB, free: 3.918 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.006e-06/0.4362, allocations: 4 kB / 0.5919 GB, free: 3.914 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.326e-06/0.4362, allocations: 7.875 kB / 0.5919 GB, free: 3.906 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.003059/0.4393, allocations: 1.236 MB / 0.5931 GB, free: 2.621 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/0.4393, allocations: 8.031 kB / 0.5931 GB, free: 2.613 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001775/0.4411, allocations: 212.3 kB / 0.5933 GB, free: 2.406 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005805/0.4417, allocations: 371.3 kB / 0.5937 GB, free: 2.004 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.468e-05/0.4418, allocations: 29.03 kB / 0.5937 GB, free: 1.977 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.39e-05/0.4418, allocations: 28.38 kB / 0.5937 GB, free: 1.949 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001583/0.4434, allocations: 0.5822 MB / 0.5943 GB, free: 1.324 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.329e-05/0.4434, allocations: 4 kB / 0.5943 GB, free: 1.32 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.146e-05/0.4435, allocations: 12 kB / 0.5943 GB, free: 1.309 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.738e-06/0.4435, allocations: 8 kB / 0.5943 GB, free: 1.301 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001613/0.4451, allocations: 0.5211 MB / 0.5948 GB, free: 0.7812 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.00294/0.4481, allocations: 2.629 MB / 0.5974 GB, free: 13.91 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001594/0.4497, allocations: 454.2 kB / 0.5978 GB, free: 13.46 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004427/0.4501, allocations: 192.6 kB / 0.598 GB, free: 13.27 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05266/0.5028, allocations: 26.89 MB / 0.6243 GB, free: 14.96 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.084e-05/0.5029, allocations: 38.56 kB / 0.6243 GB, free: 14.92 MB / 494.1 MB Notification: Performance of pre-optimization done (n=25): time 3.025e-06/0.5029, allocations: 4 kB / 0.6243 GB, free: 14.91 MB / 494.1 MB Notification: Performance of matching and sorting (n=25): time 0.002996/0.5059, allocations: 0.7856 MB / 0.6251 GB, free: 14.12 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.525e-05/0.506, allocations: 106.8 kB / 0.6252 GB, free: 13.99 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003618/0.5063, allocations: 308.5 kB / 0.6255 GB, free: 13.68 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 5.077e-05/0.5064, allocations: 33.7 kB / 0.6255 GB, free: 13.64 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001561/0.5066, allocations: 204.2 kB / 0.6257 GB, free: 13.44 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.342e-05/0.5066, allocations: 86.84 kB / 0.6258 GB, free: 13.35 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001125/0.5068, allocations: 69.62 kB / 0.6258 GB, free: 13.28 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001189/0.5069, allocations: 346.8 kB / 0.6262 GB, free: 12.93 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003978/0.5073, allocations: 135.9 kB / 0.6263 GB, free: 12.8 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004524/0.5078, allocations: 231.8 kB / 0.6265 GB, free: 12.53 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008247/0.5086, allocations: 362 kB / 0.6269 GB, free: 12.14 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.119e-06/0.5086, allocations: 4 kB / 0.6269 GB, free: 12.14 MB / 494.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001021/0.5096, allocations: 424.6 kB / 0.6273 GB, free: 11.72 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.554e-05/0.5097, allocations: 8 kB / 0.6273 GB, free: 11.71 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/0.5097, allocations: 320 / 0.6273 GB, free: 11.71 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.362e-05/0.5097, allocations: 15.94 kB / 0.6273 GB, free: 11.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003334/0.5101, allocations: 79.88 kB / 0.6274 GB, free: 11.62 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.858e-06/0.5101, allocations: 7.938 kB / 0.6274 GB, free: 11.61 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002814/0.5104, allocations: 43.66 kB / 0.6274 GB, free: 11.57 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.047e-05/0.5104, allocations: 16 kB / 0.6274 GB, free: 11.55 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.0001886/0.5106, allocations: 165.7 kB / 0.6276 GB, free: 11.38 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.24e-05/0.5107, allocations: 39.56 kB / 0.6276 GB, free: 11.34 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002455/0.5132, allocations: 1.877 MB / 0.6295 GB, free: 9.449 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.593e-05/0.5132, allocations: 35.88 kB / 0.6295 GB, free: 9.414 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.5132, allocations: 3.938 kB / 0.6295 GB, free: 9.41 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.663e-06/0.5132, allocations: 0 / 0.6295 GB, free: 9.41 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009801/0.5142, allocations: 1.023 MB / 0.6305 GB, free: 8.336 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.5142, allocations: 3.938 kB / 0.6305 GB, free: 8.332 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003209/0.5146, allocations: 71.94 kB / 0.6306 GB, free: 8.262 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/0.5146, allocations: 0 / 0.6306 GB, free: 8.262 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.273e-05/0.5146, allocations: 11.98 kB / 0.6306 GB, free: 8.25 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.813e-06/0.5146, allocations: 11.92 kB / 0.6306 GB, free: 8.238 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.5146, allocations: 0 / 0.6306 GB, free: 8.238 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001481/0.5161, allocations: 1.077 MB / 0.6317 GB, free: 7.145 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000132/0.5163, allocations: 171.8 kB / 0.6318 GB, free: 6.957 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.266e-05/0.5163, allocations: 19.78 kB / 0.6318 GB, free: 6.938 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002936/0.5166, allocations: 27.91 kB / 0.6319 GB, free: 6.91 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001056/0.5167, allocations: 31.95 kB / 0.6319 GB, free: 6.879 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.633e-05/0.5168, allocations: 16 kB / 0.6319 GB, free: 6.863 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003614/0.5172, allocations: 323.1 kB / 0.6322 GB, free: 6.547 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5172, allocations: 0 / 0.6322 GB, free: 6.547 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002648/0.5198, allocations: 1.003 MB / 0.6332 GB, free: 5.543 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.004785/0.5246, allocations: 1.17 MB / 0.6343 GB, free: 4.371 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001307/0.5259, allocations: 0.595 MB / 0.6349 GB, free: 3.777 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.526, allocations: 0 / 0.6349 GB, free: 3.777 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007151/0.5267, allocations: 0.506 MB / 0.6354 GB, free: 3.273 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001215/0.5279, allocations: 225.5 kB / 0.6356 GB, free: 3.062 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002244/0.5302, allocations: 1.521 MB / 0.6371 GB, free: 1.504 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004541/0.5306, allocations: 0.9599 MB / 0.6381 GB, free: 0.5195 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00013/0.5308, allocations: 47.42 kB / 0.6381 GB, free: 484 kB / 494.1 MB Notification: Performance of SimCode: time 5.31e-07/0.5308, allocations: 0 / 0.6381 GB, free: 484 kB / 494.1 MB Notification: Performance of Templates: time 0.03564/0.5664, allocations: 24.08 MB / 0.6616 GB, free: 8.406 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