Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|V1.minLimiter.y|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|SourceP2.ports.1..m_flow|SourceP2.ports.1..p|SourceP2.ports.1..h_outflow|V2.port_b.m_flow|V2.port_b.p|V2.port_b.h_outflow|V2.minLimiter.y|SinkP2.ports.1..m_flow|SinkP2.ports.1..p|SinkP2.ports.1..h_outflow|SourceP3.ports.1..m_flow|SourceP3.ports.1..p|SourceP3.ports.1..h_outflow|V3.port_b.m_flow|V3.port_b.p|V3.port_b.h_outflow|V3.minLimiter.y|SinkP3.ports.1..m_flow|SinkP3.ports.1..p|SinkP3.ports.1..h_outflow",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|V1.minLimiter.y|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|SourceP2.ports.1..m_flow|SourceP2.ports.1..p|SourceP2.ports.1..h_outflow|V2.port_b.m_flow|V2.port_b.p|V2.port_b.h_outflow|V2.minLimiter.y|SinkP2.ports.1..m_flow|SinkP2.ports.1..p|SinkP2.ports.1..h_outflow|SourceP3.ports.1..m_flow|SourceP3.ports.1..p|SourceP3.ports.1..h_outflow|V3.port_b.m_flow|V3.port_b.p|V3.port_b.h_outflow|V3.minLimiter.y|SinkP3.ports.1..m_flow|SinkP3.ports.1..p|SinkP3.ports.1..h_outflow",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible") [: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 4.0.0+maint.om/package.mo): time 0.001362/0.001362, allocations: 179.6 kB / 8.516 MB, free: 1.855 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.252/1.252, allocations: 221.4 MB / 230.3 MB, free: 7.637 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001011/0.001011, allocations: 80.05 kB / 281.2 MB, free: 5.453 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1772/0.1772, allocations: 44.15 MB / 376.1 MB, free: 3.219 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.444e-06/7.484e-06, allocations: 224 / 444 MB, free: 15.6 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1169, allocations: 61.92 MB / 0.4941 GB, free: 1.609 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.496/5.613, allocations: 2.776 GB / 3.271 GB, free: 151.1 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002536/5.613, allocations: 84.67 kB / 3.271 GB, free: 151.1 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.523/7.136, allocations: 0.5034 GB / 3.774 GB, free: 59.91 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 9.624e-05/7.136, allocations: 33.34 kB / 3.774 GB, free: 59.9 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: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.008194/7.144, allocations: 2.081 MB / 3.776 GB, free: 58.9 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.743e-05/7.144, allocations: 11.88 kB / 3.776 GB, free: 58.9 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006632/7.151, allocations: 0.7652 MB / 3.777 GB, free: 58.84 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002011/7.153, allocations: 0.8153 MB / 3.778 GB, free: 58.51 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001028/7.153, allocations: 39.75 kB / 3.778 GB, free: 58.51 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002378/7.154, allocations: 51.72 kB / 3.778 GB, free: 58.51 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00179/7.155, allocations: 0.9145 MB / 3.779 GB, free: 58.51 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001835/7.157, allocations: 1.096 MB / 3.78 GB, free: 57.95 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.628e-05/7.157, allocations: 7.281 kB / 3.78 GB, free: 57.95 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001349/7.157, allocations: 3.281 kB / 3.78 GB, free: 57.95 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.021e-05/7.157, allocations: 24.66 kB / 3.78 GB, free: 57.95 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1004/7.258, allocations: 52.45 MB / 3.831 GB, free: 23.2 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001049/7.259, allocations: 0.6106 MB / 3.832 GB, free: 22.97 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005023/7.259, allocations: 305.9 kB / 3.832 GB, free: 22.85 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03077/7.29, allocations: 16.67 MB / 3.848 GB, free: 23.21 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.369e-05/7.29, allocations: 43.72 kB / 3.848 GB, free: 23.16 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=61): time 2.234e-06/7.29, allocations: 0 / 3.848 GB, free: 23.16 MB / 0.5417 GB Notification: Performance of matching and sorting (n=61): time 0.005369/7.296, allocations: 1.443 MB / 3.85 GB, free: 22.05 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.918e-05/7.296, allocations: 218.7 kB / 3.85 GB, free: 21.79 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008971/7.297, allocations: 0.5655 MB / 3.85 GB, free: 21.26 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 9.812e-05/7.297, allocations: 30.36 kB / 3.85 GB, free: 21.23 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002741/7.297, allocations: 419 kB / 3.851 GB, free: 20.86 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001806/7.297, allocations: 203.1 kB / 3.851 GB, free: 20.67 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.166e-05/7.297, allocations: 4 kB / 3.851 GB, free: 20.67 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000171/7.298, allocations: 384.3 kB / 3.851 GB, free: 20.31 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004866/7.298, allocations: 305.1 kB / 3.852 GB, free: 20.03 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000633/7.299, allocations: 0.5979 MB / 3.852 GB, free: 19.34 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002649/7.301, allocations: 0.6484 MB / 3.853 GB, free: 18.84 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.53e-06/7.301, allocations: 0 / 3.853 GB, free: 18.84 MB / 0.5417 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.005389/7.307, allocations: 1.761 MB / 3.855 GB, free: 17.44 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001035/7.308, allocations: 3.228 MB / 3.858 GB, free: 13.97 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.778e-05/7.308, allocations: 8 kB / 3.858 GB, free: 13.96 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.102e-05/7.308, allocations: 16 kB / 3.858 GB, free: 13.95 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001026/7.309, allocations: 284.7 kB / 3.858 GB, free: 13.71 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.581e-05/7.309, allocations: 21.98 kB / 3.858 GB, free: 13.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00125/7.31, allocations: 168.2 kB / 3.858 GB, free: 13.55 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001198/7.31, allocations: 59.2 kB / 3.858 GB, free: 13.51 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 7.614e-06/7.31, allocations: 4 kB / 3.858 GB, free: 13.5 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002899/7.313, allocations: 1.021 MB / 3.859 GB, free: 12.64 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/7.313, allocations: 8 kB / 3.859 GB, free: 12.63 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.23e-05/7.313, allocations: 16 kB / 3.859 GB, free: 12.62 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009068/7.314, allocations: 287.7 kB / 3.86 GB, free: 12.38 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.512e-05/7.314, allocations: 23.55 kB / 3.86 GB, free: 12.36 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009649/7.315, allocations: 137.1 kB / 3.86 GB, free: 12.25 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.242e-05/7.315, allocations: 58.23 kB / 3.86 GB, free: 12.2 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 12 (SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,V3.state_b.phase,V3.state_a.phase,V2.state_b.phase,V2.state_a.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (109): * Single equations (assignments): 109 * 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.0002379/7.316, allocations: 136.6 kB / 3.86 GB, free: 12.06 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001561/7.317, allocations: 0.5468 MB / 3.86 GB, free: 11.66 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00458/7.322, allocations: 3.3 MB / 3.864 GB, free: 8.82 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.582e-05/7.322, allocations: 21.38 kB / 3.864 GB, free: 8.809 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/7.322, allocations: 0 / 3.864 GB, free: 8.809 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.114e-05/7.322, allocations: 3.188 kB / 3.864 GB, free: 8.809 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007503/7.329, allocations: 4.959 MB / 3.869 GB, free: 4.199 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.928e-06/7.329, allocations: 7.938 kB / 3.869 GB, free: 4.191 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007146/7.33, allocations: 192.1 kB / 3.869 GB, free: 4.004 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.71e-05/7.33, allocations: 11.91 kB / 3.869 GB, free: 3.992 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.027e-05/7.33, allocations: 19.98 kB / 3.869 GB, free: 3.973 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.925e-06/7.33, allocations: 4 kB / 3.869 GB, free: 3.969 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.255e-06/7.33, allocations: 7.938 kB / 3.869 GB, free: 3.961 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004651/7.335, allocations: 2.551 MB / 3.871 GB, free: 1.238 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001029/7.336, allocations: 0.5918 MB / 3.872 GB, free: 0.625 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003783/7.336, allocations: 4 kB / 3.872 GB, free: 0.6211 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001094/7.337, allocations: 103.1 kB / 3.872 GB, free: 0.5234 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000222/7.338, allocations: 120.3 kB / 3.872 GB, free: 412 kB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.971e-05/7.338, allocations: 39.97 kB / 3.872 GB, free: 372 kB / 0.5417 GB Notification: Performance of sort global known variables: time 0.2016/7.539, allocations: 1.086 MB / 3.873 GB, free: 124.2 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006666/7.546, allocations: 1.619 MB / 3.875 GB, free: 124.2 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 18 ($cse1.phase,$cse1.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse30.phase,$cse30.region,SinkP3.medium.phase,SourceP3.medium.phase,SinkP2.medium.phase,SourceP2.medium.phase,SinkP1.medium.phase,SourceP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.01011/7.556, allocations: 1.994 MB / 3.877 GB, free: 124.1 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002344/7.558, allocations: 1.746 MB / 3.878 GB, free: 124.1 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 6.633e-06/7.559, allocations: 3.875 kB / 3.878 GB, free: 124.1 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.000821/7.559, allocations: 0.9531 MB / 3.879 GB, free: 124.1 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002164/7.562, allocations: 404.7 kB / 3.88 GB, free: 124.1 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003731/7.565, allocations: 2.386 MB / 3.882 GB, free: 123.5 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009535/7.566, allocations: 1.438 MB / 3.883 GB, free: 122.7 MB / 0.5417 GB Notification: Performance of SimCode: time 4.11e-07/7.566, allocations: 0 / 3.883 GB, free: 122.7 MB / 0.5417 GB Notification: Performance of Templates: time 0.06323/7.629, allocations: 50.28 MB / 3.933 GB, free: 121.1 MB / 0.5417 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveIncompressible/TestValveIncompressible.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches