Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001106/0.001107, allocations: 183 kB / 16.63 MB, free: 5.137 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.319/1.319, allocations: 205.1 MB / 222.5 MB, free: 8.477 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001064/0.001064, allocations: 108.4 kB / 269.9 MB, free: 8.43 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3388/0.3388, allocations: 43.48 MB / 360.7 MB, free: 51.2 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001176/0.001176, allocations: 47.92 kB / 429.2 MB, free: 6.391 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1174, allocations: 57.77 MB / 487 MB, free: 12.55 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.2447/0.3621, allocations: 28.99 MB / 0.5039 GB, free: 37.29 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.01625/0.3784, allocations: 14.26 MB / 0.5178 GB, free: 36.97 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005196/0.379, allocations: 8.406 kB / 0.5178 GB, free: 36.97 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009568/0.3799, allocations: 222.3 kB / 0.5181 GB, free: 36.95 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0104/0.3904, allocations: 2.913 MB / 0.5209 GB, free: 36.54 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005902/0.3963, allocations: 1.976 MB / 0.5228 GB, free: 36.2 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.001318/0.3977, allocations: 1.136 MB / 0.5239 GB, free: 36.01 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003285/0.398, allocations: 215.5 kB / 0.5241 GB, free: 35.98 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006526/0.3987, allocations: 400.3 kB / 0.5245 GB, free: 35.9 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002622/0.3989, allocations: 268.9 kB / 0.5248 GB, free: 35.84 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 4.051e-05/0.399, allocations: 16.69 kB / 0.5248 GB, free: 35.84 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01238/0.4114, allocations: 7.117 MB / 0.5318 GB, free: 34.42 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002119/0.4116, allocations: 81 kB / 0.5318 GB, free: 34.38 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003744/0.412, allocations: 207.9 kB / 0.532 GB, free: 34.28 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01146/0.4235, allocations: 4.402 MB / 0.5363 GB, free: 33.25 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.486e-06/0.4235, allocations: 0 / 0.5363 GB, free: 33.25 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.4235, allocations: 3.938 kB / 0.5363 GB, free: 33.24 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.273e-05/0.4235, allocations: 7 kB / 0.5363 GB, free: 33.24 MB / 394.7 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.003917/0.4275, allocations: 1.224 MB / 0.5375 GB, free: 32.45 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/0.4275, allocations: 10.75 kB / 0.5375 GB, free: 32.45 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00183/0.4294, allocations: 211.2 kB / 0.5377 GB, free: 32.41 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005958/0.43, allocations: 367.5 kB / 0.5381 GB, free: 32.12 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.096e-05/0.43, allocations: 25.22 kB / 0.5381 GB, free: 32.11 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.561e-05/0.4301, allocations: 29.41 kB / 0.5381 GB, free: 32.11 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001502/0.4316, allocations: 0.5872 MB / 0.5387 GB, free: 31.84 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.694e-05/0.4316, allocations: 1.312 kB / 0.5387 GB, free: 31.84 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.465e-05/0.4317, allocations: 13.81 kB / 0.5387 GB, free: 31.84 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.4317, allocations: 8.719 kB / 0.5387 GB, free: 31.84 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001522/0.4332, allocations: 0.5268 MB / 0.5393 GB, free: 31.71 MB / 394.7 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.00285/0.4361, allocations: 2.63 MB / 0.5418 GB, free: 29.48 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001495/0.4376, allocations: 454.8 kB / 0.5423 GB, free: 29.36 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004254/0.438, allocations: 193 kB / 0.5424 GB, free: 29.3 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04553/0.4836, allocations: 24.21 MB / 0.5661 GB, free: 12.01 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.068e-05/0.4837, allocations: 32.84 kB / 0.5661 GB, free: 11.97 MB / 394.7 MB Notification: Performance of pre-optimization done (n=25): time 2.705e-06/0.4837, allocations: 1.469 kB / 0.5661 GB, free: 11.97 MB / 394.7 MB Notification: Performance of matching and sorting (n=25): time 0.002742/0.4864, allocations: 0.7891 MB / 0.5669 GB, free: 11.57 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.619e-05/0.4865, allocations: 110.6 kB / 0.567 GB, free: 11.45 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003727/0.4869, allocations: 310 kB / 0.5673 GB, free: 11.24 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.2e-05/0.4869, allocations: 30.86 kB / 0.5673 GB, free: 11.21 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001159/0.487, allocations: 202.8 kB / 0.5675 GB, free: 11.03 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.122e-05/0.4871, allocations: 89.88 kB / 0.5676 GB, free: 10.95 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001126/0.4872, allocations: 69.81 kB / 0.5677 GB, free: 10.9 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.853e-05/0.4873, allocations: 345.7 kB / 0.568 GB, free: 10.56 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003713/0.4877, allocations: 138.7 kB / 0.5681 GB, free: 10.5 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00041/0.4881, allocations: 233.8 kB / 0.5683 GB, free: 10.31 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000736/0.4889, allocations: 356.5 kB / 0.5687 GB, free: 10.08 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.955e-06/0.4889, allocations: 2.125 kB / 0.5687 GB, free: 10.08 MB / 394.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001011/0.4899, allocations: 427.3 kB / 0.5691 GB, free: 9.855 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.936e-05/0.4899, allocations: 6.688 kB / 0.5691 GB, free: 9.855 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/0.4899, allocations: 2.562 kB / 0.5691 GB, free: 9.855 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.098e-05/0.49, allocations: 8.078 kB / 0.5691 GB, free: 9.852 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003031/0.4903, allocations: 85.39 kB / 0.5692 GB, free: 9.824 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.233e-05/0.4903, allocations: 11.81 kB / 0.5692 GB, free: 9.816 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003369/0.4906, allocations: 58.86 kB / 0.5693 GB, free: 9.785 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.739e-05/0.4907, allocations: 15.47 kB / 0.5693 GB, free: 9.781 MB / 394.7 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.0001675/0.4909, allocations: 161.1 kB / 0.5694 GB, free: 9.633 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.891e-05/0.491, allocations: 41.33 kB / 0.5695 GB, free: 9.609 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002174/0.4931, allocations: 1.892 MB / 0.5713 GB, free: 8.527 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.201e-05/0.4932, allocations: 30.95 kB / 0.5713 GB, free: 8.504 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.4932, allocations: 2 kB / 0.5713 GB, free: 8.504 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.161e-06/0.4932, allocations: 3.984 kB / 0.5714 GB, free: 8.5 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008635/0.4941, allocations: 1.014 MB / 0.5723 GB, free: 7.77 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.4941, allocations: 0 / 0.5723 GB, free: 7.77 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002707/0.4944, allocations: 73.06 kB / 0.5724 GB, free: 7.746 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.097e-06/0.4944, allocations: 0 / 0.5724 GB, free: 7.746 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.014e-05/0.4944, allocations: 6.594 kB / 0.5724 GB, free: 7.742 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/0.4944, allocations: 6.719 kB / 0.5724 GB, free: 7.738 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.4944, allocations: 0 / 0.5724 GB, free: 7.738 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002361/0.4968, allocations: 2.244 MB / 0.5746 GB, free: 22.14 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001557/0.4969, allocations: 169.3 kB / 0.5748 GB, free: 21.98 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.139e-05/0.497, allocations: 23.62 kB / 0.5748 GB, free: 21.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002989/0.4973, allocations: 41.69 kB / 0.5748 GB, free: 21.94 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.484e-05/0.4974, allocations: 35.36 kB / 0.5749 GB, free: 21.92 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.366e-05/0.4975, allocations: 15.3 kB / 0.5749 GB, free: 21.91 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003381/0.4978, allocations: 324.1 kB / 0.5752 GB, free: 21.72 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4978, allocations: 0 / 0.5752 GB, free: 21.72 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003337/0.5012, allocations: 1.016 MB / 0.5762 GB, free: 21.52 MB / 410.7 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.005789/0.507, allocations: 1.164 MB / 0.5773 GB, free: 21.14 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001097/0.5081, allocations: 0.5913 MB / 0.5779 GB, free: 20.86 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.307e-06/0.5081, allocations: 0 / 0.5779 GB, free: 20.86 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006551/0.5087, allocations: 0.5122 MB / 0.5784 GB, free: 20.58 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001209/0.51, allocations: 212.9 kB / 0.5786 GB, free: 20.46 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002445/0.5124, allocations: 2.544 MB / 0.5811 GB, free: 17.98 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004938/0.5129, allocations: 0.9989 MB / 0.5821 GB, free: 16.96 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0004124/0.5134, allocations: 270.1 kB / 0.5823 GB, free: 16.71 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001033/0.5135, allocations: 39.44 kB / 0.5824 GB, free: 16.67 MB / 410.7 MB Notification: Performance of SimCode: time 1.563e-06/0.5135, allocations: 4 kB / 0.5824 GB, free: 16.67 MB / 410.7 MB Notification: Performance of Templates: time 0.06114/0.5746, allocations: 39.08 MB / 0.6205 GB, free: 9.598 MB / 442.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches