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.001181/0.001186, allocations: 182 kB / 17.41 MB, free: 4.406 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.323/1.323, allocations: 205.4 MB / 223.6 MB, free: 9.031 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.0007416/0.0007416, allocations: 97.95 kB / 271.9 MB, free: 8.254 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.3309/0.3309, allocations: 43.56 MB / 363.8 MB, free: 51.84 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004011/0.0004012, allocations: 12 kB / 432.6 MB, free: 5.645 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1219/0.1223, allocations: 58.85 MB / 491.4 MB, free: 10.71 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.557/5.679, allocations: 2.773 GB / 3.253 GB, free: 98.8 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002037/5.679, allocations: 89.02 kB / 3.253 GB, free: 98.76 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 1.9/7.579, allocations: 0.6342 GB / 3.887 GB, free: 25.54 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.443e-06/7.579, allocations: 3.906 kB / 3.887 GB, free: 25.54 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001468/7.579, allocations: 41.92 kB / 3.887 GB, free: 25.53 MB / 0.5105 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.008992/7.588, allocations: 2.566 MB / 3.89 GB, free: 24.1 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.257e-05/7.588, allocations: 12.41 kB / 3.89 GB, free: 24.1 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007721/7.596, allocations: 0.9459 MB / 3.891 GB, free: 23.95 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002417/7.598, allocations: 1.038 MB / 3.892 GB, free: 23.17 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001644/7.599, allocations: 105.4 kB / 3.892 GB, free: 23.12 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003669/7.599, allocations: 113.5 kB / 3.892 GB, free: 23.08 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006005/7.605, allocations: 2.309 MB / 3.894 GB, free: 21.62 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.802e-05/7.605, allocations: 11.06 kB / 3.894 GB, free: 21.62 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002307/7.605, allocations: 61.31 kB / 3.894 GB, free: 21.57 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.604e-05/7.605, allocations: 34.19 kB / 3.894 GB, free: 21.57 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0057/7.611, allocations: 2.185 MB / 3.897 GB, free: 20.59 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0105/7.621, allocations: 10.01 MB / 3.906 GB, free: 11.51 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004868/7.626, allocations: 1.74 MB / 3.908 GB, free: 9.801 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001244/7.628, allocations: 0.6045 MB / 3.909 GB, free: 9.207 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04615/7.674, allocations: 25.99 MB / 3.934 GB, free: 12.54 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.152e-05/7.674, allocations: 47.5 kB / 3.934 GB, free: 12.48 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=88): time 3.647e-06/7.674, allocations: 3.281 kB / 3.934 GB, free: 12.48 MB / 0.5417 GB Notification: Performance of matching and sorting (n=88): time 0.00974/7.684, allocations: 2.93 MB / 3.937 GB, free: 9.539 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001357/7.684, allocations: 278 kB / 3.937 GB, free: 9.207 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001735/7.686, allocations: 1.053 MB / 3.938 GB, free: 8.145 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001172/7.686, allocations: 49.7 kB / 3.938 GB, free: 8.09 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005027/7.686, allocations: 0.6018 MB / 3.939 GB, free: 7.484 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002997/7.686, allocations: 308 kB / 3.939 GB, free: 7.188 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.257e-05/7.687, allocations: 24 kB / 3.939 GB, free: 7.164 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001375/7.687, allocations: 341.9 kB / 3.939 GB, free: 6.824 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001372/7.688, allocations: 0.5061 MB / 3.94 GB, free: 6.316 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001646/7.69, allocations: 0.9051 MB / 3.941 GB, free: 5.234 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00302/7.693, allocations: 1.382 MB / 3.942 GB, free: 3.695 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.083e-05/7.693, allocations: 4 kB / 3.942 GB, free: 3.691 MB / 0.5417 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.003872/7.697, allocations: 1.542 MB / 3.944 GB, free: 2.141 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003073/7.697, allocations: 429.8 kB / 3.944 GB, free: 1.562 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.388e-05/7.697, allocations: 12 kB / 3.944 GB, free: 1.551 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.07e-05/7.697, allocations: 20 kB / 3.944 GB, free: 1.531 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001253/7.698, allocations: 355.5 kB / 3.944 GB, free: 1.184 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.024e-05/7.698, allocations: 23.94 kB / 3.945 GB, free: 1.16 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00158/7.7, allocations: 246.2 kB / 3.945 GB, free: 0.918 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00014/7.7, allocations: 71.92 kB / 3.945 GB, free: 0.8477 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 8.787e-06/7.7, allocations: 7.938 kB / 3.945 GB, free: 0.8398 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.2675/7.968, allocations: 1.375 MB / 3.946 GB, free: 65.68 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.129e-05/7.968, allocations: 15.16 kB / 3.946 GB, free: 65.68 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.034e-05/7.968, allocations: 17.5 kB / 3.946 GB, free: 65.68 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001244/7.969, allocations: 349.1 kB / 3.947 GB, free: 65.68 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.351e-05/7.969, allocations: 27.17 kB / 3.947 GB, free: 65.68 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001477/7.971, allocations: 220.6 kB / 3.947 GB, free: 65.68 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001269/7.971, allocations: 65.48 kB / 3.947 GB, free: 65.68 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.000753/7.971, allocations: 393 kB / 3.947 GB, free: 65.49 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002587/7.972, allocations: 140.3 kB / 3.947 GB, free: 65.49 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008675/7.98, allocations: 6.787 MB / 3.954 GB, free: 64.92 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.281e-05/7.98, allocations: 83.58 kB / 3.954 GB, free: 64.92 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.929e-06/7.98, allocations: 3.375 kB / 3.954 GB, free: 64.92 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.605e-05/7.981, allocations: 7.609 kB / 3.954 GB, free: 64.92 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003985/7.984, allocations: 3.286 MB / 3.957 GB, free: 64.53 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.597e-06/7.985, allocations: 0.5312 kB / 3.957 GB, free: 64.53 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001122/7.986, allocations: 313.5 kB / 3.958 GB, free: 64.53 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.176e-05/7.986, allocations: 4.688 kB / 3.958 GB, free: 64.53 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.218e-05/7.986, allocations: 27.17 kB / 3.958 GB, free: 64.53 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-05/7.986, allocations: 9.906 kB / 3.958 GB, free: 64.53 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/7.986, allocations: 1.312 kB / 3.958 GB, free: 64.53 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004499/7.99, allocations: 3.111 MB / 3.961 GB, free: 64.07 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001811/7.992, allocations: 0.9071 MB / 3.962 GB, free: 63.68 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003793/7.993, allocations: 23.81 kB / 3.962 GB, free: 63.68 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001255/7.994, allocations: 141.1 kB / 3.962 GB, free: 63.67 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002282/7.994, allocations: 112.9 kB / 3.962 GB, free: 63.67 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.545e-05/7.994, allocations: 46.16 kB / 3.962 GB, free: 63.67 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002474/7.997, allocations: 1.534 MB / 3.963 GB, free: 63.53 MB / 0.5417 GB Notification: Performance of sort global known variables: time 4.51e-07/7.997, allocations: 2.125 kB / 3.963 GB, free: 63.53 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.008812/8.005, allocations: 1.83 MB / 3.965 GB, free: 63.43 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.008493/8.014, allocations: 1.95 MB / 3.967 GB, free: 63.24 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.005218/8.019, allocations: 2.674 MB / 3.97 GB, free: 63.21 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.285e-06/8.019, allocations: 2.781 kB / 3.97 GB, free: 63.21 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001981/8.021, allocations: 1.537 MB / 3.971 GB, free: 63.2 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004227/8.026, allocations: 0.8103 MB / 3.972 GB, free: 63.18 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007372/8.033, allocations: 6.598 MB / 3.978 GB, free: 60.25 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001001/8.034, allocations: 1.801 MB / 3.98 GB, free: 59.51 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000506/8.034, allocations: 145.5 kB / 3.98 GB, free: 59.5 MB / 0.5417 GB Notification: Performance of SimCode: time 1.032e-06/8.034, allocations: 2.312 kB / 3.98 GB, free: 59.5 MB / 0.5417 GB Notification: Performance of Templates: time 0.07259/8.107, allocations: 48.5 MB / 4.028 GB, free: 56.77 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