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.001019/0.001019, allocations: 92.97 kB / 18 MB, free: 5.602 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.00103/0.00103, allocations: 179.5 kB / 18.91 MB, free: 4.734 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.39/1.39, allocations: 223.3 MB / 242.9 MB, free: 40 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2132/0.2132, allocations: 44.25 MB / 338.3 MB, free: 2.637 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003241/0.000324, allocations: 14.78 kB / 411 MB, free: 27.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1091, allocations: 61.91 MB / 472.9 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.0311/0.1402, allocations: 28.28 MB / 0.4895 GB, free: 0.9688 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01806/0.1583, allocations: 14.05 MB / 0.5032 GB, free: 2.879 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005869/0.1589, allocations: 7.938 kB / 0.5032 GB, free: 2.871 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009243/0.1599, allocations: 226.8 kB / 0.5034 GB, free: 2.648 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2578/0.4177, allocations: 2.909 MB / 0.5062 GB, free: 13.04 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007983/0.4257, allocations: 1.979 MB / 0.5082 GB, free: 13.03 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002157/0.4279, allocations: 1.13 MB / 0.5093 GB, free: 13.03 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000638/0.4285, allocations: 216.3 kB / 0.5095 GB, free: 13.02 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001282/0.4298, allocations: 395.1 kB / 0.5099 GB, free: 13.02 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007149/0.4306, allocations: 264.8 kB / 0.5101 GB, free: 13.02 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001031/0.4307, allocations: 15.94 kB / 0.5101 GB, free: 13.02 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01769/0.4484, allocations: 7.12 MB / 0.5171 GB, free: 13.01 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002806/0.4487, allocations: 91.55 kB / 0.5172 GB, free: 13.01 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006054/0.4493, allocations: 222.6 kB / 0.5174 GB, free: 12.98 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007688/0.457, allocations: 2.989 MB / 0.5203 GB, free: 12.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.4571, allocations: 1.375 kB / 0.5203 GB, free: 12.91 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.4571, allocations: 0 / 0.5203 GB, free: 12.91 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.962e-05/0.4571, allocations: 0 / 0.5203 GB, free: 12.91 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.004969/0.4621, allocations: 1.153 MB / 0.5214 GB, free: 12.22 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.78e-05/0.4621, allocations: 16.72 kB / 0.5214 GB, free: 12.21 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00188/0.464, allocations: 224.4 kB / 0.5216 GB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005942/0.4647, allocations: 368.1 kB / 0.522 GB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.343e-05/0.4647, allocations: 29.28 kB / 0.522 GB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.972e-05/0.4648, allocations: 29.38 kB / 0.5221 GB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00166/0.4664, allocations: 0.6026 MB / 0.5226 GB, free: 11.75 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.897e-05/0.4665, allocations: 4.469 kB / 0.5226 GB, free: 11.75 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.702e-05/0.4665, allocations: 13.69 kB / 0.5227 GB, free: 11.75 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.175e-05/0.4666, allocations: 7.906 kB / 0.5227 GB, free: 11.75 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001671/0.4682, allocations: 0.5669 MB / 0.5232 GB, free: 11.63 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.003001/0.4713, allocations: 2.635 MB / 0.5258 GB, free: 9.465 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001549/0.4728, allocations: 495.6 kB / 0.5263 GB, free: 9.328 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004275/0.4733, allocations: 201.9 kB / 0.5265 GB, free: 9.285 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04773/0.521, allocations: 24.43 MB / 0.5503 GB, free: 4.602 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.364e-05/0.5211, allocations: 41.75 kB / 0.5504 GB, free: 4.555 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 3.727e-06/0.5211, allocations: 0 / 0.5504 GB, free: 4.555 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.00311/0.5242, allocations: 0.8436 MB / 0.5512 GB, free: 3.859 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001265/0.5244, allocations: 113.7 kB / 0.5513 GB, free: 3.727 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000421/0.5248, allocations: 311.1 kB / 0.5516 GB, free: 3.477 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.933e-05/0.5249, allocations: 33.64 kB / 0.5516 GB, free: 3.441 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001607/0.525, allocations: 201.6 kB / 0.5518 GB, free: 3.293 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.649e-05/0.5251, allocations: 85.89 kB / 0.5519 GB, free: 3.223 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.622e-05/0.5252, allocations: 36.14 kB / 0.5519 GB, free: 3.191 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.5253, allocations: 343.8 kB / 0.5523 GB, free: 2.859 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004321/0.5258, allocations: 153.7 kB / 0.5524 GB, free: 2.746 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004756/0.5263, allocations: 245.2 kB / 0.5526 GB, free: 2.512 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008746/0.5272, allocations: 395.2 kB / 0.553 GB, free: 2.191 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.5272, allocations: 0 / 0.553 GB, free: 2.191 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001093/0.5283, allocations: 453 kB / 0.5534 GB, free: 1.848 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.175e-05/0.5283, allocations: 4 kB / 0.5534 GB, free: 1.844 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.5283, allocations: 4 kB / 0.5534 GB, free: 1.84 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.301e-05/0.5283, allocations: 4 kB / 0.5535 GB, free: 1.836 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003437/0.5287, allocations: 89.56 kB / 0.5535 GB, free: 1.754 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.349e-05/0.5287, allocations: 8 kB / 0.5535 GB, free: 1.746 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004207/0.5291, allocations: 61.94 kB / 0.5536 GB, free: 1.691 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.648e-05/0.5292, allocations: 19.92 kB / 0.5536 GB, free: 1.676 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.0002115/0.5294, allocations: 161.9 kB / 0.5538 GB, free: 1.539 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.243e-05/0.5295, allocations: 31.62 kB / 0.5538 GB, free: 1.508 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002563/0.5321, allocations: 1.945 MB / 0.5557 GB, free: 200 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.083e-05/0.5321, allocations: 31.83 kB / 0.5557 GB, free: 176 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.738e-06/0.5322, allocations: 0.75 kB / 0.5557 GB, free: 176 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.784e-06/0.5322, allocations: 3.984 kB / 0.5557 GB, free: 172 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001153/0.5333, allocations: 1.008 MB / 0.5567 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.132e-06/0.5333, allocations: 0 / 0.5567 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003461/0.5337, allocations: 93.95 kB / 0.5568 GB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.05e-06/0.5337, allocations: 0 / 0.5568 GB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.333e-05/0.5337, allocations: 7.938 kB / 0.5568 GB, free: 15.35 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.539e-06/0.5337, allocations: 3.938 kB / 0.5568 GB, free: 15.35 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.5338, allocations: 0.9375 kB / 0.5568 GB, free: 15.35 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001572/0.5353, allocations: 1.107 MB / 0.5579 GB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002486/0.5356, allocations: 216.2 kB / 0.5581 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.039e-05/0.5357, allocations: 6.984 kB / 0.5581 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003356/0.536, allocations: 54.25 kB / 0.5582 GB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001/0.5361, allocations: 31.39 kB / 0.5582 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.677e-05/0.5362, allocations: 8 kB / 0.5582 GB, free: 14.23 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003556/0.5365, allocations: 333 kB / 0.5585 GB, free: 13.98 MB / 414.1 MB Notification: Performance of sort global known variables: time 7.51e-07/0.5365, allocations: 0 / 0.5585 GB, free: 13.98 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004454/0.541, allocations: 0.9846 MB / 0.5595 GB, free: 13.04 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.007756/0.5488, allocations: 1.19 MB / 0.5607 GB, free: 11.98 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001476/0.5503, allocations: 0.6184 MB / 0.5613 GB, free: 11.56 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.5503, allocations: 4 kB / 0.5613 GB, free: 11.55 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007937/0.5511, allocations: 0.5229 MB / 0.5618 GB, free: 11.05 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001412/0.5525, allocations: 205.5 kB / 0.562 GB, free: 10.85 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002593/0.5551, allocations: 1.912 MB / 0.5638 GB, free: 8.902 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005577/0.5557, allocations: 0.9638 MB / 0.5648 GB, free: 7.918 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001388/0.5558, allocations: 42.25 kB / 0.5648 GB, free: 7.879 MB / 414.1 MB Notification: Performance of SimCode: time 7.51e-07/0.5558, allocations: 0 / 0.5648 GB, free: 7.879 MB / 414.1 MB Notification: Performance of Templates: time 0.04237/0.5982, allocations: 23.95 MB / 0.5882 GB, free: 32 kB / 430.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/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_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches