Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_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_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.0009548/0.0009547, allocations: 180.9 kB / 8.006 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.525/1.525, allocations: 205.3 MB / 213.7 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009319/0.0009319, allocations: 86.58 kB / 261.7 MB, free: 1.688 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.2219/0.2219, allocations: 43.49 MB / 353.2 MB, free: 292 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.803e-05/1.786e-05, allocations: 4 kB / 418.3 MB, free: 28.53 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1388/0.1388, allocations: 58.86 MB / 477.1 MB, free: 1.625 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.109/6.248, allocations: 2.772 GB / 3.238 GB, free: 159.2 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002119/6.248, allocations: 84.67 kB / 3.238 GB, free: 159.2 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 1.989/8.237, allocations: 0.6312 GB / 3.869 GB, free: 43.87 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.264e-06/8.237, allocations: 0 / 3.869 GB, free: 43.87 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001631/8.237, allocations: 49.09 kB / 3.869 GB, free: 43.86 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.01018/8.247, allocations: 2.45 MB / 3.872 GB, free: 42.75 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/8.247, allocations: 7.594 kB / 3.872 GB, free: 42.75 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00823/8.256, allocations: 0.9542 MB / 3.873 GB, free: 42.67 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002883/8.259, allocations: 0.9885 MB / 3.874 GB, free: 42.35 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001514/8.259, allocations: 52.25 kB / 3.874 GB, free: 42.35 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003519/8.259, allocations: 69.16 kB / 3.874 GB, free: 42.35 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002624/8.262, allocations: 1.22 MB / 3.875 GB, free: 42.34 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002585/8.264, allocations: 1.428 MB / 3.876 GB, free: 41.9 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.741e-05/8.264, allocations: 10.5 kB / 3.876 GB, free: 41.9 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001883/8.265, allocations: 7.156 kB / 3.876 GB, free: 41.9 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.565e-05/8.265, allocations: 33 kB / 3.876 GB, free: 41.9 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.125/8.39, allocations: 70.54 MB / 3.945 GB, free: 29.65 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00105/8.391, allocations: 0.7984 MB / 3.946 GB, free: 29.62 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004825/8.391, allocations: 401.4 kB / 3.946 GB, free: 29.61 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.8243/9.216, allocations: 277.1 MB / 4.217 GB, free: 1.465 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.08e-05/9.216, allocations: 43.69 kB / 4.217 GB, free: 1.422 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=39): time 5.07e-06/9.216, allocations: 0 / 4.217 GB, free: 1.422 MB / 0.6198 GB Notification: Performance of matching and sorting (n=39): time 0.005059/9.221, allocations: 1.498 MB / 4.218 GB, free: 0.6172 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001187/9.221, allocations: 264.9 kB / 4.219 GB, free: 308 kB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3441/9.565, allocations: 0.9791 MB / 4.22 GB, free: 157.4 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0001913/9.565, allocations: 28.27 kB / 4.22 GB, free: 157.3 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005174/9.566, allocations: 0.7757 MB / 4.22 GB, free: 157.1 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001289/9.566, allocations: 138.8 kB / 4.221 GB, free: 157 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.674e-05/9.566, allocations: 0 / 4.221 GB, free: 157 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 9.217e-05/9.566, allocations: 351.4 kB / 4.221 GB, free: 156.7 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004784/9.567, allocations: 326.7 kB / 4.221 GB, free: 156.7 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007169/9.567, allocations: 0.7152 MB / 4.222 GB, free: 156.2 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003103/9.57, allocations: 0.7472 MB / 4.223 GB, free: 156.2 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.178e-06/9.57, allocations: 2.75 kB / 4.223 GB, free: 156.2 MB / 0.6198 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.004503/9.575, allocations: 1.446 MB / 4.224 GB, free: 156.1 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009718/9.576, allocations: 4.446 MB / 4.228 GB, free: 151.5 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.755e-05/9.576, allocations: 13.44 kB / 4.228 GB, free: 151.5 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.807e-05/9.576, allocations: 20.22 kB / 4.228 GB, free: 151.5 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001277/9.577, allocations: 358.4 kB / 4.229 GB, free: 151.5 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.422e-05/9.577, allocations: 30.44 kB / 4.229 GB, free: 151.5 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002269/9.58, allocations: 347.1 kB / 4.229 GB, free: 151.5 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001366/9.58, allocations: 68 kB / 4.229 GB, free: 151.5 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.2e-05/9.58, allocations: 3.531 kB / 4.229 GB, free: 151.5 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003153/9.583, allocations: 1.172 MB / 4.23 GB, free: 151.5 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.443e-05/9.583, allocations: 15.98 kB / 4.23 GB, free: 151.5 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.921e-05/9.583, allocations: 18.38 kB / 4.23 GB, free: 151.5 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001198/9.584, allocations: 354.3 kB / 4.231 GB, free: 151.5 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.041e-05/9.584, allocations: 23.12 kB / 4.231 GB, free: 151.5 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001551/9.586, allocations: 237.8 kB / 4.231 GB, free: 151.4 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001253/9.586, allocations: 68.55 kB / 4.231 GB, free: 151.4 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.0002924/9.586, allocations: 149.6 kB / 4.231 GB, free: 151.3 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002636/9.587, allocations: 110.8 kB / 4.231 GB, free: 151.3 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002108/9.589, allocations: 1.121 MB / 4.232 GB, free: 151.1 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.786e-06/9.589, allocations: 6 kB / 4.232 GB, free: 151.1 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.004e-06/9.589, allocations: 0.6875 kB / 4.232 GB, free: 151.1 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.324e-06/9.589, allocations: 2.719 kB / 4.232 GB, free: 151.1 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003137/9.592, allocations: 2.032 MB / 4.234 GB, free: 150.7 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.546e-06/9.592, allocations: 8.812 kB / 4.234 GB, free: 150.7 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000325/9.592, allocations: 90.97 kB / 4.234 GB, free: 150.7 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.028e-05/9.592, allocations: 9.375 kB / 4.234 GB, free: 150.7 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.9e-05/9.592, allocations: 20.92 kB / 4.234 GB, free: 150.7 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.815e-06/9.592, allocations: 7.938 kB / 4.234 GB, free: 150.7 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.572e-06/9.592, allocations: 3.906 kB / 4.235 GB, free: 150.7 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001245/9.594, allocations: 0.9483 MB / 4.235 GB, free: 150 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006842/9.594, allocations: 456.8 kB / 4.236 GB, free: 149.8 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002133/9.594, allocations: 7.203 kB / 4.236 GB, free: 149.8 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009066/9.595, allocations: 97.05 kB / 4.236 GB, free: 149.8 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.144e-05/9.595, allocations: 42.05 kB / 4.236 GB, free: 149.8 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.613e-05/9.596, allocations: 23.53 kB / 4.236 GB, free: 149.8 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.001797/9.597, allocations: 1.153 MB / 4.237 GB, free: 149.7 MB / 0.6198 GB Notification: Performance of sort global known variables: time 2.1e-07/9.597, allocations: 0 / 4.237 GB, free: 149.7 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.007531/9.605, allocations: 1.76 MB / 4.239 GB, free: 149.6 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.008289/9.613, allocations: 2.133 MB / 4.241 GB, free: 149.4 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.002427/9.616, allocations: 1.218 MB / 4.242 GB, free: 149.4 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.169e-05/9.616, allocations: 3.781 kB / 4.242 GB, free: 149.4 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002417/9.616, allocations: 157.3 kB / 4.242 GB, free: 149.4 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002632/9.619, allocations: 419.5 kB / 4.243 GB, free: 149.3 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003067/9.622, allocations: 1.592 MB / 4.244 GB, free: 148.7 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006805/9.622, allocations: 1.257 MB / 4.245 GB, free: 148 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.003844/9.626, allocations: 3.026 MB / 4.248 GB, free: 148 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00021/9.626, allocations: 95.25 kB / 4.249 GB, free: 148 MB / 0.6198 GB Notification: Performance of SimCode: time 6.51e-07/9.626, allocations: 0 / 4.249 GB, free: 148 MB / 0.6198 GB Notification: Performance of Templates: time 0.05846/9.685, allocations: 42.58 MB / 4.29 GB, free: 145.7 MB / 0.6198 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics_res.mat","/var/lib/jenkins/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_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches