Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.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.TestValveCoefficients,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|SourceP4.ports.1..m_flow|SourceP4.ports.1..p|SourceP4.ports.1..h_outflow|V4.port_b.m_flow|V4.port_b.p|V4.port_b.h_outflow|V4.minLimiter.y|SinkP4.ports.1..m_flow|SinkP4.ports.1..p|SinkP4.ports.1..h_outflow",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients,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|SourceP4.ports.1..m_flow|SourceP4.ports.1..p|SourceP4.ports.1..h_outflow|V4.port_b.m_flow|V4.port_b.p|V4.port_b.h_outflow|V4.minLimiter.y|SinkP4.ports.1..m_flow|SinkP4.ports.1..p|SinkP4.ports.1..h_outflow",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients") [: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.001611/0.001615, allocations: 172.8 kB / 8.146 MB, free: 2.195 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.624/1.624, 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.001263/0.001263, allocations: 88.02 kB / 261.8 MB, free: 13.63 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.2566/0.2566, allocations: 43.49 MB / 353.2 MB, free: 2.035 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 9.047e-06/9.187e-06, allocations: 0 / 417.7 MB, free: 40.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2844/0.2844, allocations: 58.84 MB / 476.6 MB, free: 5.078 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.799/6.084, allocations: 2.771 GB / 3.237 GB, free: 12.55 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003033/6.084, allocations: 86.45 kB / 3.237 GB, free: 12.51 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.044/9.128, allocations: 0.6326 GB / 3.869 GB, free: 40 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001251/9.128, allocations: 44.03 kB / 3.869 GB, free: 39.99 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.01102/9.139, allocations: 2.463 MB / 3.872 GB, free: 38.95 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/9.139, allocations: 9.656 kB / 3.872 GB, free: 38.95 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0123/9.151, allocations: 1.014 MB / 3.873 GB, free: 38.86 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003168/9.155, allocations: 1.016 MB / 3.874 GB, free: 38.54 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000132/9.155, allocations: 52.91 kB / 3.874 GB, free: 38.54 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002196/9.155, allocations: 66.88 kB / 3.874 GB, free: 38.54 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003458/9.158, allocations: 1.218 MB / 3.875 GB, free: 38.53 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003215/9.162, allocations: 1.432 MB / 3.876 GB, free: 38.09 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.734e-05/9.162, allocations: 6.188 kB / 3.876 GB, free: 38.09 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002136/9.162, allocations: 7 kB / 3.876 GB, free: 38.09 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.591e-05/9.162, allocations: 34.19 kB / 3.877 GB, free: 38.09 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2315/9.394, allocations: 70.2 MB / 3.945 GB, free: 25.57 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001894/9.395, allocations: 0.7721 MB / 3.946 GB, free: 25.54 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009112/9.396, allocations: 382.8 kB / 3.946 GB, free: 25.53 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05967/9.456, allocations: 16.41 MB / 3.962 GB, free: 14.81 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.359e-05/9.456, allocations: 44.81 kB / 3.962 GB, free: 14.77 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=72): time 3.607e-06/9.456, allocations: 0 / 3.962 GB, free: 14.77 MB / 0.5417 GB Notification: Performance of matching and sorting (n=72): time 0.01031/9.467, allocations: 1.845 MB / 3.964 GB, free: 14.67 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001823/9.467, allocations: 269.5 kB / 3.964 GB, free: 14.36 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001562/9.468, allocations: 0.7341 MB / 3.965 GB, free: 14.2 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0002502/9.469, allocations: 29.7 kB / 3.965 GB, free: 14.16 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003461/9.469, allocations: 0.5513 MB / 3.966 GB, free: 13.75 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002952/9.469, allocations: 242.3 kB / 3.966 GB, free: 13.59 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001069/9.469, allocations: 0 / 3.966 GB, free: 13.59 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001878/9.47, allocations: 359.2 kB / 3.966 GB, free: 29.28 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001101/9.471, allocations: 397.4 kB / 3.967 GB, free: 29.27 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001338/9.472, allocations: 0.8201 MB / 3.967 GB, free: 28.75 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005998/9.478, allocations: 0.847 MB / 3.968 GB, free: 28.74 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-05/9.478, allocations: 3.719 kB / 3.968 GB, free: 28.74 MB / 0.5573 GB Notification: Performance of matching and sorting (n=143) (initialization): time 0.0118/9.49, allocations: 2.276 MB / 3.97 GB, free: 28.66 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001852/9.492, allocations: 4.883 MB / 3.975 GB, free: 23.54 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.472e-05/9.492, allocations: 12.94 kB / 3.975 GB, free: 23.54 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.778e-05/9.492, allocations: 18.72 kB / 3.975 GB, free: 23.54 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002805/9.495, allocations: 378.6 kB / 3.976 GB, free: 23.53 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.959e-05/9.495, allocations: 29.34 kB / 3.976 GB, free: 23.53 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002079/9.497, allocations: 192.8 kB / 3.976 GB, free: 23.46 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001988/9.497, allocations: 75.61 kB / 3.976 GB, free: 23.46 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.328e-05/9.497, allocations: 3.719 kB / 3.976 GB, free: 23.46 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00686/9.504, allocations: 1.354 MB / 3.977 GB, free: 23.45 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.438e-05/9.504, allocations: 17.19 kB / 3.977 GB, free: 23.45 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.856e-05/9.504, allocations: 17.53 kB / 3.977 GB, free: 23.45 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002556/9.507, allocations: 375.3 kB / 3.978 GB, free: 23.44 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.621e-05/9.507, allocations: 29.33 kB / 3.978 GB, free: 23.44 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002092/9.509, allocations: 186.3 kB / 3.978 GB, free: 23.38 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002144/9.509, allocations: 71.98 kB / 3.978 GB, free: 23.38 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 16 (SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,SourceP4.medium.phase,SinkP4.medium.phase,V4.state_b.phase,V4.state_a.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 (143): * Single equations (assignments): 143 * 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.0004668/9.51, allocations: 83.45 kB / 3.978 GB, free: 23.34 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0031/9.513, allocations: 0.7112 MB / 3.979 GB, free: 23.29 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009745/9.523, allocations: 4.384 MB / 3.983 GB, free: 22.72 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.954e-05/9.523, allocations: 27.92 kB / 3.983 GB, free: 22.72 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.019e-05/9.523, allocations: 1.188 kB / 3.983 GB, free: 22.72 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.008e-05/9.523, allocations: 3.375 kB / 3.983 GB, free: 22.72 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01752/9.54, allocations: 7.312 MB / 3.99 GB, free: 21.35 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.026e-05/9.54, allocations: 9.406 kB / 3.99 GB, free: 21.35 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001618/9.542, allocations: 214 kB / 3.99 GB, free: 21.34 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.568e-05/9.542, allocations: 13.72 kB / 3.99 GB, free: 21.34 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.16e-05/9.542, allocations: 22.31 kB / 3.99 GB, free: 21.34 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.631e-05/9.542, allocations: 16.25 kB / 3.99 GB, free: 21.34 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.261e-05/9.542, allocations: 6.656 kB / 3.99 GB, free: 21.34 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009627/9.552, allocations: 3.469 MB / 3.994 GB, free: 20.21 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002055/9.554, allocations: 0.7669 MB / 3.994 GB, free: 19.95 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006746/9.555, allocations: 8.156 kB / 3.994 GB, free: 19.95 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00247/9.557, allocations: 125.9 kB / 3.995 GB, free: 19.93 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000462/9.558, allocations: 165.1 kB / 3.995 GB, free: 19.92 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001491/9.558, allocations: 50.3 kB / 3.995 GB, free: 19.91 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.003307/9.561, allocations: 1.434 MB / 3.996 GB, free: 19.77 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01026/9.571, allocations: 1.831 MB / 3.998 GB, free: 19.51 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 24 ($cse1.phase,$cse1.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse40.phase,$cse40.region,SinkP4.medium.phase,SourceP4.medium.phase,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 (80): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.01243/9.584, allocations: 2.195 MB / 4 GB, free: 19.05 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.005619/9.589, allocations: 2.275 MB / 4.002 GB, free: 19.02 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.353e-05/9.59, allocations: 1.125 kB / 4.002 GB, free: 19.02 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001954/9.592, allocations: 1.228 MB / 4.004 GB, free: 18.69 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005522/9.597, allocations: 0.5161 MB / 4.004 GB, free: 18.39 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007086/9.604, allocations: 3.153 MB / 4.007 GB, free: 15.96 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002001/9.606, allocations: 1.677 MB / 4.009 GB, free: 14.61 MB / 0.5573 GB Notification: Performance of SimCode: time 1.252e-06/9.606, allocations: 0 / 4.009 GB, free: 14.61 MB / 0.5573 GB Notification: Performance of Templates: time 0.3389/9.945, allocations: 46.81 MB / 4.055 GB, free: 115.3 MB / 0.5573 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValveCoefficients/TestValveCoefficients.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches