Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.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.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_4.0.0_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_4.0.0_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001296/0.001295, allocations: 175 kB / 8.517 MB, free: 1.859 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.284/1.284, allocations: 221.4 MB / 230.3 MB, free: 7.645 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.001041/0.001041, allocations: 86.98 kB / 281.2 MB, free: 5.461 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.2058/0.2058, allocations: 44.15 MB / 376.1 MB, free: 3.238 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.125e-06/8.165e-06, allocations: 224 / 444 MB, free: 15.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1387/0.1388, allocations: 61.9 MB / 0.4941 GB, free: 1.633 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.4/5.538, allocations: 2.777 GB / 3.271 GB, free: 148.7 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002168/5.539, allocations: 84 kB / 3.271 GB, free: 148.7 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.868/7.407, allocations: 0.6397 GB / 3.91 GB, free: 49.12 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 7.995e-05/7.407, allocations: 41.23 kB / 3.91 GB, free: 49.12 MB / 0.5417 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.007117/7.414, allocations: 2.461 MB / 3.913 GB, free: 48.17 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.625e-05/7.414, allocations: 14.06 kB / 3.913 GB, free: 48.16 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008001/7.422, allocations: 1.021 MB / 3.914 GB, free: 48.08 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001934/7.424, allocations: 1.004 MB / 3.915 GB, free: 47.76 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.4e-05/7.424, allocations: 53.78 kB / 3.915 GB, free: 47.76 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000124/7.424, allocations: 69.81 kB / 3.915 GB, free: 47.76 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001832/7.426, allocations: 1.22 MB / 3.916 GB, free: 47.75 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001748/7.428, allocations: 1.433 MB / 3.918 GB, free: 47.32 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.941e-05/7.428, allocations: 7.844 kB / 3.918 GB, free: 47.32 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000117/7.428, allocations: 6.547 kB / 3.918 GB, free: 47.32 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.477e-05/7.428, allocations: 35.06 kB / 3.918 GB, free: 47.31 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1212/7.549, allocations: 70.2 MB / 3.986 GB, free: 34.97 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009776/7.55, allocations: 0.7736 MB / 3.987 GB, free: 34.94 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004626/7.551, allocations: 383.7 kB / 3.987 GB, free: 34.93 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03047/7.581, allocations: 16.42 MB / 4.003 GB, free: 24.2 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.907e-05/7.581, allocations: 47.94 kB / 4.003 GB, free: 24.16 MB / 0.573 GB Notification: Performance of pre-optimization done (n=72): time 3.507e-06/7.581, allocations: 0 / 4.003 GB, free: 24.16 MB / 0.573 GB Notification: Performance of matching and sorting (n=72): time 0.00623/7.587, allocations: 1.842 MB / 4.005 GB, free: 24.06 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001247/7.588, allocations: 270.5 kB / 4.005 GB, free: 23.74 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009648/7.589, allocations: 0.7404 MB / 4.006 GB, free: 23.58 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 7.901e-05/7.589, allocations: 25.7 kB / 4.006 GB, free: 23.55 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002575/7.589, allocations: 0.5412 MB / 4.007 GB, free: 23.2 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001645/7.589, allocations: 239 kB / 4.007 GB, free: 23.05 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.636e-05/7.589, allocations: 0 / 4.007 GB, free: 23.05 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001259/7.589, allocations: 353.6 kB / 4.007 GB, free: 22.74 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005667/7.59, allocations: 400.3 kB / 4.008 GB, free: 22.73 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007805/7.591, allocations: 0.82 MB / 4.008 GB, free: 22.21 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003392/7.594, allocations: 0.8527 MB / 4.009 GB, free: 22.2 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.094e-06/7.594, allocations: 7.938 kB / 4.009 GB, free: 22.19 MB / 0.573 GB Notification: Performance of matching and sorting (n=143) (initialization): time 0.00698/7.601, allocations: 2.336 MB / 4.012 GB, free: 22.09 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001457/7.602, allocations: 4.87 MB / 4.016 GB, free: 16.97 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.895e-05/7.603, allocations: 16.81 kB / 4.016 GB, free: 16.97 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.235e-05/7.603, allocations: 19.44 kB / 4.016 GB, free: 16.97 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001288/7.604, allocations: 380.7 kB / 4.017 GB, free: 16.96 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.806e-05/7.604, allocations: 23.06 kB / 4.017 GB, free: 16.96 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001753/7.606, allocations: 243.4 kB / 4.017 GB, free: 16.88 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001317/7.606, allocations: 77.19 kB / 4.017 GB, free: 16.88 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 7.995e-06/7.606, allocations: 3.844 kB / 4.017 GB, free: 16.88 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003927/7.61, allocations: 1.353 MB / 4.018 GB, free: 16.86 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.178e-05/7.61, allocations: 13.16 kB / 4.018 GB, free: 16.86 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.67e-05/7.61, allocations: 22.25 kB / 4.018 GB, free: 16.86 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001185/7.611, allocations: 370.3 kB / 4.019 GB, free: 16.85 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.66e-05/7.611, allocations: 24.94 kB / 4.019 GB, free: 16.85 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001334/7.612, allocations: 194.3 kB / 4.019 GB, free: 16.79 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001158/7.612, allocations: 75.59 kB / 4.019 GB, free: 16.79 MB / 0.573 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.0003243/7.613, allocations: 148 kB / 4.019 GB, free: 16.68 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002056/7.615, allocations: 0.7113 MB / 4.02 GB, free: 16.62 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005375/7.62, allocations: 4.387 MB / 4.024 GB, free: 16.07 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-05/7.62, allocations: 31.89 kB / 4.024 GB, free: 16.07 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/7.62, allocations: 0 / 4.024 GB, free: 16.07 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.096e-05/7.62, allocations: 11 kB / 4.024 GB, free: 16.07 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009759/7.63, allocations: 7.277 MB / 4.031 GB, free: 30.73 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.058e-05/7.63, allocations: 7.844 kB / 4.031 GB, free: 30.73 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007092/7.631, allocations: 210.5 kB / 4.032 GB, free: 30.73 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.488e-05/7.631, allocations: 11.59 kB / 4.032 GB, free: 30.72 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.329e-05/7.631, allocations: 27.64 kB / 4.032 GB, free: 30.72 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.073e-05/7.631, allocations: 13.08 kB / 4.032 GB, free: 30.72 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.458e-06/7.631, allocations: 10.09 kB / 4.032 GB, free: 30.72 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005593/7.637, allocations: 3.46 MB / 4.035 GB, free: 29.59 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001311/7.638, allocations: 0.7638 MB / 4.036 GB, free: 29.33 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003427/7.638, allocations: 7.281 kB / 4.036 GB, free: 29.33 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001101/7.639, allocations: 111.1 kB / 4.036 GB, free: 29.32 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000219/7.64, allocations: 162.5 kB / 4.036 GB, free: 29.31 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.27e-05/7.64, allocations: 48.55 kB / 4.036 GB, free: 29.3 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.001762/7.641, allocations: 1.425 MB / 4.037 GB, free: 29.16 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.007737/7.649, allocations: 1.847 MB / 4.039 GB, free: 28.9 MB / 0.5886 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.009649/7.659, allocations: 2.203 MB / 4.041 GB, free: 28.43 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.003655/7.663, allocations: 2.305 MB / 4.044 GB, free: 28.39 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 9.698e-06/7.663, allocations: 3.812 kB / 4.044 GB, free: 28.39 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.001301/7.664, allocations: 1.225 MB / 4.045 GB, free: 28.39 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003009/7.667, allocations: 0.5248 MB / 4.045 GB, free: 28.34 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005106/7.672, allocations: 3.132 MB / 4.048 GB, free: 27.45 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001479/7.674, allocations: 1.673 MB / 4.05 GB, free: 26.68 MB / 0.5886 GB Notification: Performance of SimCode: time 8.62e-07/7.674, allocations: 0 / 4.05 GB, free: 26.68 MB / 0.5886 GB Notification: Performance of Templates: time 0.0871/7.761, allocations: 58.16 MB / 4.107 GB, free: 0.7031 MB / 0.5886 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveCoefficients/TestValveCoefficients.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches