Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001207/0.001207, allocations: 104.5 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001267/0.001267, allocations: 192 kB / 18.56 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.308/1.308, allocations: 222.9 MB / 242.2 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2006/0.2006, allocations: 44.18 MB / 336.6 MB, free: 2.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 63.28 kB / 408.4 MB, free: 27.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1231/0.1244, allocations: 60.83 MB / 469.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03194/0.1564, allocations: 28.11 MB / 497.4 MB, free: 2.121 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01517/0.1716, allocations: 13.31 MB / 0.4987 GB, free: 4.766 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003991/0.172, allocations: 7.938 kB / 0.4987 GB, free: 4.758 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000719/0.1727, allocations: 254.4 kB / 0.499 GB, free: 4.508 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009806/0.1826, allocations: 3.657 MB / 0.5025 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2642/0.4468, allocations: 2.351 MB / 0.5048 GB, free: 13.27 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001609/0.4484, allocations: 0.89 MB / 0.5057 GB, free: 13.27 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000467/0.4489, allocations: 250 kB / 0.5059 GB, free: 13.27 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009076/0.4498, allocations: 446.6 kB / 0.5064 GB, free: 13.26 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003525/0.4502, allocations: 265.1 kB / 0.5066 GB, free: 13.26 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.167e-05/0.4502, allocations: 37.25 kB / 0.5066 GB, free: 13.26 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01942/0.4697, allocations: 7.052 MB / 0.5135 GB, free: 13.26 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003284/0.4701, allocations: 105.8 kB / 0.5136 GB, free: 13.26 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006568/0.4707, allocations: 220.8 kB / 0.5138 GB, free: 13.26 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01446/0.4852, allocations: 4.41 MB / 0.5182 GB, free: 13.15 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.694e-06/0.4852, allocations: 3.094 kB / 0.5182 GB, free: 13.15 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.4852, allocations: 0.5312 kB / 0.5182 GB, free: 13.15 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.095e-05/0.4853, allocations: 0.7812 kB / 0.5182 GB, free: 13.15 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.004688/0.49, allocations: 1.229 MB / 0.5194 GB, free: 12.44 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/0.49, allocations: 9.75 kB / 0.5194 GB, free: 12.44 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001703/0.4917, allocations: 208.1 kB / 0.5196 GB, free: 12.42 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000484/0.4922, allocations: 372.5 kB / 0.5199 GB, free: 12.18 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.029e-05/0.4923, allocations: 26.44 kB / 0.5199 GB, free: 12.18 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.219e-05/0.4923, allocations: 29.28 kB / 0.52 GB, free: 12.18 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001454/0.4938, allocations: 0.5807 MB / 0.5205 GB, free: 12.05 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.354e-05/0.4938, allocations: 2 kB / 0.5205 GB, free: 12.05 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.243e-05/0.4939, allocations: 18.19 kB / 0.5206 GB, free: 12.04 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.391e-05/0.4939, allocations: 10.62 kB / 0.5206 GB, free: 12.04 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001512/0.4954, allocations: 0.5262 MB / 0.5211 GB, free: 12.04 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.002792/0.4982, allocations: 2.622 MB / 0.5236 GB, free: 10.12 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001576/0.4998, allocations: 460.5 kB / 0.5241 GB, free: 10.1 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003989/0.5002, allocations: 188.9 kB / 0.5243 GB, free: 10.06 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04707/0.5473, allocations: 24.21 MB / 0.5479 GB, free: 5.512 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.265e-05/0.5474, allocations: 38.55 kB / 0.5479 GB, free: 5.465 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 3.697e-06/0.5474, allocations: 2.766 kB / 0.5479 GB, free: 5.465 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.002757/0.5502, allocations: 0.7827 MB / 0.5487 GB, free: 4.832 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.031e-05/0.5502, allocations: 110.8 kB / 0.5488 GB, free: 4.699 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003579/0.5506, allocations: 314.2 kB / 0.5491 GB, free: 4.441 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.306e-05/0.5506, allocations: 28.95 kB / 0.5491 GB, free: 4.41 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001396/0.5508, allocations: 213.3 kB / 0.5493 GB, free: 4.25 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.276e-05/0.5509, allocations: 84.59 kB / 0.5494 GB, free: 4.18 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001061/0.551, allocations: 71.09 kB / 0.5495 GB, free: 4.129 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001192/0.5511, allocations: 338.9 kB / 0.5498 GB, free: 3.801 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003621/0.5515, allocations: 142.1 kB / 0.55 GB, free: 3.699 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004294/0.5519, allocations: 238.2 kB / 0.5502 GB, free: 3.477 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007308/0.5527, allocations: 356.9 kB / 0.5505 GB, free: 3.191 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.5527, allocations: 4 kB / 0.5505 GB, free: 3.188 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009074/0.5536, allocations: 424.5 kB / 0.5509 GB, free: 2.871 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/0.5536, allocations: 4 kB / 0.5509 GB, free: 2.867 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.5536, allocations: 4 kB / 0.5509 GB, free: 2.863 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.908e-05/0.5537, allocations: 4 kB / 0.5509 GB, free: 2.859 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003331/0.554, allocations: 86.69 kB / 0.551 GB, free: 2.785 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.199e-05/0.554, allocations: 7.094 kB / 0.551 GB, free: 2.781 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003005/0.5543, allocations: 43.23 kB / 0.5511 GB, free: 2.742 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.297e-05/0.5544, allocations: 23.86 kB / 0.5511 GB, free: 2.723 MB / 398.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.0002019/0.5546, allocations: 154.8 kB / 0.5512 GB, free: 2.586 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.646e-05/0.5547, allocations: 35.53 kB / 0.5513 GB, free: 2.551 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002248/0.5569, allocations: 1.906 MB / 0.5531 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.942e-05/0.557, allocations: 31.89 kB / 0.5532 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.557, allocations: 2.062 kB / 0.5532 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.204e-06/0.557, allocations: 3.984 kB / 0.5532 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009545/0.5579, allocations: 1.013 MB / 0.5542 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.611e-06/0.558, allocations: 3.875 kB / 0.5542 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002958/0.5583, allocations: 74.75 kB / 0.5542 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.571e-06/0.5583, allocations: 4 kB / 0.5542 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.095e-05/0.5583, allocations: 4 kB / 0.5542 GB, free: 15.69 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.009e-06/0.5583, allocations: 7.938 kB / 0.5543 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.5583, allocations: 0 / 0.5543 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001379/0.5597, allocations: 1.08 MB / 0.5553 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001316/0.5598, allocations: 159.9 kB / 0.5555 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.304e-05/0.5599, allocations: 19.75 kB / 0.5555 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000248/0.5602, allocations: 31.91 kB / 0.5555 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.396e-05/0.5603, allocations: 35.95 kB / 0.5555 GB, free: 14.33 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.443e-05/0.5603, allocations: 11.98 kB / 0.5556 GB, free: 14.32 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003249/0.5606, allocations: 323.1 kB / 0.5559 GB, free: 14 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5606, allocations: 0 / 0.5559 GB, free: 14 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004259/0.5649, allocations: 0.9955 MB / 0.5568 GB, free: 13.01 MB / 414.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.005991/0.5709, allocations: 1.172 MB / 0.558 GB, free: 11.94 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001576/0.5725, allocations: 0.6151 MB / 0.5586 GB, free: 11.34 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.5725, allocations: 4 kB / 0.5586 GB, free: 11.34 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000626/0.5732, allocations: 0.5075 MB / 0.5591 GB, free: 10.83 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001231/0.5744, allocations: 221.4 kB / 0.5593 GB, free: 10.63 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001987/0.5764, allocations: 1.526 MB / 0.5608 GB, free: 9.082 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004318/0.5768, allocations: 0.9638 MB / 0.5617 GB, free: 8.094 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004449/0.5773, allocations: 278.2 kB / 0.562 GB, free: 7.828 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000103/0.5774, allocations: 43 kB / 0.562 GB, free: 7.789 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.5774, allocations: 0 / 0.562 GB, free: 7.789 MB / 414.1 MB Notification: Performance of Templates: time 0.05584/0.6333, allocations: 39.44 MB / 0.6005 GB, free: 0.5234 MB / 446.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches