Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.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.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_trunk_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_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001458/0.001458, allocations: 200.5 kB / 18.11 MB, free: 3.734 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.587/1.587, allocations: 226.5 MB / 245.4 MB, free: 6.449 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008352/0.000835, allocations: 90.44 kB / 297.5 MB, free: 6.66 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3661/0.3661, allocations: 44.81 MB / 394.3 MB, free: 35.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003094/0.0003094, allocations: 12 kB / 467.9 MB, free: 12.02 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4254/0.4257, allocations: 62.95 MB / 0.5184 GB, free: 37.72 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.624/7.05, allocations: 2.779 GB / 3.298 GB, free: 161.5 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000333/7.051, allocations: 89.45 kB / 3.298 GB, free: 161.5 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 2.482/9.533, allocations: 0.6415 GB / 3.939 GB, free: 47.56 MB / 0.5573 GB Notification: Performance of FrontEnd: time 3.377e-06/9.533, allocations: 0 / 3.939 GB, free: 47.56 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0001672/9.533, allocations: 41.41 kB / 3.939 GB, free: 47.56 MB / 0.5573 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.01033/9.543, allocations: 2.588 MB / 3.942 GB, free: 46.56 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/9.543, allocations: 10.59 kB / 3.942 GB, free: 46.56 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008007/9.551, allocations: 0.9496 MB / 3.943 GB, free: 46.48 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002799/9.554, allocations: 1.029 MB / 3.944 GB, free: 46.12 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001919/9.554, allocations: 104.1 kB / 3.944 GB, free: 46.12 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003977/9.555, allocations: 112.3 kB / 3.944 GB, free: 46.12 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006566/9.561, allocations: 2.313 MB / 3.946 GB, free: 45.68 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.726e-05/9.561, allocations: 6.656 kB / 3.946 GB, free: 45.67 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002856/9.562, allocations: 63.09 kB / 3.946 GB, free: 45.67 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.351e-05/9.562, allocations: 31.66 kB / 3.946 GB, free: 45.67 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006048/9.568, allocations: 2.189 MB / 3.948 GB, free: 45.66 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01221/9.58, allocations: 10.01 MB / 3.958 GB, free: 39.07 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00542/9.586, allocations: 1.741 MB / 3.96 GB, free: 39.03 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001375/9.587, allocations: 0.6025 MB / 3.96 GB, free: 39.02 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05215/9.639, allocations: 28.56 MB / 3.988 GB, free: 21 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.375e-05/9.639, allocations: 48.95 kB / 3.988 GB, free: 20.96 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=88): time 5.37e-06/9.639, allocations: 0 / 3.988 GB, free: 20.96 MB / 0.5573 GB Notification: Performance of matching and sorting (n=88): time 0.009739/9.649, allocations: 2.934 MB / 3.991 GB, free: 20.79 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001206/9.65, allocations: 274.7 kB / 3.991 GB, free: 36.48 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002043/9.652, allocations: 1.052 MB / 3.993 GB, free: 36.31 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001834/9.652, allocations: 39.27 kB / 3.993 GB, free: 36.28 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005343/9.653, allocations: 0.6084 MB / 3.993 GB, free: 36.02 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003648/9.653, allocations: 300 kB / 3.993 GB, free: 35.84 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.245e-05/9.653, allocations: 19.81 kB / 3.993 GB, free: 35.84 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.000175/9.654, allocations: 356.5 kB / 3.994 GB, free: 35.53 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001248/9.655, allocations: 0.4975 MB / 3.994 GB, free: 35.52 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001384/9.656, allocations: 0.9087 MB / 3.995 GB, free: 35.02 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002611/9.659, allocations: 1.38 MB / 3.997 GB, free: 34.57 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-05/9.659, allocations: 3.344 kB / 3.997 GB, free: 34.57 MB / 0.573 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.003624/9.663, allocations: 1.546 MB / 3.998 GB, free: 34.42 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002919/9.663, allocations: 434.8 kB / 3.998 GB, free: 33.91 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.074e-05/9.663, allocations: 13.81 kB / 3.998 GB, free: 33.91 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.75e-05/9.663, allocations: 18 kB / 3.998 GB, free: 33.91 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001112/9.664, allocations: 354.2 kB / 3.999 GB, free: 33.91 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.438e-05/9.664, allocations: 29.41 kB / 3.999 GB, free: 33.91 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001709/9.666, allocations: 247.8 kB / 3.999 GB, free: 33.81 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001349/9.666, allocations: 69.72 kB / 3.999 GB, free: 33.81 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 9.648e-06/9.666, allocations: 3.844 kB / 3.999 GB, free: 33.81 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00293/9.669, allocations: 1.381 MB / 4 GB, free: 33.77 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.718e-05/9.669, allocations: 11.75 kB / 4 GB, free: 33.77 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.066e-05/9.669, allocations: 20.03 kB / 4.001 GB, free: 33.77 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001093/9.67, allocations: 350.4 kB / 4.001 GB, free: 33.76 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.777e-05/9.67, allocations: 29.7 kB / 4.001 GB, free: 33.76 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001495/9.672, allocations: 224.1 kB / 4.001 GB, free: 33.69 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001218/9.672, allocations: 71.53 kB / 4.001 GB, free: 33.68 MB / 0.573 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.0008343/9.673, allocations: 384.8 kB / 4.002 GB, free: 33.49 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004028/9.673, allocations: 140.2 kB / 4.002 GB, free: 33.42 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008146/9.681, allocations: 6.796 MB / 4.008 GB, free: 32.51 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.574e-05/9.681, allocations: 83.03 kB / 4.008 GB, free: 32.51 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.345e-05/9.681, allocations: 0 / 4.008 GB, free: 32.51 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.598e-05/9.681, allocations: 9.375 kB / 4.008 GB, free: 32.51 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004227/9.686, allocations: 3.277 MB / 4.012 GB, free: 32.04 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.658e-05/9.686, allocations: 0 / 4.012 GB, free: 32.04 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009976/9.687, allocations: 313.6 kB / 4.012 GB, free: 32.03 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.667e-05/9.687, allocations: 3.844 kB / 4.012 GB, free: 32.03 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.497e-05/9.687, allocations: 30.44 kB / 4.012 GB, free: 32.02 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.258e-06/9.687, allocations: 7.672 kB / 4.012 GB, free: 32.02 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/9.687, allocations: 0 / 4.012 GB, free: 32.02 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00461/9.691, allocations: 3.114 MB / 4.015 GB, free: 31.54 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001313/9.693, allocations: 0.902 MB / 4.016 GB, free: 31.15 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005062/9.693, allocations: 30 kB / 4.016 GB, free: 31.14 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001334/9.695, allocations: 144.6 kB / 4.016 GB, free: 31.12 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002182/9.695, allocations: 112.6 kB / 4.016 GB, free: 31.12 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.684e-05/9.695, allocations: 44.31 kB / 4.016 GB, free: 31.12 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002219/9.697, allocations: 1.533 MB / 4.018 GB, free: 30.97 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.5e-07/9.697, allocations: 0 / 4.018 GB, free: 30.97 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.009441/9.707, allocations: 1.849 MB / 4.019 GB, free: 30.76 MB / 0.573 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.009822/9.716, allocations: 1.962 MB / 4.021 GB, free: 30.32 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.005652/9.722, allocations: 2.671 MB / 4.024 GB, free: 30.25 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 8.045e-06/9.722, allocations: 3.656 kB / 4.024 GB, free: 30.25 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.002169/9.724, allocations: 1.541 MB / 4.025 GB, free: 30.23 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004903/9.729, allocations: 0.7948 MB / 4.026 GB, free: 30.18 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008015/9.737, allocations: 6.538 MB / 4.033 GB, free: 27.17 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001194/9.739, allocations: 1.809 MB / 4.034 GB, free: 26.39 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.002869/9.741, allocations: 2.111 MB / 4.036 GB, free: 26.33 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002816/9.742, allocations: 136.4 kB / 4.037 GB, free: 26.32 MB / 0.573 GB Notification: Performance of SimCode: time 9.62e-07/9.742, allocations: 0 / 4.037 GB, free: 26.32 MB / 0.573 GB Notification: Performance of Templates: time 0.08927/9.831, allocations: 65.49 MB / 4.101 GB, free: 18.52 MB / 0.573 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveCharacteristics/TestValveCharacteristics.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches