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.001164/0.001165, allocations: 180.5 kB / 14.15 MB, free: 1.176 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.372/1.372, allocations: 221.3 MB / 236 MB, free: 2.977 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009212/0.0009217, allocations: 91.81 kB / 287 MB, free: 256 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2034/0.2034, allocations: 44.15 MB / 382 MB, free: 14.69 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.865e-05/2.869e-05, allocations: 0 / 451.8 MB, free: 9.438 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1248/0.1248, allocations: 61.91 MB / 0.5017 GB, free: 11.46 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.268/6.393, allocations: 2.778 GB / 3.28 GB, free: 91.64 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002855/6.393, allocations: 88.09 kB / 3.28 GB, free: 91.61 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.316/8.709, allocations: 0.6443 GB / 3.924 GB, free: 47.7 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.643e-06/8.709, allocations: 0 / 3.924 GB, free: 47.7 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 9.658e-05/8.709, allocations: 46.28 kB / 3.924 GB, free: 47.69 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.0087/8.718, allocations: 2.445 MB / 3.926 GB, free: 46.37 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.746e-05/8.718, allocations: 7.812 kB / 3.926 GB, free: 46.37 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007758/8.726, allocations: 0.9627 MB / 3.927 GB, free: 46.22 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002464/8.728, allocations: 0.9966 MB / 3.928 GB, free: 45.64 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001097/8.728, allocations: 112.1 kB / 3.928 GB, free: 45.58 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001727/8.729, allocations: 111.1 kB / 3.928 GB, free: 45.55 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004775/8.733, allocations: 2.262 MB / 3.931 GB, free: 44.53 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.972e-05/8.733, allocations: 7.688 kB / 3.931 GB, free: 44.52 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001423/8.734, allocations: 60 kB / 3.931 GB, free: 44.48 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.914e-05/8.734, allocations: 30.75 kB / 3.931 GB, free: 44.48 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004294/8.738, allocations: 1.982 MB / 3.933 GB, free: 43.91 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01125/8.749, allocations: 10.01 MB / 3.942 GB, free: 36.16 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003679/8.753, allocations: 1.577 MB / 3.944 GB, free: 35.72 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005832/8.754, allocations: 448.5 kB / 3.944 GB, free: 35.54 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04396/8.798, allocations: 26.08 MB / 3.97 GB, free: 18.87 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.296e-05/8.798, allocations: 47.22 kB / 3.97 GB, free: 18.82 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=88): time 2.514e-06/8.798, allocations: 7.938 kB / 3.97 GB, free: 18.81 MB / 0.5417 GB Notification: Performance of matching and sorting (n=88): time 0.0064/8.804, allocations: 2.357 MB / 3.972 GB, free: 18.14 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.728e-05/8.804, allocations: 265.8 kB / 3.972 GB, free: 17.82 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001139/8.805, allocations: 0.9068 MB / 3.973 GB, free: 16.98 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 9.117e-05/8.805, allocations: 45.7 kB / 3.973 GB, free: 16.93 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003325/8.806, allocations: 0.6056 MB / 3.974 GB, free: 16.37 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002064/8.806, allocations: 295 kB / 3.974 GB, free: 16.11 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.252e-05/8.806, allocations: 28 kB / 3.974 GB, free: 16.08 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 8.157e-05/8.806, allocations: 342.7 kB / 3.975 GB, free: 15.75 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004927/8.807, allocations: 345.6 kB / 3.975 GB, free: 15.43 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006818/8.807, allocations: 0.7428 MB / 3.976 GB, free: 14.55 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006491/8.808, allocations: 429.4 kB / 3.976 GB, free: 14.18 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.358e-06/8.808, allocations: 4 kB / 3.976 GB, free: 14.18 MB / 0.5417 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.001966/8.81, allocations: 1.212 MB / 3.977 GB, free: 13.05 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009033/8.811, allocations: 4.468 MB / 3.982 GB, free: 8.281 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.452e-05/8.811, allocations: 12 kB / 3.982 GB, free: 8.27 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.331e-05/8.811, allocations: 19.94 kB / 3.982 GB, free: 8.25 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00119/8.812, allocations: 359.7 kB / 3.982 GB, free: 7.957 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.493e-05/8.812, allocations: 35.89 kB / 3.982 GB, free: 7.922 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001532/8.814, allocations: 246.3 kB / 3.982 GB, free: 7.711 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001303/8.814, allocations: 67.5 kB / 3.982 GB, free: 7.652 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.153e-05/8.814, allocations: 7.938 kB / 3.982 GB, free: 7.645 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001615/8.816, allocations: 1.054 MB / 3.983 GB, free: 6.684 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.874e-05/8.816, allocations: 12 kB / 3.983 GB, free: 6.672 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.758e-05/8.816, allocations: 16.88 kB / 3.983 GB, free: 6.656 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001093/8.817, allocations: 356.2 kB / 3.984 GB, free: 6.359 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.377e-05/8.817, allocations: 23.64 kB / 3.984 GB, free: 6.34 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001403/8.818, allocations: 229.2 kB / 3.984 GB, free: 6.145 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001202/8.818, allocations: 59.89 kB / 3.984 GB, free: 6.09 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 () * 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.0003119/8.819, allocations: 194.1 kB / 3.984 GB, free: 5.898 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000307/8.819, allocations: 150.3 kB / 3.984 GB, free: 5.75 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005984/8.825, allocations: 6.46 MB / 3.991 GB, free: 15.31 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.075e-05/8.825, allocations: 87.84 kB / 3.991 GB, free: 15.22 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.22e-05/8.825, allocations: 0 / 3.991 GB, free: 15.22 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.675e-05/8.825, allocations: 3.984 kB / 3.991 GB, free: 15.22 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005012/8.83, allocations: 3.287 MB / 3.994 GB, free: 11.9 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.076e-05/8.83, allocations: 0 / 3.994 GB, free: 11.9 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001181/8.831, allocations: 307.6 kB / 3.994 GB, free: 11.6 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.083e-05/8.831, allocations: 8 kB / 3.994 GB, free: 11.59 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.76e-05/8.831, allocations: 28 kB / 3.994 GB, free: 11.57 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.656e-06/8.831, allocations: 7.938 kB / 3.994 GB, free: 11.56 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/8.831, allocations: 0 / 3.994 GB, free: 11.56 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004226/8.836, allocations: 2.788 MB / 3.997 GB, free: 8.75 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001848/8.838, allocations: 0.9006 MB / 3.998 GB, free: 7.824 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005914/8.838, allocations: 23.95 kB / 3.998 GB, free: 7.801 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00168/8.84, allocations: 143.7 kB / 3.998 GB, free: 7.66 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002621/8.84, allocations: 112.4 kB / 3.998 GB, free: 7.551 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001455/8.84, allocations: 47.97 kB / 3.998 GB, free: 7.504 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.003207/8.844, allocations: 1.509 MB / 4 GB, free: 5.98 MB / 0.5573 GB Notification: Performance of sort global known variables: time 3.41e-07/8.844, allocations: 0 / 4 GB, free: 5.98 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.009805/8.853, allocations: 1.83 MB / 4.002 GB, free: 4.148 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 () * 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.01044/8.864, allocations: 1.951 MB / 4.003 GB, free: 2.488 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.004634/8.869, allocations: 2.221 MB / 4.006 GB, free: 272 kB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.27e-05/8.869, allocations: 7.938 kB / 4.006 GB, free: 264 kB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.3885/9.257, allocations: 1.37 MB / 4.007 GB, free: 65.19 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004652/9.262, allocations: 0.7776 MB / 4.008 GB, free: 65.18 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006379/9.268, allocations: 4.126 MB / 4.012 GB, free: 64.26 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001535/9.27, allocations: 1.869 MB / 4.014 GB, free: 63.51 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.004181/9.274, allocations: 2.175 MB / 4.016 GB, free: 63.49 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003171/9.274, allocations: 124.1 kB / 4.016 GB, free: 63.48 MB / 0.5573 GB Notification: Performance of SimCode: time 1.042e-06/9.274, allocations: 1.969 kB / 4.016 GB, free: 63.48 MB / 0.5573 GB Notification: Performance of Templates: time 0.09462/9.369, allocations: 66.57 MB / 4.081 GB, free: 60.83 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