Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_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 trunk/package.mo): time 0.001828/0.001828, allocations: 192.1 kB / 8.534 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 225.5 MB / 234.4 MB, free: 3.344 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001038/0.001038, allocations: 88.2 kB / 286.3 MB, free: 5.285 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2517/0.2517, allocations: 45.15 MB / 383.3 MB, free: 0.5312 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 8.466e-06/8.486e-06, allocations: 4 kB / 452.6 MB, free: 76.17 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.139/0.139, allocations: 63.24 MB / 0.5038 GB, free: 13 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.653/6.792, allocations: 2.778 GB / 3.281 GB, free: 141.4 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002702/6.793, allocations: 86.77 kB / 3.281 GB, free: 141.4 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.116/8.909, allocations: 0.6398 GB / 3.921 GB, free: 44.41 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001707/8.909, allocations: 41.88 kB / 3.921 GB, free: 44.41 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.01063/8.92, allocations: 2.469 MB / 3.924 GB, free: 43.27 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/8.92, allocations: 11.72 kB / 3.924 GB, free: 43.27 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009044/8.929, allocations: 1.018 MB / 3.925 GB, free: 43.19 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003203/8.932, allocations: 1.006 MB / 3.926 GB, free: 42.87 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000159/8.932, allocations: 51.38 kB / 3.926 GB, free: 42.87 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003725/8.933, allocations: 69.62 kB / 3.926 GB, free: 42.87 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002554/8.935, allocations: 1.213 MB / 3.927 GB, free: 42.86 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002635/8.938, allocations: 1.436 MB / 3.928 GB, free: 42.42 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.858e-05/8.938, allocations: 5.125 kB / 3.928 GB, free: 42.42 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002083/8.938, allocations: 10.53 kB / 3.928 GB, free: 42.42 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.077e-05/8.938, allocations: 33.59 kB / 3.928 GB, free: 42.42 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1388/9.077, allocations: 75.92 MB / 4.003 GB, free: 23.31 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00136/9.078, allocations: 0.7692 MB / 4.003 GB, free: 23.27 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005896/9.079, allocations: 381.4 kB / 4.004 GB, free: 23.26 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03577/9.115, allocations: 18.81 MB / 4.022 GB, free: 26.16 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.613e-05/9.115, allocations: 47.91 kB / 4.022 GB, free: 26.11 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=72): time 3.997e-06/9.115, allocations: 0 / 4.022 GB, free: 26.11 MB / 0.5886 GB Notification: Performance of matching and sorting (n=72): time 0.00668/9.122, allocations: 1.847 MB / 4.024 GB, free: 25.1 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001239/9.122, allocations: 272.1 kB / 4.024 GB, free: 24.78 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009528/9.123, allocations: 0.7395 MB / 4.025 GB, free: 24.28 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 9.225e-05/9.123, allocations: 25.7 kB / 4.025 GB, free: 24.25 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002978/9.123, allocations: 0.5419 MB / 4.025 GB, free: 23.83 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001771/9.123, allocations: 233.4 kB / 4.026 GB, free: 23.65 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.673e-05/9.123, allocations: 0 / 4.026 GB, free: 23.65 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001309/9.124, allocations: 349.6 kB / 4.026 GB, free: 23.33 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005697/9.124, allocations: 412.7 kB / 4.026 GB, free: 23.11 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007441/9.125, allocations: 0.819 MB / 4.027 GB, free: 22.34 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003382/9.128, allocations: 0.8519 MB / 4.028 GB, free: 21.9 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.235e-06/9.128, allocations: 4 kB / 4.028 GB, free: 21.9 MB / 0.5886 GB Notification: Performance of matching and sorting (n=143) (initialization): time 0.007213/9.136, allocations: 2.348 MB / 4.03 GB, free: 20.55 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.001709/9.137, allocations: 4.861 MB / 4.035 GB, free: 15.42 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.181e-05/9.137, allocations: 15.94 kB / 4.035 GB, free: 15.4 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.881e-05/9.137, allocations: 20 kB / 4.035 GB, free: 15.38 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001398/9.139, allocations: 379.6 kB / 4.035 GB, free: 15.09 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.977e-05/9.139, allocations: 23.94 kB / 4.035 GB, free: 15.06 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001762/9.141, allocations: 245.7 kB / 4.036 GB, free: 14.86 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001348/9.141, allocations: 77.2 kB / 4.036 GB, free: 14.8 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.14e-05/9.141, allocations: 11.06 kB / 4.036 GB, free: 14.8 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004048/9.145, allocations: 1.36 MB / 4.037 GB, free: 13.99 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.212e-05/9.145, allocations: 12 kB / 4.037 GB, free: 13.98 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.907e-05/9.145, allocations: 20 kB / 4.037 GB, free: 13.96 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001228/9.146, allocations: 368.5 kB / 4.038 GB, free: 13.67 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.827e-05/9.146, allocations: 31.7 kB / 4.038 GB, free: 13.64 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001459/9.148, allocations: 189.5 kB / 4.038 GB, free: 13.48 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001159/9.148, allocations: 77.25 kB / 4.038 GB, free: 13.43 MB / 0.5886 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.0003803/9.148, allocations: 154.4 kB / 4.038 GB, free: 13.28 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002199/9.15, allocations: 0.7085 MB / 4.039 GB, free: 12.89 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005557/9.156, allocations: 4.379 MB / 4.043 GB, free: 10.28 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.989e-05/9.156, allocations: 34.97 kB / 4.043 GB, free: 10.27 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.668e-06/9.156, allocations: 11.69 kB / 4.043 GB, free: 10.26 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.127e-05/9.156, allocations: 3.75 kB / 4.043 GB, free: 10.26 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009933/9.166, allocations: 7.276 MB / 4.05 GB, free: 4.199 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.146e-05/9.166, allocations: 4 kB / 4.05 GB, free: 4.195 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007671/9.167, allocations: 209.8 kB / 4.05 GB, free: 4.027 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.678e-05/9.167, allocations: 12 kB / 4.05 GB, free: 4.016 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.639e-05/9.167, allocations: 23.94 kB / 4.05 GB, free: 3.996 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.047e-05/9.167, allocations: 11.94 kB / 4.05 GB, free: 3.984 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.376e-06/9.167, allocations: 8 kB / 4.05 GB, free: 3.977 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006203/9.173, allocations: 3.468 MB / 4.054 GB, free: 0.6719 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001304/9.174, allocations: 0.7684 MB / 4.054 GB, free: 44 kB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003399/9.175, allocations: 8 kB / 4.054 GB, free: 36 kB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.2725/9.447, allocations: 125.9 kB / 4.055 GB, free: 139 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004743/9.448, allocations: 158.9 kB / 4.055 GB, free: 139 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001463/9.448, allocations: 45.83 kB / 4.055 GB, free: 139 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.002108/9.45, allocations: 1.428 MB / 4.056 GB, free: 138.8 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.009393/9.459, allocations: 1.851 MB / 4.058 GB, free: 138.8 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.01014/9.47, allocations: 2.219 MB / 4.06 GB, free: 138.7 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.003358/9.473, allocations: 2.3 MB / 4.062 GB, free: 138.7 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.353e-05/9.473, allocations: 5.812 kB / 4.062 GB, free: 138.7 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.001252/9.474, allocations: 1.227 MB / 4.064 GB, free: 138.7 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003503/9.478, allocations: 0.5111 MB / 4.064 GB, free: 138.7 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005002/9.483, allocations: 3.122 MB / 4.067 GB, free: 137.8 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001126/9.484, allocations: 1.676 MB / 4.069 GB, free: 137.1 MB / 0.5886 GB Notification: Performance of SimCode: time 2.154e-06/9.484, allocations: 1.031 kB / 4.069 GB, free: 137.1 MB / 0.5886 GB Notification: Performance of Templates: time 0.08236/9.566, allocations: 58.19 MB / 4.126 GB, free: 134.5 MB / 0.5886 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches