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.001385/0.001385, allocations: 107.1 kB / 16.41 MB, free: 6.508 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.00162/0.001621, allocations: 189.5 kB / 17.34 MB, free: 5.742 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.418/1.418, allocations: 205.1 MB / 223.2 MB, free: 12.21 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.2036/0.2036, allocations: 43.52 MB / 314.1 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.001505/0.001505, allocations: 67.89 kB / 441.8 MB, free: 5.656 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1155, allocations: 57.8 MB / 499.6 MB, free: 11.79 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.0298/0.1453, allocations: 28.12 MB / 0.5154 GB, free: 15.56 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01481/0.1601, allocations: 13.29 MB / 0.5283 GB, free: 2.223 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004107/0.1606, allocations: 7.938 kB / 0.5283 GB, free: 2.215 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007919/0.1615, allocations: 246.4 kB / 0.5286 GB, free: 1.973 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2455/0.4069, allocations: 3.653 MB / 0.5321 GB, free: 4.797 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006126/0.4131, allocations: 2.369 MB / 0.5345 GB, free: 4.777 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001164/0.4143, allocations: 0.8882 MB / 0.5353 GB, free: 4.777 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003928/0.4147, allocations: 251.4 kB / 0.5356 GB, free: 4.77 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007411/0.4154, allocations: 445.6 kB / 0.536 GB, free: 4.766 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003066/0.4157, allocations: 266.3 kB / 0.5362 GB, free: 4.766 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.504e-05/0.4158, allocations: 33.94 kB / 0.5363 GB, free: 4.766 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01526/0.4311, allocations: 7.23 MB / 0.5433 GB, free: 4.742 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001714/0.4313, allocations: 104.6 kB / 0.5434 GB, free: 4.742 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003693/0.4316, allocations: 217.3 kB / 0.5436 GB, free: 4.742 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01056/0.4422, allocations: 4.402 MB / 0.5479 GB, free: 4.598 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.4423, allocations: 0 / 0.5479 GB, free: 4.598 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.4423, allocations: 1.031 kB / 0.5479 GB, free: 4.598 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.719e-06/0.4423, allocations: 3.094 kB / 0.5479 GB, free: 4.598 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.004539/0.4468, allocations: 1.225 MB / 0.5491 GB, free: 3.875 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.327e-05/0.4469, allocations: 17.53 kB / 0.5492 GB, free: 3.871 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001723/0.4486, allocations: 208.6 kB / 0.5494 GB, free: 3.852 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000633/0.4493, allocations: 386 kB / 0.5497 GB, free: 3.605 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.606e-05/0.4493, allocations: 26.72 kB / 0.5498 GB, free: 3.605 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.947e-05/0.4494, allocations: 29.41 kB / 0.5498 GB, free: 3.605 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001613/0.451, allocations: 0.58 MB / 0.5503 GB, free: 3.477 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.451, allocations: 5.156 kB / 0.5503 GB, free: 3.473 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.176e-05/0.451, allocations: 19.31 kB / 0.5504 GB, free: 3.473 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.062e-05/0.4511, allocations: 8.125 kB / 0.5504 GB, free: 3.473 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001498/0.4526, allocations: 0.5296 MB / 0.5509 GB, free: 3.469 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.002652/0.4552, allocations: 2.615 MB / 0.5534 GB, free: 1.5 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001523/0.4568, allocations: 458.2 kB / 0.5539 GB, free: 1.371 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004385/0.4572, allocations: 195.6 kB / 0.5541 GB, free: 1.328 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04754/0.5048, allocations: 24.3 MB / 0.5778 GB, free: 14.32 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.768e-05/0.5048, allocations: 36.44 kB / 0.5778 GB, free: 14.28 MB / 446.1 MB Notification: Performance of pre-optimization done (n=25): time 2.946e-06/0.5048, allocations: 1.641 kB / 0.5778 GB, free: 14.28 MB / 446.1 MB Notification: Performance of matching and sorting (n=25): time 0.002782/0.5076, allocations: 0.7836 MB / 0.5786 GB, free: 13.7 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.344e-05/0.5077, allocations: 110.8 kB / 0.5787 GB, free: 13.56 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000324/0.508, allocations: 315.7 kB / 0.579 GB, free: 13.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.101e-05/0.5081, allocations: 31.77 kB / 0.579 GB, free: 13.27 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001249/0.5082, allocations: 207.1 kB / 0.5792 GB, free: 13.11 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.354e-05/0.5083, allocations: 85.89 kB / 0.5793 GB, free: 13.04 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.935e-05/0.5084, allocations: 67.5 kB / 0.5794 GB, free: 12.99 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.5085, allocations: 342.4 kB / 0.5797 GB, free: 12.66 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000369/0.5089, allocations: 138.1 kB / 0.5798 GB, free: 12.56 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004371/0.5093, allocations: 232.6 kB / 0.5801 GB, free: 12.34 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007794/0.5101, allocations: 363.2 kB / 0.5804 GB, free: 12.05 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.5101, allocations: 0 / 0.5804 GB, free: 12.05 MB / 446.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000954/0.5111, allocations: 429.8 kB / 0.5808 GB, free: 11.73 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.5111, allocations: 4 kB / 0.5808 GB, free: 11.73 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.5111, allocations: 4 kB / 0.5808 GB, free: 11.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.746e-05/0.5112, allocations: 7.188 kB / 0.5808 GB, free: 11.72 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003275/0.5115, allocations: 81.25 kB / 0.5809 GB, free: 11.65 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.897e-06/0.5115, allocations: 5.875 kB / 0.5809 GB, free: 11.64 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002953/0.5118, allocations: 46.84 kB / 0.581 GB, free: 11.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.862e-05/0.5118, allocations: 15.75 kB / 0.581 GB, free: 11.59 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.0001719/0.512, allocations: 169.5 kB / 0.5811 GB, free: 11.45 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.808e-05/0.5121, allocations: 35.53 kB / 0.5812 GB, free: 11.41 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002209/0.5143, allocations: 1.891 MB / 0.583 GB, free: 9.883 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.068e-05/0.5144, allocations: 35.88 kB / 0.5831 GB, free: 9.848 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.5144, allocations: 0 / 0.5831 GB, free: 9.848 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.5144, allocations: 3.938 kB / 0.5831 GB, free: 9.844 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009676/0.5154, allocations: 1.009 MB / 0.584 GB, free: 8.797 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.5154, allocations: 5.125 kB / 0.584 GB, free: 8.793 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002968/0.5157, allocations: 71.22 kB / 0.5841 GB, free: 8.727 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.5157, allocations: 4 kB / 0.5841 GB, free: 8.723 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.784e-05/0.5157, allocations: 4 kB / 0.5841 GB, free: 8.719 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-06/0.5157, allocations: 7.938 kB / 0.5841 GB, free: 8.711 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.5157, allocations: 0.8438 kB / 0.5841 GB, free: 8.711 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001351/0.5171, allocations: 1.082 MB / 0.5852 GB, free: 7.613 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001195/0.5172, allocations: 163.9 kB / 0.5853 GB, free: 7.434 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.348e-05/0.5173, allocations: 19.75 kB / 0.5854 GB, free: 7.414 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002605/0.5176, allocations: 35.61 kB / 0.5854 GB, free: 7.383 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.11e-05/0.5176, allocations: 31.95 kB / 0.5854 GB, free: 7.352 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.499e-05/0.5177, allocations: 15.98 kB / 0.5854 GB, free: 7.336 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003325/0.518, allocations: 323.1 kB / 0.5858 GB, free: 7.023 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.518, allocations: 4 kB / 0.5858 GB, free: 7.02 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00413/0.5222, allocations: 0.9914 MB / 0.5867 GB, free: 6.031 MB / 446.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.005025/0.5272, allocations: 1.163 MB / 0.5879 GB, free: 4.965 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001225/0.5284, allocations: 0.5965 MB / 0.5884 GB, free: 4.379 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.5285, allocations: 0 / 0.5884 GB, free: 4.379 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006408/0.5291, allocations: 0.5078 MB / 0.5889 GB, free: 3.879 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001153/0.5303, allocations: 221.1 kB / 0.5891 GB, free: 3.672 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001965/0.5322, allocations: 1.503 MB / 0.5906 GB, free: 2.145 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004479/0.5327, allocations: 0.9638 MB / 0.5916 GB, free: 1.156 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004094/0.5331, allocations: 274 kB / 0.5918 GB, free: 0.8945 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.599e-05/0.5332, allocations: 39.44 kB / 0.5919 GB, free: 0.8555 MB / 446.1 MB Notification: Performance of SimCode: time 4.21e-07/0.5332, allocations: 0 / 0.5919 GB, free: 0.8555 MB / 446.1 MB Notification: Performance of Templates: time 0.04847/0.5817, allocations: 39.39 MB / 0.6303 GB, free: 9.516 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins/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