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.001721/0.001721, allocations: 111.6 kB / 17.09 MB, free: 5.934 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.001979/0.001979, allocations: 195.4 kB / 18.02 MB, free: 5.016 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.392/1.392, allocations: 205.1 MB / 223.9 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.22/0.22, allocations: 43.52 MB / 314.8 MB, free: 448 kB / 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.001559/0.001559, allocations: 60.42 kB / 442.5 MB, free: 5.645 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1033, allocations: 57.79 MB / 0.4885 GB, free: 11.79 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03117/0.1346, allocations: 28.13 MB / 0.516 GB, free: 15.55 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01533/0.1499, allocations: 13.29 MB / 0.529 GB, free: 2.215 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002951/0.1502, allocations: 11.94 kB / 0.529 GB, free: 2.203 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007547/0.151, allocations: 250.4 kB / 0.5292 GB, free: 1.957 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2117/0.3628, allocations: 3.654 MB / 0.5328 GB, free: 4.848 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00595/0.3688, allocations: 2.369 MB / 0.5351 GB, free: 4.832 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001176/0.37, allocations: 0.8882 MB / 0.536 GB, free: 4.832 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003825/0.3704, allocations: 248.4 kB / 0.5362 GB, free: 4.824 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007316/0.3711, allocations: 445.6 kB / 0.5367 GB, free: 4.82 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003629/0.3715, allocations: 265.7 kB / 0.5369 GB, free: 4.82 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.76e-05/0.3715, allocations: 32.94 kB / 0.5369 GB, free: 4.82 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01489/0.3864, allocations: 7.228 MB / 0.544 GB, free: 4.801 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001866/0.3867, allocations: 99.67 kB / 0.5441 GB, free: 4.801 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003982/0.3871, allocations: 214.8 kB / 0.5443 GB, free: 4.801 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01061/0.3977, allocations: 4.415 MB / 0.5486 GB, free: 4.617 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.062e-05/0.3978, allocations: 2.141 kB / 0.5486 GB, free: 4.617 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.3978, allocations: 0 / 0.5486 GB, free: 4.617 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.11e-05/0.3978, allocations: 0 / 0.5486 GB, free: 4.617 MB / 414.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.005006/0.4028, allocations: 1.269 MB / 0.5499 GB, free: 3.855 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.663e-05/0.4029, allocations: 13.33 kB / 0.5499 GB, free: 3.852 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001769/0.4046, allocations: 214.2 kB / 0.5501 GB, free: 3.828 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004895/0.4051, allocations: 372.8 kB / 0.5504 GB, free: 3.59 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.188e-05/0.4052, allocations: 31.62 kB / 0.5505 GB, free: 3.59 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.337e-05/0.4052, allocations: 28.62 kB / 0.5505 GB, free: 3.59 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001406/0.4067, allocations: 0.5842 MB / 0.5511 GB, free: 3.457 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.53e-05/0.4067, allocations: 3.062 kB / 0.5511 GB, free: 3.457 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.866e-05/0.4067, allocations: 14.28 kB / 0.5511 GB, free: 3.457 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.718e-06/0.4067, allocations: 6.688 kB / 0.5511 GB, free: 3.457 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001519/0.4083, allocations: 0.5299 MB / 0.5516 GB, free: 3.453 MB / 414.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.002354/0.4106, allocations: 2.627 MB / 0.5542 GB, free: 1.457 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001485/0.4121, allocations: 456.8 kB / 0.5546 GB, free: 1.324 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000413/0.4126, allocations: 190.8 kB / 0.5548 GB, free: 1.285 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04622/0.4588, allocations: 24.32 MB / 0.5785 GB, free: 14.3 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.496e-05/0.4588, allocations: 39.78 kB / 0.5786 GB, free: 14.27 MB / 446.1 MB Notification: Performance of pre-optimization done (n=25): time 3.326e-06/0.4589, allocations: 3.938 kB / 0.5786 GB, free: 14.27 MB / 446.1 MB Notification: Performance of matching and sorting (n=25): time 0.002839/0.4617, allocations: 0.7826 MB / 0.5793 GB, free: 13.66 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.633e-05/0.4618, allocations: 113.4 kB / 0.5794 GB, free: 13.53 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003686/0.4621, allocations: 308 kB / 0.5797 GB, free: 13.27 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.917e-05/0.4622, allocations: 34.52 kB / 0.5798 GB, free: 13.24 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001393/0.4624, allocations: 211.1 kB / 0.58 GB, free: 13.08 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.145e-05/0.4624, allocations: 90.53 kB / 0.5801 GB, free: 13 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001092/0.4626, allocations: 68.06 kB / 0.5801 GB, free: 12.95 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.4627, allocations: 345.9 kB / 0.5805 GB, free: 12.62 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004076/0.4631, allocations: 143.5 kB / 0.5806 GB, free: 12.52 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004418/0.4636, allocations: 235.1 kB / 0.5808 GB, free: 12.3 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007655/0.4644, allocations: 356.8 kB / 0.5812 GB, free: 12.02 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.4644, allocations: 4 kB / 0.5812 GB, free: 12.01 MB / 446.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009578/0.4653, allocations: 421.7 kB / 0.5816 GB, free: 11.7 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.4654, allocations: 4 kB / 0.5816 GB, free: 11.69 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.308e-06/0.4654, allocations: 6.031 kB / 0.5816 GB, free: 11.69 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.803e-05/0.4654, allocations: 7 kB / 0.5816 GB, free: 11.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003338/0.4657, allocations: 80.09 kB / 0.5817 GB, free: 11.61 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.236e-05/0.4658, allocations: 7.938 kB / 0.5817 GB, free: 11.61 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003018/0.4661, allocations: 50.17 kB / 0.5817 GB, free: 11.56 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.333e-05/0.4661, allocations: 17.25 kB / 0.5817 GB, free: 11.55 MB / 446.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.0001743/0.4663, allocations: 170.8 kB / 0.5819 GB, free: 11.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.086e-05/0.4664, allocations: 31.81 kB / 0.5819 GB, free: 11.37 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002332/0.4687, allocations: 1.902 MB / 0.5838 GB, free: 9.793 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.925e-06/0.4688, allocations: 3.984 kB / 0.5838 GB, free: 9.789 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.4688, allocations: 3.938 kB / 0.5838 GB, free: 9.785 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001422/0.4689, allocations: 160.3 kB / 0.5839 GB, free: 9.609 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.6e-05/0.469, allocations: 31.78 kB / 0.584 GB, free: 9.578 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003246/0.4693, allocations: 45.31 kB / 0.584 GB, free: 9.535 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.142e-05/0.4694, allocations: 27.95 kB / 0.584 GB, free: 9.508 MB / 446.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001571/0.471, allocations: 1.075 MB / 0.5851 GB, free: 8.434 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001495/0.4725, allocations: 1.152 MB / 0.5862 GB, free: 7.266 MB / 446.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000637/0.4732, allocations: 494.5 kB / 0.5867 GB, free: 6.781 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000353/0.4735, allocations: 331.1 kB / 0.587 GB, free: 6.461 MB / 446.1 MB Notification: Performance of Backend: time 8.11e-07/0.4735, allocations: 0 / 0.587 GB, free: 6.461 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00814/0.4817, allocations: 1.682 MB / 0.5886 GB, free: 4.922 MB / 446.1 MB Notification: Performance of SimCode: time 0.001977/0.4837, allocations: 1.625 MB / 0.5902 GB, free: 3.258 MB / 446.1 MB Notification: Performance of Templates: time 0.06348/0.5472, allocations: 43.83 MB / 0.633 GB, free: 7.473 MB / 494.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches