Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/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") [: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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001618/0.001618, allocations: 174.4 kB / 8.145 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.664/1.664, allocations: 205.2 MB / 213.8 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001255/0.001254, allocations: 91.53 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2578/0.2578, allocations: 43.49 MB / 353.2 MB, free: 2.035 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.025e-06/8.185e-06, allocations: 0 / 417.7 MB, free: 40.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2813/0.2814, allocations: 58.84 MB / 476.5 MB, free: 5.09 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.759/6.04, allocations: 2.772 GB / 3.237 GB, free: 11.04 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002912/6.04, allocations: 87.5 kB / 3.237 GB, free: 10.99 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.048/9.089, allocations: 0.6329 GB / 3.87 GB, free: 39.22 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001244/9.089, allocations: 43.44 kB / 3.87 GB, free: 39.21 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.01119/9.1, allocations: 2.484 MB / 3.873 GB, free: 38.15 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.58e-05/9.1, allocations: 7.281 kB / 3.873 GB, free: 38.15 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01246/9.113, allocations: 1.017 MB / 3.874 GB, free: 38.07 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003313/9.116, allocations: 1.003 MB / 3.875 GB, free: 37.75 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001309/9.116, allocations: 52.88 kB / 3.875 GB, free: 37.75 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002249/9.116, allocations: 66.78 kB / 3.875 GB, free: 37.75 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003516/9.12, allocations: 1.22 MB / 3.876 GB, free: 37.74 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003324/9.123, allocations: 1.441 MB / 3.877 GB, free: 37.3 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.579e-05/9.123, allocations: 7.844 kB / 3.877 GB, free: 37.3 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002056/9.123, allocations: 3.469 kB / 3.877 GB, free: 37.3 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.257e-05/9.124, allocations: 32.56 kB / 3.877 GB, free: 37.3 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2272/9.351, allocations: 69.89 MB / 3.946 GB, free: 25.12 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001983/9.353, allocations: 0.804 MB / 3.946 GB, free: 25.08 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009817/9.354, allocations: 405.5 kB / 3.947 GB, free: 25.07 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 1.161/10.51, allocations: 277.5 MB / 4.218 GB, free: 44.27 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.32e-05/10.51, allocations: 42.77 kB / 4.218 GB, free: 44.23 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=39): time 3.988e-06/10.51, allocations: 3.938 kB / 4.218 GB, free: 44.23 MB / 0.5886 GB Notification: Performance of matching and sorting (n=39): time 0.007337/10.52, allocations: 1.395 MB / 4.219 GB, free: 44.19 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.015e-05/10.52, allocations: 264.6 kB / 4.219 GB, free: 43.88 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002065/10.52, allocations: 1.041 MB / 4.22 GB, free: 43.74 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 8.364e-05/10.52, allocations: 25.7 kB / 4.22 GB, free: 43.71 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003533/10.52, allocations: 0.6512 MB / 4.221 GB, free: 43.35 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.000134/10.52, allocations: 139.8 kB / 4.221 GB, free: 43.29 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.87e-05/10.52, allocations: 4 kB / 4.221 GB, free: 43.28 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 9.954e-05/10.52, allocations: 355.2 kB / 4.222 GB, free: 42.97 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001099/10.53, allocations: 400.7 kB / 4.222 GB, free: 42.96 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001303/10.53, allocations: 0.7896 MB / 4.223 GB, free: 42.48 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005446/10.53, allocations: 0.8408 MB / 4.224 GB, free: 42.47 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.097e-06/10.53, allocations: 9.188 kB / 4.224 GB, free: 42.46 MB / 0.5886 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.01298/10.55, allocations: 2.709 MB / 4.226 GB, free: 42.39 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009111/10.55, allocations: 4.44 MB / 4.231 GB, free: 37.73 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.423e-05/10.55, allocations: 10.88 kB / 4.231 GB, free: 37.73 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.254e-05/10.55, allocations: 17.84 kB / 4.231 GB, free: 37.73 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002658/10.55, allocations: 376.9 kB / 4.231 GB, free: 37.72 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.604e-05/10.55, allocations: 31.38 kB / 4.231 GB, free: 37.72 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002454/10.55, allocations: 255.3 kB / 4.231 GB, free: 37.68 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001895/10.55, allocations: 68.75 kB / 4.231 GB, free: 37.68 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.081e-05/10.55, allocations: 3.531 kB / 4.231 GB, free: 37.68 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006597/10.56, allocations: 1.34 MB / 4.233 GB, free: 37.66 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.264e-05/10.56, allocations: 11.59 kB / 4.233 GB, free: 37.66 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.214e-05/10.56, allocations: 21.8 kB / 4.233 GB, free: 37.66 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002402/10.56, allocations: 373.2 kB / 4.233 GB, free: 37.65 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.102e-05/10.56, allocations: 23.16 kB / 4.233 GB, free: 37.65 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002435/10.56, allocations: 246.7 kB / 4.233 GB, free: 37.61 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002038/10.56, allocations: 81.12 kB / 4.233 GB, free: 37.6 MB / 0.5886 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.0003998/10.56, allocations: 69.92 kB / 4.233 GB, free: 37.57 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003312/10.57, allocations: 0.713 MB / 4.234 GB, free: 37.51 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003298/10.57, allocations: 1.02 MB / 4.235 GB, free: 37.32 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.977e-06/10.57, allocations: 3.594 kB / 4.235 GB, free: 37.32 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.593e-06/10.57, allocations: 0.7812 kB / 4.235 GB, free: 37.32 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.597e-06/10.57, allocations: 3.891 kB / 4.235 GB, free: 37.32 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005112/10.58, allocations: 2.19 MB / 4.237 GB, free: 36.86 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.07e-05/10.58, allocations: 4.125 kB / 4.237 GB, free: 36.86 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007018/10.58, allocations: 99.52 kB / 4.237 GB, free: 36.86 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.413e-05/10.58, allocations: 7.312 kB / 4.237 GB, free: 36.86 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.884e-05/10.58, allocations: 15.34 kB / 4.237 GB, free: 36.85 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.866e-06/10.58, allocations: 7.812 kB / 4.237 GB, free: 36.85 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.155e-06/10.58, allocations: 6.938 kB / 4.237 GB, free: 36.85 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004923/10.58, allocations: 1.585 MB / 4.239 GB, free: 36.13 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001323/10.58, allocations: 0.5773 MB / 4.239 GB, free: 35.94 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005137/10.58, allocations: 3.969 kB / 4.239 GB, free: 35.94 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002018/10.59, allocations: 144.7 kB / 4.24 GB, free: 35.91 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001022/10.59, allocations: 39.34 kB / 4.24 GB, free: 35.91 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.291e-05/10.59, allocations: 22.06 kB / 4.24 GB, free: 35.91 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.002516/10.59, allocations: 1.248 MB / 4.241 GB, free: 35.8 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01048/10.6, allocations: 1.825 MB / 4.243 GB, free: 35.66 MB / 0.5886 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.01519/10.61, allocations: 2.181 MB / 4.245 GB, free: 35.16 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.005071/10.62, allocations: 1.365 MB / 4.246 GB, free: 34.36 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.419e-05/10.62, allocations: 0 / 4.246 GB, free: 34.36 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0006174/10.62, allocations: 156.7 kB / 4.246 GB, free: 34.27 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005434/10.63, allocations: 423.7 kB / 4.247 GB, free: 34.04 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006832/10.63, allocations: 1.691 MB / 4.248 GB, free: 32.55 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002081/10.63, allocations: 1.403 MB / 4.25 GB, free: 31.39 MB / 0.5886 GB Notification: Performance of SimCode: time 1.312e-06/10.63, allocations: 0 / 4.25 GB, free: 31.39 MB / 0.5886 GB Notification: Performance of Templates: time 0.09776/10.73, allocations: 43.36 MB / 4.292 GB, free: 6.242 MB / 0.5886 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/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_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches