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.001448/0.001448, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.993/1.993, allocations: 205.3 MB / 214.1 MB, free: 14.12 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001136/0.001136, allocations: 85.7 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2943/0.2943, allocations: 43.48 MB / 353.6 MB, free: 2.262 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.613e-05/1.61e-05, allocations: 224 / 418.2 MB, free: 41.02 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4179/0.418, allocations: 58.86 MB / 477.1 MB, free: 5.262 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.936/8.354, allocations: 2.772 GB / 3.238 GB, free: 14.39 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002873/8.354, allocations: 78.83 kB / 3.238 GB, free: 14.36 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 3.51/11.86, allocations: 0.6312 GB / 3.869 GB, free: 39.43 MB / 0.5108 GB Notification: Performance of FrontEnd: time 2.304e-06/11.86, allocations: 0 / 3.869 GB, free: 39.43 MB / 0.5108 GB Notification: Performance of Transformations before backend: time 0.0001857/11.86, allocations: 43.22 kB / 3.869 GB, free: 39.42 MB / 0.5108 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.01205/11.88, allocations: 2.441 MB / 3.872 GB, free: 38.39 MB / 0.5108 GB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/11.88, allocations: 10.59 kB / 3.872 GB, free: 38.39 MB / 0.5108 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01133/11.89, allocations: 0.9536 MB / 3.873 GB, free: 38.31 MB / 0.5108 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003275/11.89, allocations: 0.992 MB / 3.874 GB, free: 37.99 MB / 0.5108 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001453/11.89, allocations: 49.41 kB / 3.874 GB, free: 37.99 MB / 0.5108 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002796/11.89, allocations: 71.59 kB / 3.874 GB, free: 37.99 MB / 0.5108 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003591/11.9, allocations: 1.219 MB / 3.875 GB, free: 37.98 MB / 0.5108 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003977/11.9, allocations: 1.43 MB / 3.876 GB, free: 37.55 MB / 0.5108 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.779e-05/11.9, allocations: 14.95 kB / 3.876 GB, free: 37.55 MB / 0.5108 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002437/11.9, allocations: 3.938 kB / 3.876 GB, free: 37.55 MB / 0.5108 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.79e-05/11.9, allocations: 38 kB / 3.876 GB, free: 37.55 MB / 0.5108 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2166/12.12, allocations: 70.55 MB / 3.945 GB, free: 25.58 MB / 0.5421 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001823/12.12, allocations: 0.7962 MB / 3.946 GB, free: 25.55 MB / 0.5421 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009098/12.12, allocations: 395.7 kB / 3.946 GB, free: 25.54 MB / 0.5421 GB Notification: Performance of preOpt evalFunc (simulation): time 1.294/13.41, allocations: 277.1 MB / 4.217 GB, free: 19.27 MB / 0.6046 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.154e-05/13.41, allocations: 47.14 kB / 4.217 GB, free: 19.23 MB / 0.6046 GB Notification: Performance of pre-optimization done (n=39): time 3.898e-06/13.41, allocations: 0 / 4.217 GB, free: 19.23 MB / 0.6046 GB Notification: Performance of matching and sorting (n=39): time 0.007982/13.42, allocations: 1.496 MB / 4.218 GB, free: 19.18 MB / 0.6046 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001516/13.42, allocations: 267.8 kB / 4.219 GB, free: 18.87 MB / 0.6046 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001882/13.42, allocations: 0.9468 MB / 4.22 GB, free: 18.73 MB / 0.6046 GB Notification: Performance of collectPreVariables (initialization): time 0.000141/13.42, allocations: 25.7 kB / 4.22 GB, free: 18.7 MB / 0.6046 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005413/13.42, allocations: 0.7832 MB / 4.22 GB, free: 18.31 MB / 0.6046 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001595/13.42, allocations: 143.7 kB / 4.221 GB, free: 18.25 MB / 0.6046 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.598e-05/13.42, allocations: 0 / 4.221 GB, free: 18.25 MB / 0.6046 GB Notification: Performance of setup shared object (initialization): time 0.0001668/13.42, allocations: 352.8 kB / 4.221 GB, free: 17.93 MB / 0.6046 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008019/13.43, allocations: 329.4 kB / 4.221 GB, free: 17.93 MB / 0.6046 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001027/13.43, allocations: 0.7126 MB / 4.222 GB, free: 17.45 MB / 0.6046 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004844/13.43, allocations: 0.7393 MB / 4.223 GB, free: 17.44 MB / 0.6046 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.521e-05/13.43, allocations: 3.375 kB / 4.223 GB, free: 17.44 MB / 0.6046 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.006674/13.44, allocations: 1.388 MB / 4.224 GB, free: 17.36 MB / 0.6046 GB Notification: Performance of prepare postOptimizeDAE: time 0.002223/13.44, allocations: 4.445 MB / 4.228 GB, free: 28.7 MB / 0.6202 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.34e-05/13.44, allocations: 15.05 kB / 4.228 GB, free: 28.7 MB / 0.6202 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.892e-05/13.44, allocations: 22.97 kB / 4.228 GB, free: 28.7 MB / 0.6202 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002541/13.44, allocations: 353.6 kB / 4.229 GB, free: 28.69 MB / 0.6202 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.81e-05/13.44, allocations: 26.55 kB / 4.229 GB, free: 28.69 MB / 0.6202 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003826/13.45, allocations: 345.1 kB / 4.229 GB, free: 28.64 MB / 0.6202 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002473/13.45, allocations: 72.14 kB / 4.229 GB, free: 28.63 MB / 0.6202 GB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/13.45, allocations: 6.812 kB / 4.229 GB, free: 28.63 MB / 0.6202 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00542/13.45, allocations: 1.17 MB / 4.23 GB, free: 28.6 MB / 0.6202 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.026e-05/13.45, allocations: 11.84 kB / 4.23 GB, free: 28.6 MB / 0.6202 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.977e-05/13.45, allocations: 24.03 kB / 4.23 GB, free: 28.6 MB / 0.6202 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002285/13.46, allocations: 351.8 kB / 4.231 GB, free: 28.59 MB / 0.6202 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.536e-05/13.46, allocations: 26.44 kB / 4.231 GB, free: 28.59 MB / 0.6202 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002381/13.46, allocations: 234.8 kB / 4.231 GB, free: 28.56 MB / 0.6202 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001717/13.46, allocations: 71.16 kB / 4.231 GB, free: 28.56 MB / 0.6202 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 (sink2.medium.phase,source2.medium.phase,sink4.medium.phase,source4.medium.phase,sink3.medium.phase,source3.medium.phase,sink1.medium.phase,source1.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 () * 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.0004056/13.46, allocations: 144.4 kB / 4.231 GB, free: 28.45 MB / 0.6202 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004011/13.46, allocations: 117.6 kB / 4.231 GB, free: 28.39 MB / 0.6202 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002785/13.46, allocations: 1.123 MB / 4.232 GB, free: 28.21 MB / 0.6202 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.336e-06/13.46, allocations: 4.688 kB / 4.232 GB, free: 28.21 MB / 0.6202 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/13.46, allocations: 0 / 4.232 GB, free: 28.21 MB / 0.6202 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/13.46, allocations: 9.172 kB / 4.232 GB, free: 28.21 MB / 0.6202 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004908/13.47, allocations: 2.033 MB / 4.234 GB, free: 27.75 MB / 0.6202 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.999e-06/13.47, allocations: 3.625 kB / 4.234 GB, free: 27.75 MB / 0.6202 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000656/13.47, allocations: 92.92 kB / 4.234 GB, free: 27.75 MB / 0.6202 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.336e-05/13.47, allocations: 4.438 kB / 4.234 GB, free: 27.75 MB / 0.6202 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.938e-05/13.47, allocations: 22.97 kB / 4.234 GB, free: 27.75 MB / 0.6202 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-05/13.47, allocations: 11.53 kB / 4.234 GB, free: 27.75 MB / 0.6202 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.015e-06/13.47, allocations: 7.891 kB / 4.234 GB, free: 27.74 MB / 0.6202 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002202/13.47, allocations: 0.9344 MB / 4.235 GB, free: 27.07 MB / 0.6202 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001234/13.47, allocations: 454.3 kB / 4.236 GB, free: 26.87 MB / 0.6202 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006396/13.47, allocations: 11.5 kB / 4.236 GB, free: 26.87 MB / 0.6202 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002157/13.47, allocations: 95.81 kB / 4.236 GB, free: 26.86 MB / 0.6202 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001721/13.47, allocations: 44.44 kB / 4.236 GB, free: 26.86 MB / 0.6202 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.547e-05/13.47, allocations: 25.7 kB / 4.236 GB, free: 26.86 MB / 0.6202 GB Notification: Performance of sorting global known variables: time 0.002419/13.48, allocations: 1.153 MB / 4.237 GB, free: 26.2 MB / 0.6202 GB Notification: Performance of sort global known variables: time 7.61e-07/13.48, allocations: 0 / 4.237 GB, free: 26.2 MB / 0.6202 GB Notification: Performance of remove unused functions: time 0.008809/13.49, allocations: 1.764 MB / 4.239 GB, free: 24.65 MB / 0.6202 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 40 * 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 Backend phase and start with SimCode phase: time 0.01162/13.5, allocations: 2.114 MB / 4.241 GB, free: 23.18 MB / 0.6202 GB Notification: Performance of simCode: created initialization part: time 0.003365/13.5, allocations: 1.195 MB / 4.242 GB, free: 22.48 MB / 0.6202 GB Notification: Performance of simCode: created event and clocks part: time 1.165e-05/13.5, allocations: 1.422 kB / 4.242 GB, free: 22.48 MB / 0.6202 GB Notification: Performance of simCode: created simulation system equations: time 0.0004434/13.5, allocations: 152.5 kB / 4.242 GB, free: 22.39 MB / 0.6202 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003977/13.5, allocations: 429.4 kB / 4.243 GB, free: 22.16 MB / 0.6202 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004272/13.51, allocations: 1.625 MB / 4.244 GB, free: 20.74 MB / 0.6202 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000956/13.51, allocations: 1.245 MB / 4.245 GB, free: 19.69 MB / 0.6202 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007511/13.51, allocations: 133.5 kB / 4.246 GB, free: 19.59 MB / 0.6202 GB Notification: Performance of SimCode: time 1.743e-06/13.51, allocations: 3.188 kB / 4.246 GB, free: 19.59 MB / 0.6202 GB Notification: Performance of Templates: time 0.4956/14.01, allocations: 42.36 MB / 4.287 GB, free: 146.7 MB / 0.6202 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