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.0008852/0.0008852, allocations: 183.8 kB / 13.19 MB, free: 2.129 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.145/1.145, allocations: 205.2 MB / 218.9 MB, free: 9.207 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.0007382/0.0007382, allocations: 86.42 kB / 267 MB, free: 9.273 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.2985/0.2985, allocations: 43.47 MB / 358.6 MB, free: 52.32 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.86e-05/2.863e-05, allocations: 4 kB / 425.3 MB, free: 8.891 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09629/0.09633, allocations: 58.85 MB / 484.2 MB, free: 13.94 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.733/5.829, allocations: 2.773 GB / 3.245 GB, free: 52.6 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002325/5.829, allocations: 87.05 kB / 3.245 GB, free: 52.56 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 2.131/7.961, allocations: 0.6371 GB / 3.883 GB, free: 8.621 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.064e-06/7.961, allocations: 4 kB / 3.883 GB, free: 8.617 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001788/7.961, allocations: 43.84 kB / 3.883 GB, free: 8.578 MB / 0.5261 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.01051/7.971, allocations: 2.435 MB / 3.885 GB, free: 6.121 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 7.008e-05/7.971, allocations: 11.44 kB / 3.885 GB, free: 6.113 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007975/7.979, allocations: 0.9575 MB / 3.886 GB, free: 5.168 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002656/7.982, allocations: 0.9932 MB / 3.887 GB, free: 4.148 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001641/7.982, allocations: 108.4 kB / 3.887 GB, free: 4.043 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003759/7.983, allocations: 115.9 kB / 3.887 GB, free: 3.93 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006309/7.989, allocations: 2.262 MB / 3.889 GB, free: 1.508 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.879e-05/7.989, allocations: 11.94 kB / 3.889 GB, free: 1.496 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002405/7.989, allocations: 56 kB / 3.889 GB, free: 1.441 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.839e-05/7.989, allocations: 36 kB / 3.889 GB, free: 1.406 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3501/8.34, allocations: 1.98 MB / 3.891 GB, free: 42.78 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01325/8.353, allocations: 10 MB / 3.901 GB, free: 36.32 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004362/8.357, allocations: 1.574 MB / 3.903 GB, free: 36.29 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006914/8.358, allocations: 450.3 kB / 3.903 GB, free: 36.27 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04332/8.401, allocations: 26.09 MB / 3.929 GB, free: 21.05 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.117e-05/8.401, allocations: 43.06 kB / 3.929 GB, free: 21.01 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=88): time 2.866e-06/8.401, allocations: 0 / 3.929 GB, free: 21.01 MB / 0.5261 GB Notification: Performance of matching and sorting (n=88): time 0.006735/8.408, allocations: 2.362 MB / 3.931 GB, free: 20.89 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.19e-05/8.408, allocations: 267.1 kB / 3.931 GB, free: 20.57 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001489/8.41, allocations: 0.9025 MB / 3.932 GB, free: 20.42 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001357/8.41, allocations: 47.8 kB / 3.932 GB, free: 20.39 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004497/8.41, allocations: 0.6063 MB / 3.933 GB, free: 20.18 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002844/8.411, allocations: 302 kB / 3.933 GB, free: 20.03 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.402e-05/8.411, allocations: 21.66 kB / 3.933 GB, free: 20.03 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 8.44e-05/8.411, allocations: 348.2 kB / 3.933 GB, free: 19.73 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005605/8.411, allocations: 338 kB / 3.934 GB, free: 19.73 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007642/8.412, allocations: 0.7445 MB / 3.934 GB, free: 19.26 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000688/8.413, allocations: 428.2 kB / 3.935 GB, free: 19.25 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.067e-05/8.413, allocations: 2.281 kB / 3.935 GB, free: 19.25 MB / 0.5261 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002081/8.415, allocations: 1.211 MB / 3.936 GB, free: 19.13 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002332/8.417, allocations: 4.474 MB / 3.94 GB, free: 30.51 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.375e-05/8.417, allocations: 17.95 kB / 3.94 GB, free: 30.5 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.12e-05/8.417, allocations: 21.7 kB / 3.94 GB, free: 30.5 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001145/8.419, allocations: 353.5 kB / 3.941 GB, free: 30.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.139e-05/8.419, allocations: 23.95 kB / 3.941 GB, free: 30.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001554/8.42, allocations: 246.5 kB / 3.941 GB, free: 30.46 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000135/8.42, allocations: 73.8 kB / 3.941 GB, free: 30.46 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.028e-05/8.42, allocations: 2.719 kB / 3.941 GB, free: 30.46 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001619/8.422, allocations: 1.056 MB / 3.942 GB, free: 30.44 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.007e-05/8.422, allocations: 10.94 kB / 3.942 GB, free: 30.44 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.262e-05/8.422, allocations: 19.78 kB / 3.942 GB, free: 30.44 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001073/8.423, allocations: 355.4 kB / 3.942 GB, free: 30.44 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.813e-05/8.423, allocations: 24.41 kB / 3.942 GB, free: 30.44 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001382/8.424, allocations: 233 kB / 3.943 GB, free: 30.4 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001254/8.425, allocations: 65.59 kB / 3.943 GB, free: 30.4 MB / 0.5417 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.0003132/8.425, allocations: 188.5 kB / 3.943 GB, free: 30.29 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002975/8.425, allocations: 137.5 kB / 3.943 GB, free: 30.23 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007178/8.432, allocations: 6.469 MB / 3.949 GB, free: 29.48 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.481e-05/8.432, allocations: 86.62 kB / 3.949 GB, free: 29.48 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.779e-06/8.433, allocations: 3.469 kB / 3.949 GB, free: 29.48 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.536e-05/8.433, allocations: 4.5 kB / 3.949 GB, free: 29.48 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005652/8.438, allocations: 3.281 MB / 3.953 GB, free: 29 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.128e-05/8.438, allocations: 6.031 kB / 3.953 GB, free: 29 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001235/8.439, allocations: 309.7 kB / 3.953 GB, free: 29 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.269e-05/8.44, allocations: 7.266 kB / 3.953 GB, free: 29 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.534e-05/8.44, allocations: 25.41 kB / 3.953 GB, free: 29 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-05/8.44, allocations: 6.547 kB / 3.953 GB, free: 29 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/8.44, allocations: 0 / 3.953 GB, free: 29 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004574/8.444, allocations: 2.793 MB / 3.956 GB, free: 28.54 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001471/8.446, allocations: 0.9001 MB / 3.957 GB, free: 28.15 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005013/8.446, allocations: 22.91 kB / 3.957 GB, free: 28.15 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001523/8.448, allocations: 149 kB / 3.957 GB, free: 28.14 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002065/8.448, allocations: 109.4 kB / 3.957 GB, free: 28.14 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.764e-05/8.448, allocations: 43.67 kB / 3.957 GB, free: 28.14 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002501/8.451, allocations: 1.507 MB / 3.958 GB, free: 27.98 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.8e-07/8.451, allocations: 0 / 3.958 GB, free: 27.98 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.007864/8.458, allocations: 1.822 MB / 3.96 GB, free: 27.89 MB / 0.5417 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.009765/8.468, allocations: 1.949 MB / 3.962 GB, free: 27.59 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.004083/8.472, allocations: 2.226 MB / 3.964 GB, free: 27.54 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.366e-06/8.472, allocations: 0 / 3.964 GB, free: 27.54 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001605/8.474, allocations: 1.372 MB / 3.966 GB, free: 27.53 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004878/8.479, allocations: 0.7978 MB / 3.966 GB, free: 27.48 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006788/8.486, allocations: 4.129 MB / 3.97 GB, free: 26.54 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001432/8.487, allocations: 1.874 MB / 3.972 GB, free: 25.76 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.003296/8.49, allocations: 2.162 MB / 3.974 GB, free: 25.68 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003414/8.491, allocations: 120 kB / 3.974 GB, free: 25.68 MB / 0.5417 GB Notification: Performance of SimCode: time 1.012e-06/8.491, allocations: 0 / 3.974 GB, free: 25.68 MB / 0.5417 GB Notification: Performance of Templates: time 0.09228/8.583, allocations: 66.56 MB / 4.039 GB, free: 21.38 MB / 0.5417 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