Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001182/0.001182, allocations: 175.8 kB / 17.06 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.392/1.392, allocations: 223.2 MB / 241 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008934/0.0008934, allocations: 99.52 kB / 292.2 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.4533/0.4533, allocations: 44.21 MB / 387.5 MB, free: 38.8 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003727/0.0003729, allocations: 8 kB / 459.9 MB, free: 1.531 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4452/0.4455, allocations: 61.89 MB / 0.5096 GB, free: 38.09 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.971/6.417, allocations: 2.778 GB / 3.287 GB, free: 77.98 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002433/6.417, allocations: 91.89 kB / 3.288 GB, free: 77.89 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.1/8.517, allocations: 0.6466 GB / 3.934 GB, free: 35.42 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.345e-06/8.517, allocations: 2.344 kB / 3.934 GB, free: 35.42 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001806/8.517, allocations: 44.03 kB / 3.934 GB, free: 35.41 MB / 0.5417 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.01045/8.527, allocations: 2.594 MB / 3.937 GB, free: 33.98 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 7.156e-05/8.528, allocations: 9.531 kB / 3.937 GB, free: 33.98 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008232/8.536, allocations: 0.948 MB / 3.938 GB, free: 33.84 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002609/8.538, allocations: 1.001 MB / 3.939 GB, free: 33.26 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001582/8.539, allocations: 103.5 kB / 3.939 GB, free: 33.21 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003809/8.539, allocations: 110.9 kB / 3.939 GB, free: 33.18 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0061/8.545, allocations: 2.302 MB / 3.941 GB, free: 32.22 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.58e-05/8.545, allocations: 3.938 kB / 3.941 GB, free: 32.21 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002522/8.545, allocations: 59.12 kB / 3.941 GB, free: 32.18 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.575e-05/8.546, allocations: 30.72 kB / 3.941 GB, free: 32.18 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005605/8.551, allocations: 2.19 MB / 3.943 GB, free: 31.65 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01193/8.563, allocations: 10.01 MB / 3.953 GB, free: 23.89 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004944/8.568, allocations: 1.742 MB / 3.955 GB, free: 23.52 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04476/8.613, allocations: 25.99 MB / 3.98 GB, free: 15.25 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.14e-05/8.613, allocations: 51.55 kB / 3.98 GB, free: 15.19 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=88): time 3.296e-06/8.613, allocations: 4 kB / 3.98 GB, free: 15.19 MB / 0.5573 GB Notification: Performance of matching and sorting (n=88): time 0.00965/8.623, allocations: 2.93 MB / 3.983 GB, free: 12.25 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001452/8.623, allocations: 274 kB / 3.983 GB, free: 11.92 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001752/8.625, allocations: 0.9213 MB / 3.984 GB, free: 10.99 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001435/8.625, allocations: 41.7 kB / 3.984 GB, free: 10.95 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006786/8.625, allocations: 0.608 MB / 3.985 GB, free: 10.33 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003625/8.626, allocations: 295.2 kB / 3.985 GB, free: 10.05 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.247e-05/8.626, allocations: 35.88 kB / 3.985 GB, free: 10.01 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001659/8.626, allocations: 341.9 kB / 3.986 GB, free: 9.672 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001351/8.627, allocations: 0.5022 MB / 3.986 GB, free: 9.172 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001549/8.629, allocations: 0.9045 MB / 3.987 GB, free: 8.086 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001315/8.63, allocations: 0.5769 MB / 3.988 GB, free: 7.508 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.366e-06/8.63, allocations: 4 kB / 3.988 GB, free: 7.504 MB / 0.5573 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.003632/8.634, allocations: 1.544 MB / 3.989 GB, free: 5.953 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001825/8.636, allocations: 4.472 MB / 3.993 GB, free: 1.164 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.041e-05/8.636, allocations: 12 kB / 3.993 GB, free: 1.152 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.772e-05/8.636, allocations: 24 kB / 3.993 GB, free: 1.129 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001279/8.637, allocations: 355.5 kB / 3.994 GB, free: 0.7812 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.527e-05/8.637, allocations: 27.88 kB / 3.994 GB, free: 0.7539 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001616/8.639, allocations: 238.3 kB / 3.994 GB, free: 0.5195 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001502/8.639, allocations: 71.97 kB / 3.994 GB, free: 460 kB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.194e-05/8.639, allocations: 4 kB / 3.994 GB, free: 456 kB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.3402/8.979, allocations: 1.376 MB / 3.995 GB, free: 58.88 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.12e-05/8.979, allocations: 12.81 kB / 3.995 GB, free: 58.88 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.065e-05/8.979, allocations: 20.81 kB / 3.995 GB, free: 58.88 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001151/8.981, allocations: 355.5 kB / 3.996 GB, free: 58.88 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.503e-05/8.981, allocations: 28.28 kB / 3.996 GB, free: 58.88 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001583/8.982, allocations: 221.5 kB / 3.996 GB, free: 58.88 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001045/8.982, allocations: 69.22 kB / 3.996 GB, free: 58.88 MB / 0.5573 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.0007723/8.983, allocations: 389.8 kB / 3.996 GB, free: 58.69 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002701/8.983, allocations: 139.3 kB / 3.997 GB, free: 58.69 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007382/8.991, allocations: 6.794 MB / 4.003 GB, free: 58.08 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.924e-05/8.991, allocations: 87.56 kB / 4.003 GB, free: 58.08 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.039e-05/8.991, allocations: 3.094 kB / 4.003 GB, free: 58.08 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.288e-05/8.991, allocations: 5.766 kB / 4.003 GB, free: 58.08 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004258/8.995, allocations: 3.285 MB / 4.007 GB, free: 57.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.283e-06/8.995, allocations: 2.812 kB / 4.007 GB, free: 57.7 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001008/8.996, allocations: 303.6 kB / 4.007 GB, free: 57.7 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.776e-05/8.996, allocations: 6.406 kB / 4.007 GB, free: 57.7 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.799e-05/8.996, allocations: 29.22 kB / 4.007 GB, free: 57.7 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.095e-05/8.996, allocations: 8.969 kB / 4.007 GB, free: 57.7 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/8.996, allocations: 5.219 kB / 4.007 GB, free: 57.7 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004794/9.001, allocations: 3.118 MB / 4.01 GB, free: 57.23 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001671/9.003, allocations: 0.8956 MB / 4.011 GB, free: 56.85 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005796/9.003, allocations: 22.41 kB / 4.011 GB, free: 56.85 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001559/9.005, allocations: 149.4 kB / 4.011 GB, free: 56.84 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002291/9.005, allocations: 110.6 kB / 4.011 GB, free: 56.84 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.564e-05/9.005, allocations: 45.34 kB / 4.011 GB, free: 56.84 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002597/9.008, allocations: 1.536 MB / 4.013 GB, free: 56.7 MB / 0.5573 GB Notification: Performance of sort global known variables: time 2.01e-07/9.008, allocations: 0 / 4.013 GB, free: 56.7 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.009097/9.017, allocations: 1.831 MB / 4.014 GB, free: 56.61 MB / 0.5573 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.009888/9.027, allocations: 1.948 MB / 4.016 GB, free: 56.42 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.005965/9.033, allocations: 2.672 MB / 4.019 GB, free: 56.38 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 9.889e-06/9.033, allocations: 1.375 kB / 4.019 GB, free: 56.38 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.002173/9.035, allocations: 1.537 MB / 4.02 GB, free: 56.37 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004487/9.04, allocations: 0.7924 MB / 4.021 GB, free: 56.35 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01066/9.05, allocations: 6.525 MB / 4.028 GB, free: 53.45 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001996/9.052, allocations: 1.873 MB / 4.029 GB, free: 52.7 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.003456/9.056, allocations: 2.108 MB / 4.031 GB, free: 52.68 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004725/9.056, allocations: 137.1 kB / 4.032 GB, free: 52.67 MB / 0.5573 GB Notification: Performance of SimCode: time 7.61e-07/9.056, allocations: 1.438 kB / 4.032 GB, free: 52.67 MB / 0.5573 GB Notification: Performance of Templates: time 0.09173/9.148, allocations: 62.86 MB / 4.093 GB, free: 49.56 MB / 0.5573 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveCharacteristics/TestValveCharacteristics.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches