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.001681/0.001681, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.239/1.239, allocations: 227.2 MB / 245 MB, free: 5.922 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009621/0.0009622, allocations: 80.31 kB / 297.3 MB, free: 5.988 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3176/0.3176, allocations: 45.23 MB / 394.7 MB, free: 31.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002824/0.0002824, allocations: 8 kB / 468.4 MB, free: 7.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.288/0.2883, allocations: 63.24 MB / 0.5192 GB, free: 37.48 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.37/5.658, allocations: 2.779 GB / 3.298 GB, free: 169.7 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003303/5.658, allocations: 84.59 kB / 3.298 GB, free: 169.7 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 2.237/7.895, allocations: 0.6467 GB / 3.945 GB, free: 48.71 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.104e-06/7.895, allocations: 2.812 kB / 3.945 GB, free: 48.71 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0001969/7.895, allocations: 38.41 kB / 3.945 GB, free: 48.7 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.01017/7.906, allocations: 2.596 MB / 3.948 GB, free: 47.6 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.154e-05/7.906, allocations: 14.88 kB / 3.948 GB, free: 47.6 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008073/7.914, allocations: 0.9475 MB / 3.948 GB, free: 47.52 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002512/7.916, allocations: 1.001 MB / 3.949 GB, free: 47.19 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001437/7.916, allocations: 100.2 kB / 3.95 GB, free: 47.19 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003309/7.917, allocations: 114.9 kB / 3.95 GB, free: 47.19 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005647/7.922, allocations: 2.304 MB / 3.952 GB, free: 46.74 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.563e-05/7.922, allocations: 13.28 kB / 3.952 GB, free: 46.74 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002075/7.923, allocations: 57.45 kB / 3.952 GB, free: 46.74 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.51e-05/7.923, allocations: 32.5 kB / 3.952 GB, free: 46.74 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005724/7.928, allocations: 2.184 MB / 3.954 GB, free: 46.72 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01199/7.94, allocations: 10 MB / 3.964 GB, free: 40.14 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005101/7.946, allocations: 1.744 MB / 3.966 GB, free: 40.11 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04582/7.991, allocations: 28.55 MB / 3.993 GB, free: 21.91 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.528e-05/7.991, allocations: 41.09 kB / 3.994 GB, free: 21.87 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=88): time 2.895e-06/7.991, allocations: 0 / 3.994 GB, free: 21.87 MB / 0.5573 GB Notification: Performance of matching and sorting (n=88): time 0.009127/8.001, allocations: 2.933 MB / 3.996 GB, free: 21.71 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001155/8.001, allocations: 272.4 kB / 3.997 GB, free: 21.39 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002149/8.003, allocations: 0.9224 MB / 3.998 GB, free: 21.23 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001635/8.003, allocations: 45.36 kB / 3.998 GB, free: 21.2 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.000606/8.004, allocations: 0.61 MB / 3.998 GB, free: 20.94 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003258/8.004, allocations: 291.6 kB / 3.998 GB, free: 20.76 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.421e-05/8.004, allocations: 27.19 kB / 3.998 GB, free: 20.75 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.000114/8.004, allocations: 351.5 kB / 3.999 GB, free: 20.45 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001294/8.006, allocations: 0.4933 MB / 3.999 GB, free: 20.44 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001566/8.007, allocations: 0.9075 MB / 4 GB, free: 19.95 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001476/8.009, allocations: 0.5805 MB / 4.001 GB, free: 19.91 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-05/8.009, allocations: 3.406 kB / 4.001 GB, free: 19.91 MB / 0.5573 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.005113/8.014, allocations: 1.541 MB / 4.002 GB, free: 35.77 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002289/8.016, allocations: 4.473 MB / 4.007 GB, free: 31.1 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.149e-05/8.016, allocations: 18.02 kB / 4.007 GB, free: 31.1 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.983e-05/8.016, allocations: 18.59 kB / 4.007 GB, free: 31.1 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001206/8.017, allocations: 351 kB / 4.007 GB, free: 31.09 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.46e-05/8.017, allocations: 32.86 kB / 4.007 GB, free: 31.09 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001961/8.019, allocations: 245 kB / 4.007 GB, free: 31 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001611/8.02, allocations: 73.41 kB / 4.007 GB, free: 31 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.177e-05/8.02, allocations: 3.562 kB / 4.007 GB, free: 31 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003111/8.023, allocations: 1.379 MB / 4.009 GB, free: 30.95 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.598e-05/8.023, allocations: 16.72 kB / 4.009 GB, free: 30.95 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.909e-05/8.023, allocations: 17.34 kB / 4.009 GB, free: 30.95 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001139/8.024, allocations: 353 kB / 4.009 GB, free: 30.95 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.691e-05/8.024, allocations: 22.55 kB / 4.009 GB, free: 30.95 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001601/8.026, allocations: 229.1 kB / 4.009 GB, free: 30.88 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001315/8.026, allocations: 74.2 kB / 4.009 GB, free: 30.87 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.0008816/8.027, allocations: 389.8 kB / 4.01 GB, free: 30.67 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004542/8.027, allocations: 137.1 kB / 4.01 GB, free: 30.61 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00809/8.035, allocations: 6.797 MB / 4.017 GB, free: 29.7 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-05/8.035, allocations: 84.55 kB / 4.017 GB, free: 29.7 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.12e-05/8.035, allocations: 1.312 kB / 4.017 GB, free: 29.7 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.412e-05/8.035, allocations: 7.781 kB / 4.017 GB, free: 29.7 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00425/8.04, allocations: 3.28 MB / 4.02 GB, free: 29.23 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.594e-05/8.04, allocations: 0 / 4.02 GB, free: 29.23 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001041/8.041, allocations: 313.4 kB / 4.02 GB, free: 29.22 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.596e-05/8.041, allocations: 3.625 kB / 4.02 GB, free: 29.22 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.789e-05/8.041, allocations: 31.06 kB / 4.02 GB, free: 29.22 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.025e-06/8.041, allocations: 6.922 kB / 4.02 GB, free: 29.22 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.938e-06/8.041, allocations: 0 / 4.02 GB, free: 29.22 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004261/8.045, allocations: 3.124 MB / 4.023 GB, free: 28.72 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001457/8.046, allocations: 0.9009 MB / 4.024 GB, free: 28.33 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005428/8.047, allocations: 24.75 kB / 4.024 GB, free: 28.33 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001489/8.049, allocations: 145.3 kB / 4.024 GB, free: 28.31 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002003/8.049, allocations: 107.5 kB / 4.024 GB, free: 28.31 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.42e-05/8.049, allocations: 45.09 kB / 4.024 GB, free: 28.3 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002223/8.051, allocations: 1.537 MB / 4.026 GB, free: 28.16 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.51e-07/8.051, allocations: 1.312 kB / 4.026 GB, free: 28.16 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.009196/8.06, allocations: 1.839 MB / 4.028 GB, free: 27.95 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.01022/8.071, allocations: 1.959 MB / 4.03 GB, free: 27.5 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.005766/8.076, allocations: 2.673 MB / 4.032 GB, free: 27.43 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 6.242e-06/8.076, allocations: 1.594 kB / 4.032 GB, free: 27.43 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.002037/8.078, allocations: 1.538 MB / 4.034 GB, free: 27.41 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00485/8.083, allocations: 0.7923 MB / 4.034 GB, free: 27.35 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009661/8.093, allocations: 6.528 MB / 4.041 GB, free: 24.35 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001631/8.095, allocations: 1.864 MB / 4.043 GB, free: 23.57 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.00334/8.098, allocations: 2.098 MB / 4.045 GB, free: 23.51 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004778/8.098, allocations: 139.1 kB / 4.045 GB, free: 23.5 MB / 0.573 GB Notification: Performance of SimCode: time 1.042e-06/8.098, allocations: 0 / 4.045 GB, free: 23.5 MB / 0.573 GB Notification: Performance of Templates: time 0.09807/8.197, allocations: 62.9 MB / 4.106 GB, free: 5.605 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/jenkins/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