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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008921/0.0008921, allocations: 185.2 kB / 7.802 MB, free: 2.496 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.05/1.05, allocations: 205.2 MB / 213.4 MB, free: 13.85 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.0008471/0.0008471, allocations: 91.86 kB / 261.4 MB, free: 13.53 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.1513/0.1513, allocations: 43.49 MB / 352.9 MB, free: 1.941 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.151e-06/6.312e-06, allocations: 0 / 417.7 MB, free: 40.54 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2179/0.2179, allocations: 58.84 MB / 476.6 MB, free: 5.203 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.81/4.028, allocations: 2.772 GB / 3.237 GB, free: 96.1 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001773/4.028, allocations: 84.7 kB / 3.237 GB, free: 96.02 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.681/5.709, allocations: 0.6329 GB / 3.87 GB, free: 29.49 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001467/5.709, allocations: 39.56 kB / 3.87 GB, free: 29.48 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.008599/5.718, allocations: 2.483 MB / 3.873 GB, free: 27.86 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.553e-05/5.718, allocations: 11.94 kB / 3.873 GB, free: 27.86 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00815/5.726, allocations: 1.018 MB / 3.874 GB, free: 27.42 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002314/5.728, allocations: 0.9956 MB / 3.875 GB, free: 26.67 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001158/5.728, allocations: 53.16 kB / 3.875 GB, free: 26.66 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002707/5.729, allocations: 66.09 kB / 3.875 GB, free: 26.66 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002326/5.731, allocations: 1.225 MB / 3.876 GB, free: 26.12 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002185/5.733, allocations: 1.439 MB / 3.877 GB, free: 24.57 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.178e-05/5.733, allocations: 11.73 kB / 3.877 GB, free: 24.57 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001649/5.733, allocations: 4 kB / 3.877 GB, free: 24.56 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.288e-05/5.734, allocations: 32 kB / 3.877 GB, free: 24.53 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2851/6.019, allocations: 69.87 MB / 3.946 GB, free: 77.6 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001039/6.02, allocations: 0.8073 MB / 3.946 GB, free: 77.57 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005073/6.02, allocations: 411.3 kB / 3.947 GB, free: 77.56 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.632/6.652, allocations: 277.5 MB / 4.218 GB, free: 67.36 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.884e-05/6.652, allocations: 38.23 kB / 4.218 GB, free: 67.32 MB / 0.573 GB Notification: Performance of pre-optimization done (n=39): time 2.474e-06/6.652, allocations: 0 / 4.218 GB, free: 67.32 MB / 0.573 GB Notification: Performance of matching and sorting (n=39): time 0.004632/6.657, allocations: 1.393 MB / 4.219 GB, free: 67.28 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.755e-05/6.657, allocations: 266.8 kB / 4.219 GB, free: 66.96 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001478/6.659, allocations: 1.05 MB / 4.22 GB, free: 66.82 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 7.34e-05/6.659, allocations: 28.2 kB / 4.221 GB, free: 66.79 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003382/6.659, allocations: 0.6491 MB / 4.221 GB, free: 66.46 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001113/6.659, allocations: 137 kB / 4.221 GB, free: 66.39 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.519e-05/6.659, allocations: 0 / 4.221 GB, free: 66.39 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 7.085e-05/6.659, allocations: 349.2 kB / 4.222 GB, free: 66.09 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005745/6.66, allocations: 401.5 kB / 4.222 GB, free: 66.09 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007144/6.661, allocations: 0.7923 MB / 4.223 GB, free: 65.6 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003191/6.664, allocations: 0.8477 MB / 4.224 GB, free: 65.58 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.356e-06/6.664, allocations: 2.906 kB / 4.224 GB, free: 65.58 MB / 0.573 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.0078/6.672, allocations: 2.761 MB / 4.226 GB, free: 65.47 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007037/6.672, allocations: 4.439 MB / 4.231 GB, free: 60.81 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.254e-05/6.672, allocations: 13.34 kB / 4.231 GB, free: 60.81 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.421e-05/6.672, allocations: 21.03 kB / 4.231 GB, free: 60.81 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001201/6.674, allocations: 368.8 kB / 4.231 GB, free: 60.8 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.267e-05/6.674, allocations: 28.41 kB / 4.231 GB, free: 60.8 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002159/6.676, allocations: 369.1 kB / 4.231 GB, free: 60.73 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001311/6.676, allocations: 81 kB / 4.231 GB, free: 60.73 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 7.053e-06/6.676, allocations: 4.766 kB / 4.231 GB, free: 60.73 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003591/6.68, allocations: 1.342 MB / 4.233 GB, free: 60.71 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.557e-05/6.68, allocations: 15.34 kB / 4.233 GB, free: 60.71 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.74e-05/6.68, allocations: 18.97 kB / 4.233 GB, free: 60.71 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0011/6.681, allocations: 366.6 kB / 4.233 GB, free: 60.7 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.903e-05/6.681, allocations: 25.31 kB / 4.233 GB, free: 60.7 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001516/6.682, allocations: 246.8 kB / 4.233 GB, free: 60.66 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000126/6.682, allocations: 72.39 kB / 4.233 GB, free: 60.66 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 (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.0002341/6.683, allocations: 162.5 kB / 4.234 GB, free: 60.54 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001982/6.685, allocations: 0.7087 MB / 4.234 GB, free: 60.49 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00168/6.686, allocations: 1.023 MB / 4.235 GB, free: 60.3 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.72e-06/6.686, allocations: 2.688 kB / 4.235 GB, free: 60.3 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/6.686, allocations: 0 / 4.235 GB, free: 60.3 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/6.686, allocations: 3.141 kB / 4.235 GB, free: 60.3 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002945/6.689, allocations: 2.154 MB / 4.237 GB, free: 59.85 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/6.689, allocations: 3.75 kB / 4.237 GB, free: 59.85 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003225/6.69, allocations: 97.59 kB / 4.238 GB, free: 59.85 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.647e-06/6.69, allocations: 7.625 kB / 4.238 GB, free: 59.85 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.501e-05/6.69, allocations: 9.719 kB / 4.238 GB, free: 59.85 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.61e-06/6.69, allocations: 7.219 kB / 4.238 GB, free: 59.85 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.63e-06/6.69, allocations: 5.5 kB / 4.238 GB, free: 59.85 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002822/6.693, allocations: 1.587 MB / 4.239 GB, free: 59.13 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008207/6.693, allocations: 0.5602 MB / 4.24 GB, free: 58.96 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004113/6.694, allocations: 15.23 kB / 4.24 GB, free: 58.95 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001065/6.695, allocations: 105.5 kB / 4.24 GB, free: 58.94 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.127e-05/6.695, allocations: 32.52 kB / 4.24 GB, free: 58.94 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.286e-05/6.695, allocations: 23.73 kB / 4.24 GB, free: 58.94 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.001384/6.696, allocations: 1.249 MB / 4.241 GB, free: 58.83 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.006808/6.703, allocations: 1.829 MB / 4.243 GB, free: 58.73 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * 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.008807/6.712, allocations: 2.19 MB / 4.245 GB, free: 58.39 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.002102/6.714, allocations: 1.392 MB / 4.246 GB, free: 58.37 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/6.714, allocations: 3.844 kB / 4.246 GB, free: 58.37 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0002309/6.714, allocations: 155.2 kB / 4.247 GB, free: 58.37 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002172/6.717, allocations: 421.4 kB / 4.247 GB, free: 58.34 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003264/6.72, allocations: 1.681 MB / 4.249 GB, free: 57.7 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009642/6.721, allocations: 1.405 MB / 4.25 GB, free: 56.96 MB / 0.573 GB Notification: Performance of SimCode: time 5.11e-07/6.721, allocations: 3.75 kB / 4.25 GB, free: 56.96 MB / 0.573 GB Notification: Performance of Templates: time 0.06537/6.786, allocations: 54.19 MB / 4.303 GB, free: 43.74 MB / 0.573 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