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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001669/0.001669, allocations: 186.9 kB / 17.97 MB, free: 3.797 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.392/1.392, allocations: 222.9 MB / 241.6 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000988/0.000988, allocations: 115.7 kB / 291.9 MB, free: 10.98 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3449/0.3449, allocations: 44.14 MB / 386.1 MB, free: 38.04 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001016/0.001016, allocations: 55.91 kB / 457.7 MB, free: 2.336 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.348/0.349, allocations: 60.81 MB / 0.5064 GB, free: 38.17 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.02581/0.3749, allocations: 28.97 MB / 0.5347 GB, free: 17.88 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01383/0.3888, allocations: 14.27 MB / 0.5486 GB, free: 7.961 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00044/0.3893, allocations: 18.06 kB / 0.5486 GB, free: 7.949 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007861/0.3901, allocations: 215.5 kB / 0.5489 GB, free: 7.832 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009613/0.3998, allocations: 2.928 MB / 0.5517 GB, free: 6.547 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006345/0.4061, allocations: 1.978 MB / 0.5536 GB, free: 5.5 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001419/0.4076, allocations: 1.136 MB / 0.5548 GB, free: 5.07 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004084/0.408, allocations: 205.4 kB / 0.5549 GB, free: 4.992 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008678/0.4089, allocations: 403.8 kB / 0.5553 GB, free: 4.824 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003675/0.4092, allocations: 275.1 kB / 0.5556 GB, free: 4.711 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.119e-05/0.4093, allocations: 16.25 kB / 0.5556 GB, free: 4.711 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01774/0.427, allocations: 7.115 MB / 0.5626 GB, free: 2.887 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002918/0.4274, allocations: 94.36 kB / 0.5626 GB, free: 2.836 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004276/0.4279, allocations: 202.6 kB / 0.5628 GB, free: 2.734 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01297/0.4408, allocations: 4.415 MB / 0.5672 GB, free: 15.99 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.959e-06/0.4409, allocations: 0 / 0.5672 GB, free: 15.99 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.885e-06/0.4409, allocations: 1.125 kB / 0.5672 GB, free: 15.99 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.057e-06/0.4409, allocations: 0 / 0.5672 GB, free: 15.99 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.005236/0.4462, allocations: 1.224 MB / 0.5683 GB, free: 15.09 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.452e-05/0.4463, allocations: 14.09 kB / 0.5684 GB, free: 15.09 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00172/0.448, allocations: 217.6 kB / 0.5686 GB, free: 15 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005739/0.4486, allocations: 362.7 kB / 0.5689 GB, free: 14.66 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.929e-05/0.4486, allocations: 26.69 kB / 0.5689 GB, free: 14.65 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.487e-05/0.4487, allocations: 27.22 kB / 0.569 GB, free: 14.64 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001531/0.4502, allocations: 0.5863 MB / 0.5695 GB, free: 14.25 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.496e-05/0.4503, allocations: 9.125 kB / 0.5695 GB, free: 14.24 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.285e-05/0.4503, allocations: 12.5 kB / 0.5696 GB, free: 14.23 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.24e-05/0.4503, allocations: 7.688 kB / 0.5696 GB, free: 14.23 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001541/0.4519, allocations: 0.5238 MB / 0.5701 GB, free: 13.98 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.003281/0.4552, allocations: 2.623 MB / 0.5726 GB, free: 11.49 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001542/0.4567, allocations: 460.1 kB / 0.5731 GB, free: 11.26 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004395/0.4572, allocations: 186.9 kB / 0.5733 GB, free: 11.16 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05127/0.5085, allocations: 24.21 MB / 0.5969 GB, free: 164 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.116e-05/0.5086, allocations: 54.48 kB / 0.597 GB, free: 100 kB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 2.214e-06/0.5086, allocations: 0 / 0.597 GB, free: 100 kB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.002826/0.5114, allocations: 0.7876 MB / 0.5977 GB, free: 15.3 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.241e-05/0.5115, allocations: 102.8 kB / 0.5978 GB, free: 15.18 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003744/0.5119, allocations: 312.5 kB / 0.5981 GB, free: 14.87 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.639e-05/0.5119, allocations: 37.62 kB / 0.5982 GB, free: 14.82 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001566/0.5121, allocations: 204.2 kB / 0.5984 GB, free: 14.62 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.073e-05/0.5122, allocations: 86.75 kB / 0.5984 GB, free: 14.53 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00012/0.5123, allocations: 69.69 kB / 0.5985 GB, free: 14.46 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.5124, allocations: 338.8 kB / 0.5988 GB, free: 14.12 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003846/0.5128, allocations: 131.9 kB / 0.5989 GB, free: 13.99 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004718/0.5133, allocations: 243 kB / 0.5992 GB, free: 13.71 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008332/0.5142, allocations: 358.8 kB / 0.5995 GB, free: 13.33 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.5142, allocations: 0 / 0.5995 GB, free: 13.33 MB / 426.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001017/0.5152, allocations: 425.1 kB / 0.5999 GB, free: 12.91 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.5152, allocations: 8.031 kB / 0.5999 GB, free: 12.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.764e-06/0.5152, allocations: 7.984 kB / 0.5999 GB, free: 12.89 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.004e-05/0.5153, allocations: 7.938 kB / 0.6 GB, free: 12.88 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003221/0.5156, allocations: 83.88 kB / 0.6 GB, free: 12.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.819e-06/0.5156, allocations: 4 kB / 0.6 GB, free: 12.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003491/0.516, allocations: 59.56 kB / 0.6001 GB, free: 12.74 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.282e-05/0.516, allocations: 12 kB / 0.6001 GB, free: 12.73 MB / 426.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.0002044/0.5162, allocations: 161.7 kB / 0.6003 GB, free: 12.56 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.094e-05/0.5163, allocations: 39.56 kB / 0.6003 GB, free: 12.52 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002511/0.5188, allocations: 1.893 MB / 0.6021 GB, free: 10.61 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.083e-05/0.5189, allocations: 35.88 kB / 0.6022 GB, free: 10.58 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/0.5189, allocations: 0 / 0.6022 GB, free: 10.58 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.5189, allocations: 0 / 0.6022 GB, free: 10.58 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001078/0.52, allocations: 1.019 MB / 0.6032 GB, free: 9.512 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-06/0.52, allocations: 4 kB / 0.6032 GB, free: 9.508 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003043/0.5203, allocations: 71.88 kB / 0.6032 GB, free: 9.438 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.518e-06/0.5203, allocations: 0 / 0.6032 GB, free: 9.438 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.455e-05/0.5203, allocations: 11.98 kB / 0.6033 GB, free: 9.426 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.454e-06/0.5204, allocations: 7.938 kB / 0.6033 GB, free: 9.418 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.5204, allocations: 0 / 0.6033 GB, free: 9.418 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002569/0.5229, allocations: 2.248 MB / 0.6055 GB, free: 7.109 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002106/0.5232, allocations: 159.9 kB / 0.6056 GB, free: 6.934 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.39e-05/0.5233, allocations: 27.73 kB / 0.6056 GB, free: 6.906 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002884/0.5235, allocations: 27.97 kB / 0.6057 GB, free: 6.879 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.793e-05/0.5237, allocations: 31.95 kB / 0.6057 GB, free: 6.848 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.425e-05/0.5237, allocations: 12 kB / 0.6057 GB, free: 6.836 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003485/0.524, allocations: 327.1 kB / 0.606 GB, free: 6.512 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.524, allocations: 0 / 0.606 GB, free: 6.512 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003937/0.528, allocations: 1.015 MB / 0.607 GB, free: 5.496 MB / 426.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.006979/0.535, allocations: 1.169 MB / 0.6082 GB, free: 4.328 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001407/0.5364, allocations: 0.5986 MB / 0.6087 GB, free: 3.73 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.5364, allocations: 0 / 0.6087 GB, free: 3.73 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007379/0.5372, allocations: 0.5089 MB / 0.6092 GB, free: 3.223 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001405/0.5386, allocations: 209.3 kB / 0.6094 GB, free: 3.02 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003088/0.5417, allocations: 2.544 MB / 0.6119 GB, free: 440 kB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005711/0.5423, allocations: 0.9989 MB / 0.6129 GB, free: 15.41 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0004893/0.5428, allocations: 274.8 kB / 0.6132 GB, free: 15.14 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001141/0.5429, allocations: 39.44 kB / 0.6132 GB, free: 15.1 MB / 442.7 MB Notification: Performance of SimCode: time 7.71e-07/0.5429, allocations: 4 kB / 0.6132 GB, free: 15.1 MB / 442.7 MB Notification: Performance of Templates: time 0.05312/0.596, allocations: 39.11 MB / 0.6514 GB, free: 8.07 MB / 474.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches