Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_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_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_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002091/0.002091, allocations: 198.5 kB / 16.78 MB, free: 4.922 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.597/1.597, allocations: 226.5 MB / 244.1 MB, free: 6.477 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008718/0.000872, allocations: 94.66 kB / 296.1 MB, free: 6.676 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4496/0.4496, allocations: 44.83 MB / 393 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00031/0.00031, allocations: 8 kB / 465.9 MB, free: 12.71 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4426/0.443, allocations: 62.95 MB / 0.5165 GB, free: 37.2 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.77/6.213, allocations: 2.779 GB / 3.296 GB, free: 160.2 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002424/6.213, allocations: 86.36 kB / 3.296 GB, free: 160.2 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 2.029/8.242, allocations: 0.6415 GB / 3.937 GB, free: 47.63 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.304e-06/8.242, allocations: 2.875 kB / 3.937 GB, free: 47.63 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0001025/8.242, allocations: 43.62 kB / 3.937 GB, free: 47.63 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.009896/8.252, allocations: 2.584 MB / 3.94 GB, free: 46.63 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.957e-05/8.252, allocations: 13.88 kB / 3.94 GB, free: 46.63 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0081/8.26, allocations: 0.9499 MB / 3.941 GB, free: 46.55 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002788/8.263, allocations: 1.037 MB / 3.942 GB, free: 46.19 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001745/8.263, allocations: 103.6 kB / 3.942 GB, free: 46.18 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004058/8.263, allocations: 116.2 kB / 3.942 GB, free: 46.18 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0067/8.27, allocations: 2.314 MB / 3.944 GB, free: 45.74 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.4e-05/8.27, allocations: 10.44 kB / 3.944 GB, free: 45.74 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003279/8.271, allocations: 52.22 kB / 3.944 GB, free: 45.74 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.524e-05/8.271, allocations: 34.12 kB / 3.944 GB, free: 45.74 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006677/8.277, allocations: 2.187 MB / 3.946 GB, free: 45.72 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01351/8.291, allocations: 10.01 MB / 3.956 GB, free: 39.14 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005623/8.297, allocations: 1.746 MB / 3.958 GB, free: 39.11 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001478/8.298, allocations: 0.5993 MB / 3.958 GB, free: 39.1 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0536/8.352, allocations: 28.56 MB / 3.986 GB, free: 37.11 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.545e-05/8.352, allocations: 44.22 kB / 3.986 GB, free: 37.07 MB / 0.573 GB Notification: Performance of pre-optimization done (n=88): time 3.587e-06/8.352, allocations: 0 / 3.986 GB, free: 37.07 MB / 0.573 GB Notification: Performance of matching and sorting (n=88): time 0.01006/8.362, allocations: 2.942 MB / 3.989 GB, free: 36.9 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001825/8.362, allocations: 269.5 kB / 3.99 GB, free: 36.59 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001815/8.364, allocations: 1.053 MB / 3.991 GB, free: 36.43 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001834/8.364, allocations: 43.08 kB / 3.991 GB, free: 36.39 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004997/8.365, allocations: 0.6103 MB / 3.991 GB, free: 36.13 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003043/8.365, allocations: 303.2 kB / 3.991 GB, free: 35.95 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.203e-05/8.365, allocations: 22.16 kB / 3.992 GB, free: 35.95 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.000163/8.365, allocations: 350 kB / 3.992 GB, free: 35.64 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001385/8.367, allocations: 0.5019 MB / 3.992 GB, free: 35.62 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001627/8.368, allocations: 0.9125 MB / 3.993 GB, free: 35.13 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002826/8.371, allocations: 1.374 MB / 3.995 GB, free: 34.68 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-05/8.371, allocations: 3.438 kB / 3.995 GB, free: 34.68 MB / 0.573 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.003877/8.375, allocations: 1.543 MB / 3.996 GB, free: 34.53 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002423/8.375, allocations: 432.6 kB / 3.996 GB, free: 34.02 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.844e-05/8.375, allocations: 9.75 kB / 3.996 GB, free: 34.02 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.415e-05/8.375, allocations: 19.16 kB / 3.997 GB, free: 34.02 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001159/8.377, allocations: 354.6 kB / 3.997 GB, free: 34.02 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.215e-05/8.377, allocations: 24.28 kB / 3.997 GB, free: 34.02 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001662/8.378, allocations: 249.7 kB / 3.997 GB, free: 33.92 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001428/8.378, allocations: 71.25 kB / 3.997 GB, free: 33.92 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.117e-05/8.378, allocations: 3.438 kB / 3.997 GB, free: 33.92 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003115/8.382, allocations: 1.382 MB / 3.999 GB, free: 33.88 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.651e-05/8.382, allocations: 13.72 kB / 3.999 GB, free: 33.88 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.368e-05/8.382, allocations: 20.34 kB / 3.999 GB, free: 33.88 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001104/8.383, allocations: 347.6 kB / 3.999 GB, free: 33.87 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.723e-05/8.383, allocations: 28.39 kB / 3.999 GB, free: 33.87 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0015/8.384, allocations: 217.4 kB / 3.999 GB, free: 33.8 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001198/8.384, allocations: 78.55 kB / 3.999 GB, free: 33.8 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.0007944/8.385, allocations: 387.4 kB / 4 GB, free: 33.6 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000384/8.386, allocations: 139.7 kB / 4 GB, free: 33.53 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007926/8.394, allocations: 6.79 MB / 4.006 GB, free: 32.63 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.135e-05/8.394, allocations: 88.78 kB / 4.006 GB, free: 32.63 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.666e-05/8.394, allocations: 0 / 4.006 GB, free: 32.63 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.575e-05/8.394, allocations: 3.703 kB / 4.006 GB, free: 32.63 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004888/8.399, allocations: 3.29 MB / 4.01 GB, free: 32.15 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-05/8.399, allocations: 3.938 kB / 4.01 GB, free: 32.15 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001001/8.4, allocations: 310.9 kB / 4.01 GB, free: 32.14 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-05/8.4, allocations: 7.875 kB / 4.01 GB, free: 32.14 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.339e-05/8.4, allocations: 30.83 kB / 4.01 GB, free: 32.13 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.474e-06/8.4, allocations: 3.719 kB / 4.01 GB, free: 32.13 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/8.4, allocations: 3.125 kB / 4.01 GB, free: 32.13 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004177/8.404, allocations: 3.111 MB / 4.013 GB, free: 31.65 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001394/8.405, allocations: 0.9091 MB / 4.014 GB, free: 31.26 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005026/8.406, allocations: 22.47 kB / 4.014 GB, free: 31.25 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001456/8.407, allocations: 146.8 kB / 4.014 GB, free: 31.24 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002238/8.408, allocations: 107 kB / 4.014 GB, free: 31.23 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.885e-05/8.408, allocations: 44.97 kB / 4.014 GB, free: 31.23 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002402/8.41, allocations: 1.536 MB / 4.016 GB, free: 31.08 MB / 0.573 GB Notification: Performance of sort global known variables: time 3.2e-07/8.41, allocations: 0 / 4.016 GB, free: 31.08 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.007699/8.418, allocations: 1.847 MB / 4.018 GB, free: 30.87 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.009301/8.427, allocations: 1.96 MB / 4.019 GB, free: 30.44 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.005737/8.433, allocations: 2.672 MB / 4.022 GB, free: 30.37 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 9.067e-06/8.433, allocations: 11.84 kB / 4.022 GB, free: 30.36 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.002103/8.435, allocations: 1.534 MB / 4.024 GB, free: 30.34 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005034/8.44, allocations: 0.803 MB / 4.024 GB, free: 30.29 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00879/8.449, allocations: 6.587 MB / 4.031 GB, free: 27.26 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001835/8.451, allocations: 1.808 MB / 4.033 GB, free: 26.47 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006537/8.452, allocations: 144.5 kB / 4.033 GB, free: 26.46 MB / 0.573 GB Notification: Performance of SimCode: time 9.72e-07/8.452, allocations: 0 / 4.033 GB, free: 26.46 MB / 0.573 GB Notification: Performance of Templates: time 0.07157/8.523, allocations: 48.64 MB / 4.08 GB, free: 22.91 MB / 0.573 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches