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.001113/0.001113, allocations: 197.1 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.279/1.279, allocations: 225.4 MB / 240.1 MB, free: 15.03 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009457/0.0009458, allocations: 90.47 kB / 292.1 MB, free: 5.953 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1803/0.1803, allocations: 45.15 MB / 389.3 MB, free: 11.85 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.14e-05/3.143e-05, allocations: 4 kB / 460.4 MB, free: 70 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09769/0.09774, allocations: 63.25 MB / 0.5114 GB, free: 6.77 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.159/5.257, allocations: 2.779 GB / 3.29 GB, free: 6.871 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001896/5.257, allocations: 81.95 kB / 3.29 GB, free: 6.828 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.922/7.179, allocations: 0.6443 GB / 3.935 GB, free: 9.469 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.553e-06/7.179, allocations: 0 / 3.935 GB, free: 9.469 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.000131/7.179, allocations: 42.09 kB / 3.935 GB, free: 9.434 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.00865/7.188, allocations: 2.451 MB / 3.937 GB, free: 6.961 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/7.188, allocations: 8.031 kB / 3.937 GB, free: 6.953 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009398/7.197, allocations: 0.9568 MB / 3.938 GB, free: 6.008 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002572/7.2, allocations: 0.9994 MB / 3.939 GB, free: 4.984 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001313/7.2, allocations: 106.4 kB / 3.939 GB, free: 4.879 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000215/7.2, allocations: 112 kB / 3.939 GB, free: 4.77 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00603/7.206, allocations: 2.261 MB / 3.941 GB, free: 2.359 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.979e-05/7.206, allocations: 7.938 kB / 3.941 GB, free: 2.352 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001392/7.207, allocations: 56 kB / 3.941 GB, free: 2.297 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.278e-05/7.207, allocations: 32 kB / 3.942 GB, free: 2.266 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004458/7.211, allocations: 1.984 MB / 3.943 GB, free: 288 kB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3062/7.517, allocations: 10 MB / 3.953 GB, free: 42.72 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003675/7.521, allocations: 1.572 MB / 3.955 GB, free: 42.68 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005507/7.521, allocations: 449.5 kB / 3.955 GB, free: 42.68 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04806/7.57, allocations: 28.64 MB / 3.983 GB, free: 24.82 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.728e-05/7.57, allocations: 51.48 kB / 3.983 GB, free: 24.79 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=88): time 2.695e-06/7.57, allocations: 0 / 3.983 GB, free: 24.79 MB / 0.5573 GB Notification: Performance of matching and sorting (n=88): time 0.006534/7.576, allocations: 2.35 MB / 3.986 GB, free: 24.67 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.003e-05/7.576, allocations: 270.9 kB / 3.986 GB, free: 24.36 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002199/7.578, allocations: 0.9122 MB / 3.987 GB, free: 40.2 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 8.909e-05/7.579, allocations: 39.61 kB / 3.987 GB, free: 40.17 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.000361/7.579, allocations: 0.6106 MB / 3.987 GB, free: 39.96 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001867/7.579, allocations: 299.7 kB / 3.988 GB, free: 39.81 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.887e-05/7.579, allocations: 20.66 kB / 3.988 GB, free: 39.81 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001198/7.579, allocations: 347.8 kB / 3.988 GB, free: 39.51 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004861/7.58, allocations: 347.4 kB / 3.988 GB, free: 39.51 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006111/7.58, allocations: 0.7366 MB / 3.989 GB, free: 39.04 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005629/7.581, allocations: 434.4 kB / 3.989 GB, free: 39.03 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.212e-06/7.581, allocations: 3.656 kB / 3.989 GB, free: 39.03 MB / 0.573 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.001696/7.583, allocations: 1.212 MB / 3.991 GB, free: 38.91 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001439/7.584, allocations: 4.468 MB / 3.995 GB, free: 34.29 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.426e-05/7.584, allocations: 15.06 kB / 3.995 GB, free: 34.29 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.804e-05/7.584, allocations: 21.95 kB / 3.995 GB, free: 34.28 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001127/7.585, allocations: 356.4 kB / 3.995 GB, free: 34.28 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.041e-05/7.585, allocations: 23.66 kB / 3.995 GB, free: 34.28 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001297/7.587, allocations: 249.2 kB / 3.996 GB, free: 34.24 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001007/7.587, allocations: 66.83 kB / 3.996 GB, free: 34.24 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 7.965e-06/7.587, allocations: 3.906 kB / 3.996 GB, free: 34.24 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001464/7.588, allocations: 1.064 MB / 3.997 GB, free: 34.22 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/7.588, allocations: 11.12 kB / 3.997 GB, free: 34.22 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/7.588, allocations: 18.81 kB / 3.997 GB, free: 34.22 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001052/7.589, allocations: 352.1 kB / 3.997 GB, free: 34.22 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.631e-05/7.589, allocations: 24.69 kB / 3.997 GB, free: 34.22 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001131/7.591, allocations: 222 kB / 3.997 GB, free: 34.19 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.029e-05/7.591, allocations: 70.97 kB / 3.997 GB, free: 34.19 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 () * 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.000274/7.591, allocations: 187.8 kB / 3.998 GB, free: 34.08 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001966/7.591, allocations: 143.1 kB / 3.998 GB, free: 34.01 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004861/7.596, allocations: 6.466 MB / 4.004 GB, free: 33.29 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.199e-05/7.596, allocations: 87.8 kB / 4.004 GB, free: 33.29 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.655e-06/7.596, allocations: 4.391 kB / 4.004 GB, free: 33.29 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.185e-05/7.596, allocations: 7.172 kB / 4.004 GB, free: 33.29 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00291/7.599, allocations: 3.284 MB / 4.007 GB, free: 32.82 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.051e-06/7.599, allocations: 0 / 4.007 GB, free: 32.82 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009965/7.6, allocations: 308.5 kB / 4.008 GB, free: 32.82 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.035e-05/7.6, allocations: 3.781 kB / 4.008 GB, free: 32.82 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.924e-05/7.6, allocations: 36.23 kB / 4.008 GB, free: 32.82 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.25e-06/7.6, allocations: 3.906 kB / 4.008 GB, free: 32.82 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/7.6, allocations: 0 / 4.008 GB, free: 32.82 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002518/7.603, allocations: 2.785 MB / 4.01 GB, free: 32.35 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009986/7.604, allocations: 0.905 MB / 4.011 GB, free: 31.96 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002193/7.604, allocations: 28.06 kB / 4.011 GB, free: 31.96 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001037/7.605, allocations: 139.4 kB / 4.011 GB, free: 31.95 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001741/7.605, allocations: 118 kB / 4.011 GB, free: 31.95 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.236e-05/7.605, allocations: 37.59 kB / 4.012 GB, free: 31.95 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.001619/7.607, allocations: 1.508 MB / 4.013 GB, free: 31.79 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.7e-07/7.607, allocations: 1.125 kB / 4.013 GB, free: 31.79 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.006178/7.613, allocations: 1.841 MB / 4.015 GB, free: 31.7 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 () * 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.00758/7.621, allocations: 1.966 MB / 4.017 GB, free: 31.5 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.003029/7.624, allocations: 2.225 MB / 4.019 GB, free: 31.45 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 5.59e-06/7.624, allocations: 256 / 4.019 GB, free: 31.45 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.001164/7.625, allocations: 1.381 MB / 4.02 GB, free: 31.43 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004032/7.629, allocations: 0.7873 MB / 4.021 GB, free: 31.38 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005121/7.634, allocations: 4.128 MB / 4.025 GB, free: 30.43 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001045/7.635, allocations: 1.866 MB / 4.027 GB, free: 29.65 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.002911/7.638, allocations: 2.176 MB / 4.029 GB, free: 29.58 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002848/7.638, allocations: 125.1 kB / 4.029 GB, free: 29.57 MB / 0.573 GB Notification: Performance of SimCode: time 2.896e-06/7.638, allocations: 0 / 4.029 GB, free: 29.57 MB / 0.573 GB Notification: Performance of Templates: time 0.08164/7.72, allocations: 66.63 MB / 4.094 GB, free: 25.68 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