Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|SourceP1.ports.2..m_flow|SourceP1.ports.2..p|SourceP1.ports.2..h_outflow|SourceP2.ports.1..m_flow|SourceP2.ports.1..p|SourceP2.ports.1..h_outflow|SourceP2.ports.2..m_flow|SourceP2.ports.2..p|SourceP2.ports.2..h_outflow|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|V1.minLimiter.y|V2.port_b.m_flow|V2.port_b.p|V2.port_b.h_outflow|V2.minLimiter.y|V3.port_b.m_flow|V3.port_b.p|V3.port_b.h_outflow|V3.minLimiter.y|V4.port_b.m_flow|V4.port_b.p|V4.port_b.h_outflow|V4.minLimiter.y|V5.port_b.m_flow|V5.port_b.p|V5.port_b.h_outflow|V5.minLimiter.y|SinkP2.ports.1..m_flow|SinkP2.ports.1..p|SinkP2.ports.1..h_outflow|SinkP3.ports.1..m_flow|SinkP3.ports.1..p|SinkP3.ports.1..h_outflow|CloseLoad.y|OpenRelief.y|CloseValves.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|SourceP1.ports.2..m_flow|SourceP1.ports.2..p|SourceP1.ports.2..h_outflow|SourceP2.ports.1..m_flow|SourceP2.ports.1..p|SourceP2.ports.1..h_outflow|SourceP2.ports.2..m_flow|SourceP2.ports.2..p|SourceP2.ports.2..h_outflow|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|V1.minLimiter.y|V2.port_b.m_flow|V2.port_b.p|V2.port_b.h_outflow|V2.minLimiter.y|V3.port_b.m_flow|V3.port_b.p|V3.port_b.h_outflow|V3.minLimiter.y|V4.port_b.m_flow|V4.port_b.p|V4.port_b.h_outflow|V4.minLimiter.y|V5.port_b.m_flow|V5.port_b.p|V5.port_b.h_outflow|V5.minLimiter.y|SinkP2.ports.1..m_flow|SinkP2.ports.1..p|SinkP2.ports.1..h_outflow|SinkP3.ports.1..m_flow|SinkP3.ports.1..p|SinkP3.ports.1..h_outflow|CloseLoad.y|OpenRelief.y|CloseValves.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00138/0.00138, allocations: 194.6 kB / 16.78 MB, free: 4.914 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 226.5 MB / 244.1 MB, free: 6.445 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007925/0.0007924, allocations: 95.95 kB / 296.1 MB, free: 6.668 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3145/0.3145, allocations: 44.82 MB / 393 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000264/0.0002642, allocations: 8 kB / 465.9 MB, free: 12.71 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3117/0.3119, allocations: 62.95 MB / 0.5165 GB, free: 37.21 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4468/0.7588, allocations: 217 MB / 0.7284 GB, free: 121.8 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002647/0.7592, allocations: 85.08 kB / 0.7284 GB, free: 121.7 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.208/1.967, allocations: 431.4 MB / 1.15 GB, free: 88.73 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.555e-06/1.968, allocations: 2.625 kB / 1.15 GB, free: 88.73 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001493/1.968, allocations: 29.95 kB / 1.15 GB, free: 88.73 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 209 * Number of variables: 209 Notification: Performance of Generate backend data structure: time 0.00498/1.973, allocations: 1.665 MB / 1.151 GB, free: 87.96 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.083e-05/1.973, allocations: 10.69 kB / 1.151 GB, free: 87.96 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003561/1.976, allocations: 363.9 kB / 1.152 GB, free: 87.89 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002092/1.978, allocations: 0.8845 MB / 1.153 GB, free: 87.57 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.825e-05/1.979, allocations: 64.16 kB / 1.153 GB, free: 87.57 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000273/1.979, allocations: 85.38 kB / 1.153 GB, free: 87.56 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003022/1.982, allocations: 1.238 MB / 1.154 GB, free: 87.29 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.858e-05/1.982, allocations: 9.719 kB / 1.154 GB, free: 87.28 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00018/1.982, allocations: 41.09 kB / 1.154 GB, free: 87.28 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.97e-05/1.982, allocations: 22.75 kB / 1.154 GB, free: 87.28 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002491/1.985, allocations: 1.007 MB / 1.155 GB, free: 87.26 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005797/1.99, allocations: 5.389 MB / 1.16 GB, free: 83.64 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001821/1.992, allocations: 0.6868 MB / 1.161 GB, free: 83.61 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006363/1.993, allocations: 371.5 kB / 1.161 GB, free: 83.59 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005878/1.994, allocations: 1.386 MB / 1.163 GB, free: 82 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.365e-05/1.994, allocations: 47.97 kB / 1.163 GB, free: 81.95 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007534/1.994, allocations: 129.8 kB / 1.163 GB, free: 81.91 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=65): time 4.9e-06/1.994, allocations: 0 / 1.163 GB, free: 81.91 MB / 0.5261 GB Notification: Performance of matching and sorting (n=65): time 0.006227/2.001, allocations: 1.803 MB / 1.165 GB, free: 81.69 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.559e-05/2.001, allocations: 197.8 kB / 1.165 GB, free: 81.47 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00122/2.002, allocations: 0.9564 MB / 1.166 GB, free: 81.32 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001341/2.002, allocations: 40.05 kB / 1.166 GB, free: 81.29 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002845/2.002, allocations: 0.5015 MB / 1.166 GB, free: 81.09 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001737/2.003, allocations: 223.1 kB / 1.166 GB, free: 80.95 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.605e-05/2.003, allocations: 17.28 kB / 1.167 GB, free: 80.95 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 7.01e-05/2.003, allocations: 341.1 kB / 1.167 GB, free: 80.64 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007077/2.003, allocations: 360.2 kB / 1.167 GB, free: 80.64 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008046/2.004, allocations: 0.5597 MB / 1.168 GB, free: 80.42 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001413/2.006, allocations: 0.8938 MB / 1.169 GB, free: 80.23 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/2.006, allocations: 0 / 1.169 GB, free: 80.23 MB / 0.5261 GB Notification: Performance of matching and sorting (n=102) (initialization): time 0.002211/2.008, allocations: 1.175 MB / 1.17 GB, free: 80.09 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001436/2.008, allocations: 235.1 kB / 1.17 GB, free: 79.84 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/2.008, allocations: 3.469 kB / 1.17 GB, free: 79.84 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005407/2.013, allocations: 0.776 MB / 1.171 GB, free: 79.83 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001032/2.015, allocations: 261.3 kB / 1.171 GB, free: 79.82 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008585/2.015, allocations: 0.7868 MB / 1.172 GB, free: 79.29 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001337/2.017, allocations: 96.39 kB / 1.172 GB, free: 79.28 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002173/2.017, allocations: 66.8 kB / 1.172 GB, free: 79.28 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.098e-05/2.017, allocations: 3.719 kB / 1.172 GB, free: 79.28 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002122/2.019, allocations: 1.003 MB / 1.173 GB, free: 79.22 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/2.019, allocations: 3.875 kB / 1.173 GB, free: 79.22 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003056/2.02, allocations: 84.14 kB / 1.173 GB, free: 79.21 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009046/2.02, allocations: 266.4 kB / 1.173 GB, free: 79.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001607/2.022, allocations: 1.65 MB / 1.175 GB, free: 77.85 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001097/2.023, allocations: 87.19 kB / 1.175 GB, free: 77.84 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001505/2.023, allocations: 56.33 kB / 1.175 GB, free: 77.84 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 10} Notification: Performance of prepare postOptimizeDAE: time 0.0007132/2.024, allocations: 330.2 kB / 1.175 GB, free: 77.64 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000331/2.024, allocations: 119.9 kB / 1.175 GB, free: 77.58 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004048/2.028, allocations: 2.252 MB / 1.178 GB, free: 77.33 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.586e-06/2.028, allocations: 7.25 kB / 1.178 GB, free: 77.33 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/2.028, allocations: 3.469 kB / 1.178 GB, free: 77.33 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.052e-05/2.028, allocations: 7.734 kB / 1.178 GB, free: 77.33 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003454/2.032, allocations: 1.998 MB / 1.18 GB, free: 76.88 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.104e-06/2.032, allocations: 3.828 kB / 1.18 GB, free: 76.88 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000448/2.032, allocations: 148.4 kB / 1.18 GB, free: 76.88 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002749/2.035, allocations: 0.5869 MB / 1.18 GB, free: 76.86 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.008e-05/2.035, allocations: 28.34 kB / 1.18 GB, free: 76.86 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007018/2.036, allocations: 0.8237 MB / 1.181 GB, free: 76.33 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/2.036, allocations: 3.75 kB / 1.181 GB, free: 76.33 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002069/2.038, allocations: 1.161 MB / 1.182 GB, free: 76 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006434/2.039, allocations: 315.6 kB / 1.183 GB, free: 75.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002043/2.039, allocations: 15.34 kB / 1.183 GB, free: 75.78 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007329/2.04, allocations: 82.48 kB / 1.183 GB, free: 75.76 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001094/2.04, allocations: 65.11 kB / 1.183 GB, free: 75.75 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.514e-05/2.04, allocations: 50.16 kB / 1.183 GB, free: 75.74 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0008369/2.041, allocations: 0.7117 MB / 1.183 GB, free: 75.45 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.4e-07/2.041, allocations: 0 / 1.183 GB, free: 75.45 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002129/2.043, allocations: 0.7575 MB / 1.184 GB, free: 75.31 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009543/2.044, allocations: 459.9 kB / 1.185 GB, free: 75.14 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002879/2.047, allocations: 1.518 MB / 1.186 GB, free: 74.64 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.743e-06/2.047, allocations: 3.625 kB / 1.186 GB, free: 74.64 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0008063/2.048, allocations: 433.2 kB / 1.187 GB, free: 74.53 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002926/2.051, allocations: 0.5308 MB / 1.187 GB, free: 74.42 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003094/2.054, allocations: 2.3 MB / 1.189 GB, free: 73.12 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004249/2.054, allocations: 1.074 MB / 1.19 GB, free: 72.41 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004611/2.055, allocations: 133.7 kB / 1.19 GB, free: 72.39 MB / 0.5261 GB Notification: Performance of SimCode: time 1.873e-06/2.055, allocations: 0 / 1.19 GB, free: 72.39 MB / 0.5261 GB Notification: Performance of Templates: time 0.0324/2.087, allocations: 24.88 MB / 1.215 GB, free: 60.46 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValvesIncompressibleReverse/TestValvesIncompressibleReverse.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches