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/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 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 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 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007859/0.007859, allocations: 100.3 kB / 15.87 MB, free: 6.309 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.001918/0.001918, allocations: 196.4 kB / 16.79 MB, free: 6.238 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.359/1.359, allocations: 205.1 MB / 222.6 MB, free: 4.734 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2976/0.2976, allocations: 43.49 MB / 313.5 MB, free: 8.266 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001441/0.001441, allocations: 67.91 kB / 382 MB, free: 8.492 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1048, allocations: 57.8 MB / 439.8 MB, free: 14.59 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.2021/0.307, allocations: 28.98 MB / 468.8 MB, free: 33.98 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0128/0.3198, allocations: 14.27 MB / 483.1 MB, free: 25.15 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003045/0.3201, allocations: 14.34 kB / 483.1 MB, free: 25.14 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006622/0.3208, allocations: 214.2 kB / 483.3 MB, free: 25.02 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006989/0.3279, allocations: 2.921 MB / 486.2 MB, free: 23.76 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004544/0.3324, allocations: 1.967 MB / 488.2 MB, free: 22.72 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008431/0.3333, allocations: 1.135 MB / 489.3 MB, free: 22.29 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002677/0.3335, allocations: 214.2 kB / 489.5 MB, free: 22.21 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005224/0.3341, allocations: 398.3 kB / 489.9 MB, free: 22.04 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002199/0.3343, allocations: 270.4 kB / 490.2 MB, free: 21.93 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.925e-05/0.3344, allocations: 18.22 kB / 490.2 MB, free: 21.93 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01079/0.3452, allocations: 7.113 MB / 497.3 MB, free: 20.11 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001576/0.3454, allocations: 87.38 kB / 497.4 MB, free: 20.06 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002833/0.3456, allocations: 209.5 kB / 497.6 MB, free: 19.95 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01256/0.3582, allocations: 4.404 MB / 0.4902 GB, free: 18.71 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.3583, allocations: 0 / 0.4902 GB, free: 18.71 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.3583, allocations: 0.9688 kB / 0.4902 GB, free: 18.71 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.227e-06/0.3583, allocations: 0 / 0.4902 GB, free: 18.71 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.005329/0.3636, allocations: 1.225 MB / 0.4914 GB, free: 17.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.107e-05/0.3637, allocations: 10.64 kB / 0.4915 GB, free: 17.91 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001812/0.3655, allocations: 213.5 kB / 0.4917 GB, free: 17.88 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005359/0.366, allocations: 359.9 kB / 0.492 GB, free: 17.59 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.533e-05/0.3661, allocations: 30.62 kB / 0.492 GB, free: 17.57 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.575e-05/0.3662, allocations: 31.16 kB / 0.4921 GB, free: 17.56 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001649/0.3678, allocations: 0.5826 MB / 0.4926 GB, free: 17.3 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.3678, allocations: 0 / 0.4926 GB, free: 17.3 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.42e-05/0.3679, allocations: 16.03 kB / 0.4926 GB, free: 17.29 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.249e-05/0.3679, allocations: 7.219 kB / 0.4926 GB, free: 17.29 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001677/0.3696, allocations: 0.527 MB / 0.4932 GB, free: 17.16 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.002813/0.3724, allocations: 2.621 MB / 0.4957 GB, free: 14.93 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001493/0.3739, allocations: 473.3 kB / 0.4962 GB, free: 14.79 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004002/0.3743, allocations: 191.2 kB / 0.4964 GB, free: 14.73 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04462/0.419, allocations: 24.2 MB / 0.52 GB, free: 11.57 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.103e-05/0.4191, allocations: 37.22 kB / 0.52 GB, free: 11.52 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 2.455e-06/0.4191, allocations: 0 / 0.52 GB, free: 11.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.002715/0.4218, allocations: 0.7855 MB / 0.5208 GB, free: 11.13 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.584e-05/0.4219, allocations: 109.2 kB / 0.5209 GB, free: 11 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003232/0.4222, allocations: 321.6 kB / 0.5212 GB, free: 10.78 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.677e-05/0.4222, allocations: 26.89 kB / 0.5212 GB, free: 10.75 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001314/0.4224, allocations: 204 kB / 0.5214 GB, free: 10.57 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.482e-05/0.4225, allocations: 85.09 kB / 0.5215 GB, free: 10.49 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001083/0.4226, allocations: 68.72 kB / 0.5216 GB, free: 10.45 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001221/0.4227, allocations: 351.2 kB / 0.5219 GB, free: 10.11 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003572/0.4231, allocations: 135.5 kB / 0.522 GB, free: 10.04 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000424/0.4235, allocations: 227.9 kB / 0.5223 GB, free: 9.863 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007788/0.4243, allocations: 367.6 kB / 0.5226 GB, free: 9.512 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/0.4243, allocations: 0 / 0.5226 GB, free: 9.512 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009931/0.4253, allocations: 417.7 kB / 0.523 GB, free: 9.098 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.4253, allocations: 4 kB / 0.523 GB, free: 9.094 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.248e-06/0.4254, allocations: 4 kB / 0.523 GB, free: 9.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.334e-05/0.4254, allocations: 9.234 kB / 0.523 GB, free: 9.082 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003391/0.4257, allocations: 84.14 kB / 0.5231 GB, free: 9 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.208e-05/0.4258, allocations: 9.734 kB / 0.5231 GB, free: 8.992 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003699/0.4261, allocations: 55.64 kB / 0.5232 GB, free: 8.938 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.43e-05/0.4262, allocations: 16 kB / 0.5232 GB, free: 8.922 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.0002103/0.4264, allocations: 165.7 kB / 0.5233 GB, free: 8.75 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.348e-05/0.4265, allocations: 35.53 kB / 0.5234 GB, free: 8.715 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00237/0.4289, allocations: 1.894 MB / 0.5252 GB, free: 6.82 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.091e-05/0.4289, allocations: 35.89 kB / 0.5253 GB, free: 6.785 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.745e-06/0.4289, allocations: 0.6875 kB / 0.5253 GB, free: 6.785 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.084e-06/0.4289, allocations: 7.922 kB / 0.5253 GB, free: 6.777 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001145/0.4301, allocations: 1.014 MB / 0.5263 GB, free: 5.707 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.4301, allocations: 0 / 0.5263 GB, free: 5.707 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003057/0.4304, allocations: 67.94 kB / 0.5263 GB, free: 5.641 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.915e-06/0.4304, allocations: 11.12 kB / 0.5263 GB, free: 5.633 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.078e-05/0.4304, allocations: 4 kB / 0.5263 GB, free: 5.629 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.332e-06/0.4305, allocations: 7.938 kB / 0.5263 GB, free: 5.621 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.4305, allocations: 3.984 kB / 0.5263 GB, free: 5.617 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001462/0.4319, allocations: 1.082 MB / 0.5274 GB, free: 4.516 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001645/0.4321, allocations: 163.9 kB / 0.5276 GB, free: 4.336 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.096e-05/0.4322, allocations: 27.73 kB / 0.5276 GB, free: 4.309 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000295/0.4325, allocations: 35.84 kB / 0.5276 GB, free: 4.273 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.175e-05/0.4326, allocations: 35.95 kB / 0.5276 GB, free: 4.238 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.649e-05/0.4326, allocations: 12 kB / 0.5277 GB, free: 4.227 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003402/0.433, allocations: 327.1 kB / 0.528 GB, free: 3.91 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.433, allocations: 0 / 0.528 GB, free: 3.91 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.005055/0.438, allocations: 0.9877 MB / 0.5289 GB, free: 2.922 MB / 398.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.008249/0.4463, allocations: 1.169 MB / 0.5301 GB, free: 1.754 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001334/0.4477, allocations: 0.5961 MB / 0.5307 GB, free: 1.16 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.4477, allocations: 0 / 0.5307 GB, free: 1.16 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006391/0.4483, allocations: 0.5126 MB / 0.5312 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001172/0.4495, allocations: 206 kB / 0.5314 GB, free: 456 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002126/0.4517, allocations: 1.855 MB / 0.5332 GB, free: 14.56 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004575/0.4521, allocations: 0.9638 MB / 0.5341 GB, free: 13.57 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004458/0.4526, allocations: 277.3 kB / 0.5344 GB, free: 13.3 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.641e-05/0.4527, allocations: 39.44 kB / 0.5344 GB, free: 13.27 MB / 414.1 MB Notification: Performance of SimCode: time 4.21e-07/0.4527, allocations: 0 / 0.5344 GB, free: 13.27 MB / 414.1 MB Notification: Performance of Templates: time 0.0491/0.5018, allocations: 38.8 MB / 0.5723 GB, free: 6.469 MB / 446.1 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/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