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.0012/0.0012, allocations: 117.2 kB / 17.78 MB, free: 5.258 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.001207/0.001207, allocations: 184.2 kB / 18.72 MB, free: 4.332 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.299/1.299, allocations: 222.9 MB / 242.4 MB, free: 15.06 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.206/0.206, allocations: 44.19 MB / 336.7 MB, free: 2.645 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 63.91 kB / 470.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3651/0.3664, allocations: 60.82 MB / 0.5189 GB, free: 3.602 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.02926/0.3957, allocations: 28.13 MB / 0.5464 GB, free: 13.91 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01601/0.4118, allocations: 13.29 MB / 0.5593 GB, free: 2.527 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007711/0.4126, allocations: 11.94 kB / 0.5594 GB, free: 2.516 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00118/0.4139, allocations: 246.4 kB / 0.5596 GB, free: 2.273 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01178/0.4257, allocations: 3.67 MB / 0.5632 GB, free: 14.61 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007661/0.4334, allocations: 2.364 MB / 0.5655 GB, free: 12.24 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001674/0.4351, allocations: 0.8924 MB / 0.5664 GB, free: 11.35 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006047/0.4357, allocations: 256.6 kB / 0.5666 GB, free: 11.09 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001199/0.4369, allocations: 438.2 kB / 0.567 GB, free: 10.66 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005597/0.4375, allocations: 266.9 kB / 0.5673 GB, free: 10.4 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001395/0.4377, allocations: 32 kB / 0.5673 GB, free: 10.37 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01603/0.4537, allocations: 7.227 MB / 0.5744 GB, free: 3.137 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002117/0.4539, allocations: 95.66 kB / 0.5745 GB, free: 3.043 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000358/0.4543, allocations: 219.1 kB / 0.5747 GB, free: 2.828 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01183/0.4662, allocations: 4.423 MB / 0.579 GB, free: 14.39 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.885e-06/0.4662, allocations: 4 kB / 0.579 GB, free: 14.39 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.4662, allocations: 0 / 0.579 GB, free: 14.39 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.818e-05/0.4662, allocations: 0 / 0.579 GB, free: 14.39 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.003502/0.4697, allocations: 1.259 MB / 0.5802 GB, free: 13.08 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.4698, allocations: 12.03 kB / 0.5802 GB, free: 13.07 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001804/0.4716, allocations: 212.5 kB / 0.5804 GB, free: 12.86 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006537/0.4723, allocations: 379.5 kB / 0.5808 GB, free: 12.45 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.877e-05/0.4723, allocations: 29.03 kB / 0.5808 GB, free: 12.42 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.333e-05/0.4724, allocations: 28.38 kB / 0.5808 GB, free: 12.39 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001592/0.474, allocations: 0.5822 MB / 0.5814 GB, free: 11.77 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.328e-05/0.474, allocations: 3.938 kB / 0.5814 GB, free: 11.77 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.444e-05/0.4741, allocations: 12 kB / 0.5814 GB, free: 11.75 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/0.4741, allocations: 11.94 kB / 0.5814 GB, free: 11.74 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001592/0.4757, allocations: 0.5328 MB / 0.582 GB, free: 11.21 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.4788, allocations: 2.625 MB / 0.5845 GB, free: 8.348 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001549/0.4803, allocations: 454.2 kB / 0.585 GB, free: 7.895 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004422/0.4808, allocations: 192.7 kB / 0.5851 GB, free: 7.703 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04837/0.5292, allocations: 24.32 MB / 0.6089 GB, free: 12.49 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.615e-05/0.5293, allocations: 30.56 kB / 0.6089 GB, free: 12.45 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 2.304e-06/0.5293, allocations: 0 / 0.6089 GB, free: 12.45 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.002896/0.5322, allocations: 0.8091 MB / 0.6097 GB, free: 11.64 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.557e-05/0.5323, allocations: 106.8 kB / 0.6098 GB, free: 11.51 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003828/0.5327, allocations: 300.6 kB / 0.6101 GB, free: 11.2 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.833e-05/0.5327, allocations: 29.7 kB / 0.6101 GB, free: 11.17 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000165/0.5329, allocations: 212.5 kB / 0.6103 GB, free: 10.95 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.754e-05/0.533, allocations: 87.22 kB / 0.6104 GB, free: 10.87 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001246/0.5331, allocations: 69.69 kB / 0.6105 GB, free: 10.79 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.5333, allocations: 346.8 kB / 0.6108 GB, free: 10.45 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000389/0.5337, allocations: 139.9 kB / 0.6109 GB, free: 10.31 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004431/0.5341, allocations: 235 kB / 0.6112 GB, free: 10.04 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008057/0.5349, allocations: 357.1 kB / 0.6115 GB, free: 9.656 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.5349, allocations: 0 / 0.6115 GB, free: 9.656 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001015/0.536, allocations: 437.7 kB / 0.6119 GB, free: 9.223 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.977e-05/0.536, allocations: 8 kB / 0.6119 GB, free: 9.215 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.536, allocations: 0 / 0.6119 GB, free: 9.215 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.406e-05/0.536, allocations: 7.938 kB / 0.6119 GB, free: 9.207 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003163/0.5364, allocations: 88.14 kB / 0.612 GB, free: 9.121 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.417e-05/0.5364, allocations: 7.984 kB / 0.612 GB, free: 9.113 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002789/0.5367, allocations: 39.77 kB / 0.6121 GB, free: 9.074 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.477e-05/0.5367, allocations: 19.98 kB / 0.6121 GB, free: 9.055 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.0001954/0.5369, allocations: 153.8 kB / 0.6122 GB, free: 8.895 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.786e-05/0.537, allocations: 35.77 kB / 0.6123 GB, free: 8.859 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002423/0.5394, allocations: 1.901 MB / 0.6141 GB, free: 6.945 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.045e-05/0.5395, allocations: 31.89 kB / 0.6142 GB, free: 6.914 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/0.5395, allocations: 0 / 0.6142 GB, free: 6.914 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.5395, allocations: 3.984 kB / 0.6142 GB, free: 6.91 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001027/0.5405, allocations: 1.019 MB / 0.6152 GB, free: 5.84 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.488e-05/0.5406, allocations: 3.984 kB / 0.6152 GB, free: 5.836 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002941/0.5409, allocations: 67.88 kB / 0.6152 GB, free: 5.77 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.618e-06/0.5409, allocations: 4 kB / 0.6152 GB, free: 5.766 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.262e-05/0.5409, allocations: 8 kB / 0.6152 GB, free: 5.758 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.719e-06/0.5409, allocations: 3.938 kB / 0.6152 GB, free: 5.754 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.5409, allocations: 0 / 0.6152 GB, free: 5.754 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001463/0.5424, allocations: 1.081 MB / 0.6163 GB, free: 4.656 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001525/0.5426, allocations: 164.2 kB / 0.6165 GB, free: 4.477 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.874e-05/0.5427, allocations: 31.84 kB / 0.6165 GB, free: 4.445 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000278/0.5429, allocations: 27.91 kB / 0.6165 GB, free: 4.418 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.444e-05/0.5431, allocations: 31.95 kB / 0.6165 GB, free: 4.387 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.76e-05/0.5431, allocations: 12 kB / 0.6165 GB, free: 4.375 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0003594/0.5434, allocations: 327.1 kB / 0.6169 GB, free: 4.055 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.663e-06/0.5435, allocations: 4 kB / 0.6169 GB, free: 4.051 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002626/0.5461, allocations: 1.006 MB / 0.6178 GB, free: 3.043 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.004863/0.551, allocations: 1.165 MB / 0.619 GB, free: 1.875 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001297/0.5523, allocations: 0.5988 MB / 0.6196 GB, free: 1.273 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.5523, allocations: 0 / 0.6196 GB, free: 1.273 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007146/0.553, allocations: 0.5087 MB / 0.6201 GB, free: 0.7656 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001215/0.5543, allocations: 224.8 kB / 0.6203 GB, free: 0.5547 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002221/0.5565, allocations: 1.526 MB / 0.6218 GB, free: 15 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005255/0.5571, allocations: 0.9638 MB / 0.6227 GB, free: 14.02 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.000476/0.5575, allocations: 274.5 kB / 0.623 GB, free: 13.75 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000117/0.5577, allocations: 47.44 kB / 0.623 GB, free: 13.7 MB / 494.1 MB Notification: Performance of SimCode: time 6.91e-07/0.5577, allocations: 0 / 0.623 GB, free: 13.7 MB / 494.1 MB Notification: Performance of Templates: time 0.0519/0.6096, allocations: 39.41 MB / 0.6615 GB, free: 6.367 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