Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.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.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_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_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 3.2.3+maint.om/package.mo): time 0.0009587/0.0009587, allocations: 190 kB / 7.804 MB, free: 2.488 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.016/1.016, allocations: 205.2 MB / 213.4 MB, free: 13.84 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.0009343/0.0009343, allocations: 92.28 kB / 261.4 MB, free: 13.54 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.1515/0.1515, allocations: 43.49 MB / 352.8 MB, free: 1.953 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.28e-06/5.32e-06, allocations: 0 / 417.7 MB, free: 40.54 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2238/0.2238, allocations: 58.83 MB / 476.6 MB, free: 5.211 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.772/3.996, allocations: 2.771 GB / 3.237 GB, free: 97.05 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000217/3.996, allocations: 82.25 kB / 3.237 GB, free: 96.97 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.658/5.654, allocations: 0.6326 GB / 3.869 GB, free: 33.71 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001604/5.654, allocations: 44.56 kB / 3.869 GB, free: 33.7 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.009599/5.664, allocations: 2.461 MB / 3.872 GB, free: 32.09 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/5.664, allocations: 8.875 kB / 3.872 GB, free: 32.09 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008405/5.672, allocations: 1.019 MB / 3.873 GB, free: 31.65 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002505/5.675, allocations: 1.007 MB / 3.874 GB, free: 30.89 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001411/5.675, allocations: 52.31 kB / 3.874 GB, free: 30.89 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003509/5.675, allocations: 67.72 kB / 3.874 GB, free: 30.89 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002573/5.678, allocations: 1.219 MB / 3.875 GB, free: 30.35 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002744/5.68, allocations: 1.431 MB / 3.876 GB, free: 29.35 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.133e-05/5.681, allocations: 6.094 kB / 3.876 GB, free: 29.34 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002174/5.681, allocations: 10.19 kB / 3.877 GB, free: 29.34 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.365e-05/5.681, allocations: 30.62 kB / 3.877 GB, free: 29.34 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3/5.981, allocations: 70.19 MB / 3.945 GB, free: 80.84 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009243/5.982, allocations: 0.7755 MB / 3.946 GB, free: 80.82 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004229/5.982, allocations: 384.5 kB / 3.946 GB, free: 80.81 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02588/6.008, allocations: 16.42 MB / 3.962 GB, free: 70.76 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.924e-05/6.008, allocations: 44.19 kB / 3.962 GB, free: 70.72 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=72): time 2.575e-06/6.008, allocations: 0 / 3.962 GB, free: 70.72 MB / 0.5261 GB Notification: Performance of matching and sorting (n=72): time 0.005782/6.014, allocations: 1.846 MB / 3.964 GB, free: 70.68 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.036e-05/6.014, allocations: 265.5 kB / 3.964 GB, free: 70.37 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008122/6.015, allocations: 0.736 MB / 3.965 GB, free: 70.23 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 6.487e-05/6.015, allocations: 30.7 kB / 3.965 GB, free: 70.2 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.000239/6.015, allocations: 0.5396 MB / 3.966 GB, free: 69.92 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001595/6.015, allocations: 242.2 kB / 3.966 GB, free: 69.8 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.254e-05/6.015, allocations: 0 / 3.966 GB, free: 69.8 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 6.438e-05/6.015, allocations: 346.5 kB / 3.966 GB, free: 69.5 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005199/6.016, allocations: 404.7 kB / 3.967 GB, free: 69.5 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006733/6.017, allocations: 0.8281 MB / 3.967 GB, free: 69 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003102/6.02, allocations: 0.8515 MB / 3.968 GB, free: 68.99 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.031e-06/6.02, allocations: 3.969 kB / 3.968 GB, free: 68.99 MB / 0.5261 GB Notification: Performance of matching and sorting (n=143) (initialization): time 0.006445/6.026, allocations: 2.346 MB / 3.97 GB, free: 68.89 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006873/6.027, allocations: 4.866 MB / 3.975 GB, free: 63.82 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.567e-05/6.027, allocations: 12.88 kB / 3.975 GB, free: 63.82 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.324e-05/6.027, allocations: 22.66 kB / 3.975 GB, free: 63.82 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0012/6.028, allocations: 371.6 kB / 3.976 GB, free: 63.82 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.943e-05/6.028, allocations: 33.58 kB / 3.976 GB, free: 63.82 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001543/6.03, allocations: 236.3 kB / 3.976 GB, free: 63.79 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001096/6.03, allocations: 75.12 kB / 3.976 GB, free: 63.79 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.594e-06/6.03, allocations: 3.562 kB / 3.976 GB, free: 63.79 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003597/6.034, allocations: 1.356 MB / 3.977 GB, free: 63.77 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.572e-05/6.034, allocations: 16.22 kB / 3.977 GB, free: 63.77 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.691e-05/6.034, allocations: 22.64 kB / 3.977 GB, free: 63.77 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001116/6.035, allocations: 374.2 kB / 3.978 GB, free: 63.77 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.406e-05/6.035, allocations: 27.78 kB / 3.978 GB, free: 63.77 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001178/6.036, allocations: 188.4 kB / 3.978 GB, free: 63.75 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001033/6.036, allocations: 77.77 kB / 3.978 GB, free: 63.75 MB / 0.5261 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.0002449/6.036, allocations: 160.7 kB / 3.978 GB, free: 63.63 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001914/6.038, allocations: 0.7099 MB / 3.979 GB, free: 63.58 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005131/6.043, allocations: 4.39 MB / 3.983 GB, free: 63.08 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-05/6.043, allocations: 30.77 kB / 3.983 GB, free: 63.08 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/6.043, allocations: 0 / 3.983 GB, free: 63.08 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.458e-06/6.043, allocations: 4.078 kB / 3.983 GB, free: 63.08 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008885/6.052, allocations: 7.274 MB / 3.99 GB, free: 61.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-05/6.052, allocations: 8.547 kB / 3.99 GB, free: 61.79 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000724/6.053, allocations: 208.9 kB / 3.99 GB, free: 61.79 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-05/6.053, allocations: 12.19 kB / 3.99 GB, free: 61.78 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.91e-05/6.053, allocations: 25.08 kB / 3.99 GB, free: 61.78 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.126e-05/6.053, allocations: 13.25 kB / 3.99 GB, free: 61.78 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.416e-06/6.053, allocations: 9.875 kB / 3.99 GB, free: 61.78 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005274/6.058, allocations: 3.464 MB / 3.994 GB, free: 60.64 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001089/6.06, allocations: 0.7542 MB / 3.995 GB, free: 60.42 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004805/6.06, allocations: 14.97 kB / 3.995 GB, free: 60.41 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00121/6.061, allocations: 113.6 kB / 3.995 GB, free: 60.39 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002131/6.061, allocations: 163.2 kB / 3.995 GB, free: 60.39 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.85e-05/6.062, allocations: 48.59 kB / 3.995 GB, free: 60.39 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.001689/6.063, allocations: 1.427 MB / 3.996 GB, free: 60.24 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006728/6.07, allocations: 1.835 MB / 3.998 GB, free: 60.11 MB / 0.5261 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.007822/6.078, allocations: 2.209 MB / 4 GB, free: 59.78 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002748/6.081, allocations: 2.297 MB / 4.003 GB, free: 59.75 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.274e-06/6.081, allocations: 3.844 kB / 4.003 GB, free: 59.75 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00101/6.082, allocations: 1.228 MB / 4.004 GB, free: 59.75 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002573/6.084, allocations: 0.5149 MB / 4.004 GB, free: 59.71 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004548/6.089, allocations: 3.134 MB / 4.007 GB, free: 58.81 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001204/6.09, allocations: 1.675 MB / 4.009 GB, free: 58.04 MB / 0.5261 GB Notification: Performance of SimCode: time 4.71e-07/6.09, allocations: 0 / 4.009 GB, free: 58.04 MB / 0.5261 GB Notification: Performance of Templates: time 0.07162/6.162, allocations: 58.11 MB / 4.066 GB, free: 53.99 MB / 0.5261 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_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_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches