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.00113/0.00113, allocations: 170.4 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.481/1.481, allocations: 221.5 MB / 230.7 MB, free: 7.508 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.0009019/0.0009019, allocations: 88.23 kB / 281.6 MB, free: 5.25 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2123/0.2123, allocations: 44.14 MB / 376.5 MB, free: 3.023 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.154e-05/2.155e-05, allocations: 4 kB / 444.6 MB, free: 15.2 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1513/0.1513, allocations: 61.92 MB / 0.4947 GB, free: 1.227 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.044/7.195, allocations: 2.777 GB / 3.272 GB, free: 155.7 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002627/7.195, allocations: 81.41 kB / 3.272 GB, free: 155.7 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.398/9.593, allocations: 0.6384 GB / 3.91 GB, free: 51.08 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.345e-06/9.593, allocations: 2.812 kB / 3.91 GB, free: 51.08 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001834/9.593, allocations: 42.19 kB / 3.91 GB, free: 51.08 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.01084/9.604, allocations: 2.448 MB / 3.913 GB, free: 50.11 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.005e-05/9.604, allocations: 17.33 kB / 3.913 GB, free: 50.1 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008069/9.612, allocations: 0.9521 MB / 3.914 GB, free: 50.02 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002693/9.615, allocations: 1.003 MB / 3.915 GB, free: 49.69 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001429/9.615, allocations: 50.22 kB / 3.915 GB, free: 49.69 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003474/9.615, allocations: 68.59 kB / 3.915 GB, free: 49.69 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002423/9.618, allocations: 1.222 MB / 3.916 GB, free: 49.68 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002565/9.62, allocations: 1.428 MB / 3.917 GB, free: 49.25 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.463e-05/9.62, allocations: 6.25 kB / 3.917 GB, free: 49.25 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002114/9.621, allocations: 10.81 kB / 3.917 GB, free: 49.25 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.514e-05/9.621, allocations: 28.91 kB / 3.917 GB, free: 49.25 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1274/9.748, allocations: 70.55 MB / 3.986 GB, free: 21.29 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001348/9.75, allocations: 0.8017 MB / 3.987 GB, free: 21.26 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005432/9.75, allocations: 397.6 kB / 3.987 GB, free: 21.25 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.9121/10.66, allocations: 277.2 MB / 4.258 GB, free: 25.48 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.974e-05/10.66, allocations: 40.83 kB / 4.258 GB, free: 25.44 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=39): time 3.617e-06/10.66, allocations: 0 / 4.258 GB, free: 25.44 MB / 0.6198 GB Notification: Performance of matching and sorting (n=39): time 0.005723/10.67, allocations: 1.487 MB / 4.26 GB, free: 25.4 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.538e-05/10.67, allocations: 264.6 kB / 4.26 GB, free: 25.09 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001812/10.67, allocations: 0.9501 MB / 4.261 GB, free: 24.95 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0001003/10.67, allocations: 29.36 kB / 4.261 GB, free: 24.91 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005664/10.67, allocations: 0.7742 MB / 4.262 GB, free: 24.59 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001546/10.67, allocations: 147.4 kB / 4.262 GB, free: 24.52 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.722e-05/10.67, allocations: 0 / 4.262 GB, free: 24.52 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 9.451e-05/10.67, allocations: 344.2 kB / 4.262 GB, free: 24.22 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005316/10.67, allocations: 325.4 kB / 4.262 GB, free: 24.22 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007374/10.67, allocations: 0.7212 MB / 4.263 GB, free: 23.74 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002948/10.68, allocations: 0.747 MB / 4.264 GB, free: 23.72 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.284e-05/10.68, allocations: 10.23 kB / 4.264 GB, free: 23.71 MB / 0.6198 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.004583/10.68, allocations: 1.442 MB / 4.265 GB, free: 23.6 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.001037/10.68, allocations: 4.448 MB / 4.27 GB, free: 18.95 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.838e-05/10.68, allocations: 18.34 kB / 4.27 GB, free: 18.94 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.573e-05/10.68, allocations: 19.22 kB / 4.27 GB, free: 18.94 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001242/10.68, allocations: 353.5 kB / 4.27 GB, free: 18.94 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.5e-05/10.68, allocations: 22.22 kB / 4.27 GB, free: 18.94 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002554/10.68, allocations: 358.3 kB / 4.27 GB, free: 18.88 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001484/10.69, allocations: 69.3 kB / 4.27 GB, free: 18.88 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.256e-05/10.69, allocations: 3.781 kB / 4.27 GB, free: 18.88 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003361/10.69, allocations: 1.161 MB / 4.272 GB, free: 18.85 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.382e-05/10.69, allocations: 16.38 kB / 4.272 GB, free: 18.85 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.163e-05/10.69, allocations: 18.06 kB / 4.272 GB, free: 18.85 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001151/10.69, allocations: 350.7 kB / 4.272 GB, free: 18.84 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.818e-05/10.69, allocations: 35.06 kB / 4.272 GB, free: 18.84 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001737/10.69, allocations: 230.9 kB / 4.272 GB, free: 18.8 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001264/10.69, allocations: 69.27 kB / 4.272 GB, free: 18.8 MB / 0.6198 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 (sink2.medium.phase,source2.medium.phase,sink4.medium.phase,source4.medium.phase,sink3.medium.phase,source3.medium.phase,sink1.medium.phase,source1.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.0003372/10.69, allocations: 142.3 kB / 4.272 GB, free: 18.7 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003673/10.69, allocations: 116.2 kB / 4.272 GB, free: 18.64 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001989/10.69, allocations: 1.122 MB / 4.274 GB, free: 18.45 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-06/10.69, allocations: 6.734 kB / 4.274 GB, free: 18.45 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/10.69, allocations: 0 / 4.274 GB, free: 18.45 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/10.69, allocations: 7.062 kB / 4.274 GB, free: 18.45 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003567/10.7, allocations: 2.025 MB / 4.276 GB, free: 17.99 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.453e-06/10.7, allocations: 11.84 kB / 4.276 GB, free: 17.98 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003274/10.7, allocations: 94.98 kB / 4.276 GB, free: 17.98 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.538e-06/10.7, allocations: 3.875 kB / 4.276 GB, free: 17.98 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.715e-05/10.7, allocations: 11 kB / 4.276 GB, free: 17.98 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.166e-06/10.7, allocations: 10.66 kB / 4.276 GB, free: 17.98 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.693e-06/10.7, allocations: 6.906 kB / 4.276 GB, free: 17.98 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001319/10.7, allocations: 0.9557 MB / 4.277 GB, free: 17.3 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007436/10.7, allocations: 455.4 kB / 4.277 GB, free: 17.1 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003674/10.7, allocations: 3.938 kB / 4.277 GB, free: 17.1 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001071/10.7, allocations: 101 kB / 4.277 GB, free: 17.09 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.296e-05/10.7, allocations: 39.66 kB / 4.277 GB, free: 17.09 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.8e-05/10.7, allocations: 23.36 kB / 4.277 GB, free: 17.09 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.001537/10.7, allocations: 1.156 MB / 4.278 GB, free: 16.98 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.71e-07/10.7, allocations: 1.75 kB / 4.278 GB, free: 16.98 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.009734/10.71, allocations: 1.76 MB / 4.28 GB, free: 16.84 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 40 * 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 Backend phase and start with SimCode phase: time 0.01038/10.72, allocations: 2.127 MB / 4.282 GB, free: 16.53 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.00262/10.73, allocations: 1.228 MB / 4.283 GB, free: 16.5 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.056e-05/10.73, allocations: 0 / 4.283 GB, free: 16.5 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0003365/10.73, allocations: 148.9 kB / 4.283 GB, free: 16.5 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003507/10.73, allocations: 426.1 kB / 4.284 GB, free: 16.48 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004804/10.74, allocations: 1.601 MB / 4.285 GB, free: 15.85 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009546/10.74, allocations: 1.253 MB / 4.287 GB, free: 15.12 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.004199/10.74, allocations: 3.026 MB / 4.29 GB, free: 15.05 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003051/10.74, allocations: 99.39 kB / 4.29 GB, free: 15.04 MB / 0.6198 GB Notification: Performance of SimCode: time 2.264e-06/10.74, allocations: 4 kB / 4.29 GB, free: 15.04 MB / 0.6198 GB Notification: Performance of Templates: time 0.5024/11.24, allocations: 42.74 MB / 4.331 GB, free: 128.9 MB / 0.6198 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