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.001085/0.001085, allocations: 117.2 kB / 17.78 MB, free: 5.262 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.001117/0.001117, allocations: 184.2 kB / 18.71 MB, free: 4.34 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.31/1.31, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2036/0.2036, allocations: 44.19 MB / 336.7 MB, free: 2.633 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001355/0.001355, allocations: 63.89 kB / 470.5 MB, free: 13.14 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3585/0.3598, allocations: 60.82 MB / 0.5189 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.0309/0.3908, allocations: 28.12 MB / 0.5464 GB, free: 13.9 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01582/0.4066, allocations: 13.29 MB / 0.5593 GB, free: 2.516 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004812/0.4072, allocations: 11.94 kB / 0.5594 GB, free: 2.504 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008865/0.4081, allocations: 250.4 kB / 0.5596 GB, free: 2.258 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01146/0.4196, allocations: 3.674 MB / 0.5632 GB, free: 14.58 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0069/0.4265, allocations: 2.364 MB / 0.5655 GB, free: 12.22 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001195/0.4277, allocations: 0.9002 MB / 0.5664 GB, free: 11.32 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000389/0.4281, allocations: 248.7 kB / 0.5666 GB, free: 11.07 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007999/0.429, allocations: 454.1 kB / 0.567 GB, free: 10.63 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002962/0.4293, allocations: 266.9 kB / 0.5673 GB, free: 10.37 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 4.984e-05/0.4293, allocations: 36 kB / 0.5673 GB, free: 10.33 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0139/0.4432, allocations: 7.223 MB / 0.5744 GB, free: 3.102 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001824/0.4434, allocations: 99.67 kB / 0.5745 GB, free: 3.004 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003024/0.4438, allocations: 231 kB / 0.5747 GB, free: 2.777 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01011/0.4539, allocations: 4.398 MB / 0.579 GB, free: 14.37 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.243e-06/0.4539, allocations: 0 / 0.579 GB, free: 14.37 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.4539, allocations: 3.938 kB / 0.579 GB, free: 14.37 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.097e-05/0.454, allocations: 3.984 kB / 0.579 GB, free: 14.36 MB / 446.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.003049/0.457, allocations: 1.232 MB / 0.5802 GB, free: 13.08 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.4571, allocations: 12.03 kB / 0.5802 GB, free: 13.07 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001773/0.4588, allocations: 208.3 kB / 0.5804 GB, free: 12.87 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005135/0.4594, allocations: 383.2 kB / 0.5808 GB, free: 12.45 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.681e-05/0.4594, allocations: 25.03 kB / 0.5808 GB, free: 12.43 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.424e-05/0.4595, allocations: 28.38 kB / 0.5808 GB, free: 12.4 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001638/0.4611, allocations: 0.5783 MB / 0.5814 GB, free: 11.78 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.345e-05/0.4611, allocations: 0 / 0.5814 GB, free: 11.78 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.698e-05/0.4612, allocations: 12 kB / 0.5814 GB, free: 11.77 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.116e-05/0.4612, allocations: 12 kB / 0.5814 GB, free: 11.76 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001671/0.4629, allocations: 0.5288 MB / 0.5819 GB, free: 11.23 MB / 446.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.003062/0.466, allocations: 2.629 MB / 0.5845 GB, free: 8.363 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001623/0.4676, allocations: 454.2 kB / 0.5849 GB, free: 7.91 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004669/0.4681, allocations: 192.7 kB / 0.5851 GB, free: 7.719 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05137/0.5195, allocations: 24.31 MB / 0.6089 GB, free: 12.52 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.768e-05/0.5196, allocations: 42.56 kB / 0.6089 GB, free: 12.47 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 2.825e-06/0.5196, allocations: 0 / 0.6089 GB, free: 12.47 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.003147/0.5227, allocations: 0.7971 MB / 0.6097 GB, free: 11.66 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.038e-05/0.5228, allocations: 106.8 kB / 0.6098 GB, free: 11.54 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004044/0.5232, allocations: 312.5 kB / 0.6101 GB, free: 11.22 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.199e-05/0.5233, allocations: 29.7 kB / 0.6101 GB, free: 11.18 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001485/0.5234, allocations: 200.2 kB / 0.6103 GB, free: 10.98 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.01e-05/0.5235, allocations: 90.83 kB / 0.6104 GB, free: 10.89 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001143/0.5237, allocations: 69.69 kB / 0.6104 GB, free: 10.82 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.5238, allocations: 342.8 kB / 0.6108 GB, free: 10.47 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004153/0.5242, allocations: 135.9 kB / 0.6109 GB, free: 10.34 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005269/0.5248, allocations: 239 kB / 0.6111 GB, free: 10.07 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008807/0.5256, allocations: 353.1 kB / 0.6115 GB, free: 9.688 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.5257, allocations: 0 / 0.6115 GB, free: 9.688 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001122/0.5268, allocations: 425.6 kB / 0.6119 GB, free: 9.266 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.502e-05/0.5268, allocations: 8 kB / 0.6119 GB, free: 9.258 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.096e-05/0.5268, allocations: 4.312 kB / 0.6119 GB, free: 9.254 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.865e-05/0.5269, allocations: 7.938 kB / 0.6119 GB, free: 9.246 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003665/0.5273, allocations: 87.88 kB / 0.612 GB, free: 9.16 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.443e-05/0.5273, allocations: 7.938 kB / 0.612 GB, free: 9.152 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003842/0.5277, allocations: 47.56 kB / 0.612 GB, free: 9.105 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.092e-05/0.5277, allocations: 16 kB / 0.612 GB, free: 9.09 MB / 478.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.0002487/0.528, allocations: 165.7 kB / 0.6122 GB, free: 8.918 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001174/0.5281, allocations: 31.62 kB / 0.6122 GB, free: 8.887 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00256/0.5307, allocations: 1.889 MB / 0.6141 GB, free: 6.984 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.228e-05/0.5307, allocations: 39.86 kB / 0.6141 GB, free: 6.945 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/0.5307, allocations: 0 / 0.6141 GB, free: 6.945 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.5307, allocations: 0 / 0.6141 GB, free: 6.945 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001093/0.5318, allocations: 1.015 MB / 0.6151 GB, free: 5.879 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.575e-06/0.5319, allocations: 4 kB / 0.6151 GB, free: 5.875 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003256/0.5322, allocations: 75.88 kB / 0.6152 GB, free: 5.801 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.462e-06/0.5322, allocations: 0 / 0.6152 GB, free: 5.801 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.503e-05/0.5322, allocations: 8 kB / 0.6152 GB, free: 5.793 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.113e-06/0.5323, allocations: 7.922 kB / 0.6152 GB, free: 5.785 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.5323, allocations: 0 / 0.6152 GB, free: 5.785 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001626/0.5339, allocations: 1.073 MB / 0.6162 GB, free: 4.695 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001647/0.5341, allocations: 163.8 kB / 0.6164 GB, free: 4.516 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.091e-05/0.5342, allocations: 23.78 kB / 0.6164 GB, free: 4.492 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002896/0.5345, allocations: 31.91 kB / 0.6165 GB, free: 4.461 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001118/0.5346, allocations: 27.95 kB / 0.6165 GB, free: 4.434 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.45e-05/0.5346, allocations: 16 kB / 0.6165 GB, free: 4.418 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0003868/0.535, allocations: 331.1 kB / 0.6168 GB, free: 4.094 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.535, allocations: 0 / 0.6168 GB, free: 4.094 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003195/0.5382, allocations: 0.9916 MB / 0.6178 GB, free: 3.102 MB / 478.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.005594/0.5438, allocations: 1.158 MB / 0.6189 GB, free: 1.941 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001383/0.5452, allocations: 0.6026 MB / 0.6195 GB, free: 1.336 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.5453, allocations: 0 / 0.6195 GB, free: 1.336 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007543/0.546, allocations: 0.5087 MB / 0.62 GB, free: 0.8281 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001222/0.5473, allocations: 207.1 kB / 0.6202 GB, free: 0.6289 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002335/0.5496, allocations: 1.508 MB / 0.6217 GB, free: 15.09 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006029/0.5502, allocations: 0.9677 MB / 0.6226 GB, free: 14.11 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0005047/0.5507, allocations: 278.7 kB / 0.6229 GB, free: 13.83 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000124/0.5509, allocations: 43.42 kB / 0.6229 GB, free: 13.79 MB / 494.1 MB Notification: Performance of SimCode: time 4.31e-07/0.5509, allocations: 0 / 0.6229 GB, free: 13.79 MB / 494.1 MB Notification: Performance of Templates: time 0.06056/0.6114, allocations: 39.42 MB / 0.6614 GB, free: 6.457 MB / 0.5137 GB 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins/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