Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_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_3.2.3_cpp_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.002361/0.002361, allocations: 181.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.986/1.986, allocations: 205.2 MB / 219.4 MB, free: 14.28 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001065/0.001065, allocations: 78.66 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2769/0.2769, allocations: 43.5 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.358e-05/3.361e-05, allocations: 7.984 kB / 425.3 MB, free: 23.35 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1234, allocations: 58.85 MB / 484.1 MB, free: 12.46 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.978/8.101, allocations: 2.773 GB / 3.245 GB, free: 68.62 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002847/8.102, allocations: 86.3 kB / 3.245 GB, free: 68.58 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.298/11.4, allocations: 0.6371 GB / 3.883 GB, free: 22.21 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.294e-06/11.4, allocations: 0 / 3.883 GB, free: 22.21 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.000129/11.4, allocations: 38.97 kB / 3.883 GB, free: 22.17 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.01066/11.41, allocations: 2.437 MB / 3.885 GB, free: 19.71 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.765e-05/11.41, allocations: 12.03 kB / 3.885 GB, free: 19.7 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0111/11.42, allocations: 0.9535 MB / 3.886 GB, free: 18.76 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00312/11.43, allocations: 0.9939 MB / 3.887 GB, free: 17.75 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001556/11.43, allocations: 106.4 kB / 3.887 GB, free: 17.64 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002827/11.43, allocations: 112 kB / 3.887 GB, free: 17.53 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007667/11.43, allocations: 2.263 MB / 3.889 GB, free: 15.12 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.421e-05/11.43, allocations: 11.88 kB / 3.889 GB, free: 15.11 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002614/11.43, allocations: 56 kB / 3.889 GB, free: 15.05 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.244e-05/11.43, allocations: 36 kB / 3.889 GB, free: 15.02 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007434/11.44, allocations: 1.993 MB / 3.891 GB, free: 13.03 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01902/11.46, allocations: 10 MB / 3.901 GB, free: 2.426 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006181/11.47, allocations: 1.577 MB / 3.903 GB, free: 0.8594 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001118/11.47, allocations: 448.4 kB / 3.903 GB, free: 428 kB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.479/11.95, allocations: 26.08 MB / 3.929 GB, free: 44.18 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.427e-05/11.95, allocations: 44.62 kB / 3.929 GB, free: 44.14 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=88): time 4.228e-06/11.95, allocations: 2.719 kB / 3.929 GB, free: 44.14 MB / 0.5261 GB Notification: Performance of matching and sorting (n=88): time 0.01121/11.96, allocations: 2.351 MB / 3.931 GB, free: 44.09 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001034/11.96, allocations: 269 kB / 3.931 GB, free: 43.77 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001986/11.96, allocations: 0.9086 MB / 3.932 GB, free: 43.62 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002547/11.96, allocations: 42.05 kB / 3.932 GB, free: 43.59 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004824/11.96, allocations: 0.5927 MB / 3.933 GB, free: 43.31 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003626/11.96, allocations: 300.5 kB / 3.933 GB, free: 43.16 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.758e-05/11.96, allocations: 22.62 kB / 3.933 GB, free: 43.16 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001163/11.96, allocations: 353.9 kB / 3.933 GB, free: 42.85 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001051/11.96, allocations: 344 kB / 3.934 GB, free: 42.85 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001315/11.96, allocations: 0.744 MB / 3.934 GB, free: 42.38 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001165/11.97, allocations: 427.2 kB / 3.935 GB, free: 42.37 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.328e-05/11.97, allocations: 3.062 kB / 3.935 GB, free: 42.37 MB / 0.5261 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.00342/11.97, allocations: 1.13 MB / 3.936 GB, free: 42.3 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009714/11.97, allocations: 4.448 MB / 3.94 GB, free: 37.68 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.286e-05/11.97, allocations: 11.83 kB / 3.94 GB, free: 37.68 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.46e-05/11.97, allocations: 19.25 kB / 3.94 GB, free: 37.68 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002832/11.97, allocations: 355 kB / 3.941 GB, free: 37.68 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.202e-05/11.97, allocations: 26.25 kB / 3.941 GB, free: 37.68 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002546/11.98, allocations: 252.8 kB / 3.941 GB, free: 37.64 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002089/11.98, allocations: 68.28 kB / 3.941 GB, free: 37.64 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/11.98, allocations: 7.125 kB / 3.941 GB, free: 37.64 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003114/11.98, allocations: 1.055 MB / 3.942 GB, free: 37.61 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.344e-05/11.98, allocations: 12.38 kB / 3.942 GB, free: 37.61 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.73e-05/11.98, allocations: 22.39 kB / 3.942 GB, free: 37.61 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002493/11.98, allocations: 350.5 kB / 3.942 GB, free: 37.61 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.571e-05/11.98, allocations: 27.33 kB / 3.942 GB, free: 37.61 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001823/11.98, allocations: 195.2 kB / 3.943 GB, free: 37.58 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000198/11.98, allocations: 69.56 kB / 3.943 GB, free: 37.58 MB / 0.5261 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.0005102/11.98, allocations: 186.6 kB / 3.943 GB, free: 37.48 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004567/11.98, allocations: 136.2 kB / 3.943 GB, free: 37.41 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01073/12, allocations: 6.481 MB / 3.949 GB, free: 36.68 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001234/12, allocations: 83.58 kB / 3.949 GB, free: 36.68 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.031e-05/12, allocations: 0 / 3.949 GB, free: 36.68 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.842e-05/12, allocations: 6.734 kB / 3.949 GB, free: 36.68 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005954/12, allocations: 3.277 MB / 3.953 GB, free: 36.21 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.674e-05/12, allocations: 4.328 kB / 3.953 GB, free: 36.21 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002166/12, allocations: 310 kB / 3.953 GB, free: 36.21 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.522e-05/12, allocations: 3.5 kB / 3.953 GB, free: 36.21 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.797e-05/12, allocations: 29.08 kB / 3.953 GB, free: 36.21 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.009e-05/12, allocations: 3.938 kB / 3.953 GB, free: 36.21 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/12, allocations: 7.484 kB / 3.953 GB, free: 36.21 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0045/12.01, allocations: 2.786 MB / 3.956 GB, free: 35.74 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0017/12.01, allocations: 0.9038 MB / 3.956 GB, free: 35.36 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004288/12.01, allocations: 25.22 kB / 3.957 GB, free: 35.36 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002031/12.01, allocations: 149.2 kB / 3.957 GB, free: 35.34 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002975/12.01, allocations: 111.4 kB / 3.957 GB, free: 35.34 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001127/12.01, allocations: 41.36 kB / 3.957 GB, free: 35.34 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002885/12.02, allocations: 1.507 MB / 3.958 GB, free: 35.18 MB / 0.5261 GB Notification: Performance of sort global known variables: time 6.32e-07/12.02, allocations: 0 / 3.958 GB, free: 35.18 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.008458/12.02, allocations: 1.829 MB / 3.96 GB, free: 35.09 MB / 0.5261 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.009856/12.03, allocations: 1.952 MB / 3.962 GB, free: 34.89 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.004918/12.04, allocations: 2.177 MB / 3.964 GB, free: 34.85 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.682e-06/12.04, allocations: 1.719 kB / 3.964 GB, free: 34.85 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002099/12.04, allocations: 1.374 MB / 3.965 GB, free: 34.84 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006873/12.05, allocations: 0.7778 MB / 3.966 GB, free: 34.82 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008314/12.06, allocations: 4.17 MB / 3.97 GB, free: 33.85 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001362/12.06, allocations: 1.859 MB / 3.972 GB, free: 33.11 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007539/12.06, allocations: 150.6 kB / 3.972 GB, free: 33.1 MB / 0.5261 GB Notification: Performance of SimCode: time 1.233e-06/12.06, allocations: 0 / 3.972 GB, free: 33.1 MB / 0.5261 GB Notification: Performance of Templates: time 0.1038/12.16, allocations: 50.8 MB / 4.022 GB, free: 29.07 MB / 0.5261 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics_res.mat","/var/lib/jenkins1/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_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches