Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valve_linear.port_b.m_flow|valve_linear.port_b.p|valve_linear.port_b.h_outflow|valve_linear.minLimiter.y|sink1.ports.1..m_flow|sink1.ports.1..p|sink1.ports.1..h_outflow|opening.y|valve_constant.port_b.m_flow|valve_constant.port_b.p|valve_constant.port_b.h_outflow|valve_constant.minLimiter.y|valve_quadratic.port_b.m_flow|valve_quadratic.port_b.p|valve_quadratic.port_b.h_outflow|valve_quadratic.minLimiter.y|sink2.ports.1..m_flow|sink2.ports.1..p|sink2.ports.1..h_outflow|sink3.ports.1..m_flow|sink3.ports.1..p|sink3.ports.1..h_outflow|valve_equalPercentage.port_b.m_flow|valve_equalPercentage.port_b.p|valve_equalPercentage.port_b.h_outflow|valve_equalPercentage.minLimiter.y|sink4.ports.1..m_flow|sink4.ports.1..p|sink4.ports.1..h_outflow",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valve_linear.port_b.m_flow|valve_linear.port_b.p|valve_linear.port_b.h_outflow|valve_linear.minLimiter.y|sink1.ports.1..m_flow|sink1.ports.1..p|sink1.ports.1..h_outflow|opening.y|valve_constant.port_b.m_flow|valve_constant.port_b.p|valve_constant.port_b.h_outflow|valve_constant.minLimiter.y|valve_quadratic.port_b.m_flow|valve_quadratic.port_b.p|valve_quadratic.port_b.h_outflow|valve_quadratic.minLimiter.y|sink2.ports.1..m_flow|sink2.ports.1..p|sink2.ports.1..h_outflow|sink3.ports.1..m_flow|sink3.ports.1..p|sink3.ports.1..h_outflow|valve_equalPercentage.port_b.m_flow|valve_equalPercentage.port_b.p|valve_equalPercentage.port_b.h_outflow|valve_equalPercentage.minLimiter.y|sink4.ports.1..m_flow|sink4.ports.1..p|sink4.ports.1..h_outflow",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001661/0.001661, allocations: 186.7 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.852/1.852, allocations: 205.4 MB / 222.5 MB, free: 9.141 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001145/0.001145, allocations: 92.42 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5002/0.5002, allocations: 43.55 MB / 362.7 MB, free: 51.95 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006219/0.0006221, allocations: 16 kB / 431.4 MB, free: 5.957 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1281/0.1288, allocations: 58.85 MB / 490.2 MB, free: 11.02 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.309/8.438, allocations: 2.773 GB / 3.251 GB, free: 35.41 MB / 0.4949 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003043/8.438, allocations: 88.3 kB / 3.251 GB, free: 35.37 MB / 0.4949 GB Notification: Performance of FrontEnd - DAE generated: time 3.64/12.08, allocations: 0.6395 GB / 3.891 GB, free: 40.21 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.186e-06/12.08, allocations: 3.797 kB / 3.891 GB, free: 40.21 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0002197/12.08, allocations: 41.44 kB / 3.891 GB, free: 40.21 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: 301 * Number of variables: 301 Notification: Performance of Generate backend data structure: time 0.01346/12.09, allocations: 2.591 MB / 3.894 GB, free: 39.2 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.075e-05/12.09, allocations: 11.81 kB / 3.894 GB, free: 39.2 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01166/12.1, allocations: 0.9478 MB / 3.894 GB, free: 39.12 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003252/12.11, allocations: 0.9939 MB / 3.895 GB, free: 38.8 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002057/12.11, allocations: 104.5 kB / 3.896 GB, free: 38.79 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002938/12.11, allocations: 112.1 kB / 3.896 GB, free: 38.79 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009379/12.12, allocations: 2.305 MB / 3.898 GB, free: 38.35 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.633e-05/12.12, allocations: 7.688 kB / 3.898 GB, free: 38.35 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000263/12.12, allocations: 60.45 kB / 3.898 GB, free: 38.35 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.231e-05/12.12, allocations: 34.14 kB / 3.898 GB, free: 38.35 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0101/12.13, allocations: 2.189 MB / 3.9 GB, free: 38.33 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01798/12.15, allocations: 10 MB / 3.91 GB, free: 31.75 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008616/12.15, allocations: 1.739 MB / 3.912 GB, free: 31.71 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07921/12.23, allocations: 25.99 MB / 3.937 GB, free: 32.43 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.158e-05/12.23, allocations: 45.5 kB / 3.937 GB, free: 32.39 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=88): time 3.798e-06/12.23, allocations: 0 / 3.937 GB, free: 32.39 MB / 0.5417 GB Notification: Performance of matching and sorting (n=88): time 0.01552/12.25, allocations: 2.938 MB / 3.94 GB, free: 32.26 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001709/12.25, allocations: 272.5 kB / 3.94 GB, free: 31.95 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001704/12.25, allocations: 0.9175 MB / 3.941 GB, free: 31.79 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001884/12.25, allocations: 45.98 kB / 3.941 GB, free: 31.76 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004701/12.25, allocations: 0.5862 MB / 3.942 GB, free: 31.44 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003109/12.25, allocations: 311.5 kB / 3.942 GB, free: 31.25 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001131/12.25, allocations: 18.06 kB / 3.942 GB, free: 31.25 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001719/12.25, allocations: 356.2 kB / 3.942 GB, free: 30.93 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00225/12.26, allocations: 0.4985 MB / 3.943 GB, free: 30.93 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00248/12.26, allocations: 0.9092 MB / 3.944 GB, free: 30.46 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002392/12.26, allocations: 0.5831 MB / 3.944 GB, free: 30.45 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.166e-05/12.26, allocations: 4.031 kB / 3.944 GB, free: 30.45 MB / 0.5417 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.006011/12.27, allocations: 1.454 MB / 3.946 GB, free: 30.35 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001838/12.27, allocations: 4.452 MB / 3.95 GB, free: 25.69 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.606e-05/12.27, allocations: 12.25 kB / 3.95 GB, free: 25.69 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.442e-05/12.27, allocations: 22.02 kB / 3.95 GB, free: 25.69 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002643/12.27, allocations: 359.6 kB / 3.95 GB, free: 25.68 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.804e-05/12.27, allocations: 23.22 kB / 3.95 GB, free: 25.68 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002468/12.27, allocations: 244.2 kB / 3.951 GB, free: 25.6 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001971/12.27, allocations: 71.47 kB / 3.951 GB, free: 25.59 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/12.27, allocations: 3.625 kB / 3.951 GB, free: 25.59 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005789/12.28, allocations: 1.375 MB / 3.952 GB, free: 25.55 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.47e-05/12.28, allocations: 11.62 kB / 3.952 GB, free: 25.55 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.352e-05/12.28, allocations: 23.25 kB / 3.952 GB, free: 25.55 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002375/12.28, allocations: 349.7 kB / 3.952 GB, free: 25.54 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.721e-05/12.28, allocations: 27.64 kB / 3.953 GB, free: 25.54 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001755/12.28, allocations: 190.8 kB / 3.953 GB, free: 25.5 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001731/12.28, allocations: 85.36 kB / 3.953 GB, free: 25.49 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 16 (source2.medium.phase,sink2.medium.phase,source1.medium.phase,sink1.medium.phase,source3.medium.phase,sink3.medium.phase,source4.medium.phase,sink4.medium.phase,valve_equalPercentage.state_b.phase,valve_equalPercentage.state_a.phase,valve_quadratic.state_b.phase,valve_quadratic.state_a.phase,valve_constant.state_b.phase,valve_constant.state_a.phase,valve_linear.state_b.phase,valve_linear.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (141): * Single equations (assignments): 141 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001072/12.29, allocations: 396 kB / 3.953 GB, free: 25.28 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004902/12.29, allocations: 140.8 kB / 3.953 GB, free: 25.21 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01319/12.3, allocations: 6.79 MB / 3.96 GB, free: 24.31 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000122/12.3, allocations: 83.48 kB / 3.96 GB, free: 24.31 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.11e-05/12.3, allocations: 0.7031 kB / 3.96 GB, free: 24.31 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.207e-05/12.3, allocations: 5.438 kB / 3.96 GB, free: 24.31 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00564/12.3, allocations: 3.287 MB / 3.963 GB, free: 23.84 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-05/12.3, allocations: 3.906 kB / 3.963 GB, free: 23.84 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002098/12.31, allocations: 311 kB / 3.964 GB, free: 23.83 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.495e-05/12.31, allocations: 7.5 kB / 3.964 GB, free: 23.83 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.119e-05/12.31, allocations: 22.72 kB / 3.964 GB, free: 23.83 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.438e-06/12.31, allocations: 6.719 kB / 3.964 GB, free: 23.83 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/12.31, allocations: 4 kB / 3.964 GB, free: 23.82 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006669/12.31, allocations: 3.115 MB / 3.967 GB, free: 23.33 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001856/12.32, allocations: 0.8953 MB / 3.967 GB, free: 22.94 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004817/12.32, allocations: 31.55 kB / 3.967 GB, free: 22.94 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002008/12.32, allocations: 148.3 kB / 3.968 GB, free: 22.92 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002992/12.32, allocations: 105.1 kB / 3.968 GB, free: 22.92 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001128/12.32, allocations: 46.06 kB / 3.968 GB, free: 22.92 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002886/12.32, allocations: 1.533 MB / 3.969 GB, free: 22.77 MB / 0.5417 GB Notification: Performance of sort global known variables: time 6.91e-07/12.32, allocations: 4 kB / 3.969 GB, free: 22.77 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.008824/12.33, allocations: 1.826 MB / 3.971 GB, free: 22.56 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 56 ($cse3.phase,$cse3.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse13.phase,$cse13.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse29.phase,$cse29.region,$cse33.phase,$cse33.region,$cse37.phase,$cse37.region,$cse41.phase,$cse41.region,$cse44.phase,$cse44.region,$cse45.phase,$cse45.region,$cse47.phase,$cse47.region,$cse48.phase,$cse48.region,$cse51.phase,$cse51.region,$cse55.phase,$cse55.region,source1.medium.phase,sink1.medium.phase,source2.medium.phase,sink2.medium.phase,source3.medium.phase,sink3.medium.phase,source4.medium.phase,sink4.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (120): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 24 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01059/12.34, allocations: 1.948 MB / 3.973 GB, free: 22.12 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.00866/12.35, allocations: 2.672 MB / 3.976 GB, free: 22.04 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.346e-06/12.35, allocations: 3.781 kB / 3.976 GB, free: 22.04 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.003215/12.35, allocations: 1.539 MB / 3.977 GB, free: 22.02 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007116/12.36, allocations: 0.7915 MB / 3.978 GB, free: 21.96 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01162/12.37, allocations: 6.593 MB / 3.984 GB, free: 18.93 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001544/12.37, allocations: 1.862 MB / 3.986 GB, free: 18.15 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000757/12.37, allocations: 141 kB / 3.986 GB, free: 18.14 MB / 0.5417 GB Notification: Performance of SimCode: time 1.262e-06/12.37, allocations: 3.281 kB / 3.986 GB, free: 18.14 MB / 0.5417 GB Notification: Performance of Templates: time 0.106/12.48, allocations: 51.04 MB / 4.036 GB, free: 13.54 MB / 0.5417 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValveCharacteristics/TestValveCharacteristics.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches