Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.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.TestValveLinear,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.TestValveLinear") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,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.TestValveLinear") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001081/0.001081, allocations: 105.5 kB / 17.77 MB, free: 5.316 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.001243/0.001244, allocations: 188 kB / 18.71 MB, free: 4.387 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.367/1.367, allocations: 222.9 MB / 242.4 MB, free: 15.18 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.2148/0.2148, allocations: 44.18 MB / 336.7 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001325/0.001325, allocations: 63.91 kB / 470.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3854/0.3868, allocations: 60.82 MB / 0.5189 GB, free: 3.625 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.03731/0.4241, allocations: 28.14 MB / 0.5464 GB, free: 13.93 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.02051/0.4447, allocations: 13.3 MB / 0.5594 GB, free: 2.535 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009551/0.4457, allocations: 11.94 kB / 0.5594 GB, free: 2.523 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001447/0.4471, allocations: 250.4 kB / 0.5596 GB, free: 2.277 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01375/0.4611, allocations: 3.663 MB / 0.5632 GB, free: 14.61 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007662/0.4687, allocations: 2.372 MB / 0.5655 GB, free: 12.25 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001387/0.4701, allocations: 0.9041 MB / 0.5664 GB, free: 11.34 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004979/0.4707, allocations: 240.8 kB / 0.5666 GB, free: 11.1 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009112/0.4716, allocations: 462.1 kB / 0.5671 GB, free: 10.65 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003253/0.4719, allocations: 262.9 kB / 0.5673 GB, free: 10.39 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 5.082e-05/0.472, allocations: 36 kB / 0.5673 GB, free: 10.36 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01512/0.4871, allocations: 7.231 MB / 0.5744 GB, free: 3.117 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001783/0.4873, allocations: 99.66 kB / 0.5745 GB, free: 3.02 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003284/0.4877, allocations: 222.9 kB / 0.5747 GB, free: 2.801 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0119/0.4996, allocations: 4.409 MB / 0.579 GB, free: 14.38 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.4996, allocations: 0 / 0.579 GB, free: 14.38 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.514e-06/0.4996, allocations: 0 / 0.579 GB, free: 14.38 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.749e-05/0.4996, allocations: 0 / 0.579 GB, free: 14.38 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.003999/0.5037, allocations: 1.243 MB / 0.5802 GB, free: 13.09 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.023e-05/0.5037, allocations: 19.95 kB / 0.5803 GB, free: 13.07 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001867/0.5056, allocations: 208.3 kB / 0.5805 GB, free: 12.87 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008081/0.5064, allocations: 383.2 kB / 0.5808 GB, free: 12.45 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.916e-05/0.5065, allocations: 25.03 kB / 0.5808 GB, free: 12.43 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.852e-05/0.5066, allocations: 28.38 kB / 0.5809 GB, free: 12.4 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001682/0.5082, allocations: 0.59 MB / 0.5814 GB, free: 11.77 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.933e-05/0.5083, allocations: 11.92 kB / 0.5815 GB, free: 11.76 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.214e-05/0.5083, allocations: 12 kB / 0.5815 GB, free: 11.75 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.064e-05/0.5083, allocations: 8 kB / 0.5815 GB, free: 11.74 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001634/0.51, allocations: 0.5445 MB / 0.582 GB, free: 11.2 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.003272/0.5133, allocations: 2.625 MB / 0.5846 GB, free: 8.332 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001634/0.5149, allocations: 466.2 kB / 0.585 GB, free: 7.867 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004822/0.5154, allocations: 192.7 kB / 0.5852 GB, free: 7.676 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04877/0.5642, allocations: 24.32 MB / 0.6089 GB, free: 12.46 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.076e-05/0.5643, allocations: 42.5 kB / 0.609 GB, free: 12.41 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 4.95e-06/0.5643, allocations: 3.984 kB / 0.609 GB, free: 12.41 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.003107/0.5674, allocations: 0.8168 MB / 0.6098 GB, free: 11.59 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.949e-05/0.5675, allocations: 106.8 kB / 0.6099 GB, free: 11.46 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004709/0.568, allocations: 320.4 kB / 0.6102 GB, free: 11.13 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.954e-05/0.5681, allocations: 29.7 kB / 0.6102 GB, free: 11.1 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001934/0.5683, allocations: 204.2 kB / 0.6104 GB, free: 10.89 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.79e-05/0.5684, allocations: 86.83 kB / 0.6105 GB, free: 10.8 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001453/0.5685, allocations: 77.59 kB / 0.6106 GB, free: 10.72 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001654/0.5687, allocations: 338.8 kB / 0.6109 GB, free: 10.38 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004103/0.5691, allocations: 147.9 kB / 0.611 GB, free: 10.24 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005101/0.5696, allocations: 243 kB / 0.6113 GB, free: 9.961 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008617/0.5705, allocations: 369.1 kB / 0.6116 GB, free: 9.566 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-06/0.5705, allocations: 0 / 0.6116 GB, free: 9.566 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001123/0.5717, allocations: 457.8 kB / 0.6121 GB, free: 9.113 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.329e-05/0.5717, allocations: 4 kB / 0.6121 GB, free: 9.109 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.124e-05/0.5717, allocations: 4 kB / 0.6121 GB, free: 9.105 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.697e-05/0.5717, allocations: 11.88 kB / 0.6121 GB, free: 9.094 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000369/0.5721, allocations: 83.88 kB / 0.6122 GB, free: 9.012 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.193e-05/0.5721, allocations: 4 kB / 0.6122 GB, free: 9.008 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003453/0.5725, allocations: 51.7 kB / 0.6122 GB, free: 8.957 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.669e-05/0.5725, allocations: 16.06 kB / 0.6122 GB, free: 8.941 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: 4 (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.0002367/0.5728, allocations: 165.6 kB / 0.6124 GB, free: 8.77 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001115/0.5729, allocations: 35.62 kB / 0.6124 GB, free: 8.734 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002608/0.5755, allocations: 1.905 MB / 0.6143 GB, free: 6.816 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.065e-05/0.5756, allocations: 31.89 kB / 0.6143 GB, free: 6.785 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.678e-06/0.5756, allocations: 0 / 0.6143 GB, free: 6.785 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.649e-06/0.5756, allocations: 7.984 kB / 0.6143 GB, free: 6.777 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001121/0.5767, allocations: 1.023 MB / 0.6153 GB, free: 5.703 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.444e-06/0.5767, allocations: 0 / 0.6153 GB, free: 5.703 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003265/0.5771, allocations: 79.86 kB / 0.6154 GB, free: 5.625 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.211e-06/0.5771, allocations: 0 / 0.6154 GB, free: 5.625 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.437e-05/0.5771, allocations: 8 kB / 0.6154 GB, free: 5.617 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.37e-06/0.5771, allocations: 3.938 kB / 0.6154 GB, free: 5.613 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.5771, allocations: 0 / 0.6154 GB, free: 5.613 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001666/0.5788, allocations: 1.104 MB / 0.6165 GB, free: 4.492 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001663/0.579, allocations: 160 kB / 0.6166 GB, free: 4.316 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.757e-05/0.5791, allocations: 27.69 kB / 0.6167 GB, free: 4.289 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000274/0.5794, allocations: 27.91 kB / 0.6167 GB, free: 4.262 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.859e-05/0.5795, allocations: 31.95 kB / 0.6167 GB, free: 4.23 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.708e-05/0.5795, allocations: 15.98 kB / 0.6167 GB, free: 4.215 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0003844/0.5799, allocations: 323.1 kB / 0.617 GB, free: 3.898 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5799, allocations: 4 kB / 0.617 GB, free: 3.895 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003312/0.5832, allocations: 0.9916 MB / 0.618 GB, free: 2.902 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: 18 ($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) * 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.005524/0.5888, allocations: 1.174 MB / 0.6192 GB, free: 1.727 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001325/0.5901, allocations: 0.6067 MB / 0.6198 GB, free: 1.117 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.01e-06/0.5901, allocations: 0 / 0.6198 GB, free: 1.117 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007348/0.5909, allocations: 0.5217 MB / 0.6203 GB, free: 0.5977 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001126/0.592, allocations: 217.4 kB / 0.6205 GB, free: 400 kB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00226/0.5943, allocations: 1.512 MB / 0.6219 GB, free: 14.85 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005391/0.5948, allocations: 0.9716 MB / 0.6229 GB, free: 13.86 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0004735/0.5953, allocations: 277.7 kB / 0.6232 GB, free: 13.59 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001158/0.5954, allocations: 43.42 kB / 0.6232 GB, free: 13.55 MB / 494.1 MB Notification: Performance of SimCode: time 2.3e-07/0.5954, allocations: 0 / 0.6232 GB, free: 13.55 MB / 494.1 MB Notification: Performance of Templates: time 0.05911/0.6546, allocations: 39.73 MB / 0.662 GB, free: 5.898 MB / 0.5137 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveLinear/TestValveLinear.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches