Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.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.TestValveCompressible,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|downstreamPressure.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible,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|downstreamPressure.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible") [: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.001607/0.001607, allocations: 183.1 kB / 8.52 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.273/1.273, allocations: 221.4 MB / 230.3 MB, free: 7.66 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.000913/0.0009133, allocations: 80.75 kB / 281.2 MB, free: 5.465 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.1835/0.1835, allocations: 44.14 MB / 376.1 MB, free: 3.234 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.885e-06/7.925e-06, allocations: 4.219 kB / 444 MB, free: 15.62 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1422/0.1422, allocations: 61.91 MB / 0.4941 GB, free: 1.641 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.592/5.734, allocations: 2.776 GB / 3.27 GB, free: 147.3 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002324/5.734, allocations: 84.31 kB / 3.27 GB, free: 147.3 MB / 0.5105 GB Notification: Performance of FrontEnd: time 0.7069/6.441, allocations: 236 MB / 3.501 GB, free: 86.02 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 3.143e-05/6.441, allocations: 7.656 kB / 3.501 GB, free: 86.02 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: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.005488/6.447, allocations: 1.289 MB / 3.502 GB, free: 85.39 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.096e-05/6.447, allocations: 15.5 kB / 3.502 GB, free: 85.38 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002191/6.449, allocations: 270.2 kB / 3.502 GB, free: 85.36 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007404/6.45, allocations: 413.2 kB / 3.503 GB, free: 85.14 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.992e-05/6.45, allocations: 15.81 kB / 3.503 GB, free: 85.14 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.372e-05/6.45, allocations: 21.66 kB / 3.503 GB, free: 85.14 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005547/6.45, allocations: 354.3 kB / 3.503 GB, free: 85.14 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005452/6.451, allocations: 420.6 kB / 3.503 GB, free: 85 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/6.451, allocations: 0 / 3.503 GB, free: 85 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.223e-05/6.451, allocations: 8.234 kB / 3.503 GB, free: 85 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/6.451, allocations: 6.375 kB / 3.503 GB, free: 85 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01721/6.468, allocations: 10.19 MB / 3.513 GB, free: 78.62 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006249/6.469, allocations: 285.1 kB / 3.514 GB, free: 78.59 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001816/6.469, allocations: 136.5 kB / 3.514 GB, free: 78.59 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04479/6.514, allocations: 24.08 MB / 3.537 GB, free: 63.91 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.36e-05/6.514, allocations: 44.7 kB / 3.537 GB, free: 63.87 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=27): time 2.184e-06/6.514, allocations: 0 / 3.537 GB, free: 63.87 MB / 0.5105 GB Notification: Performance of matching and sorting (n=27): time 0.002084/6.516, allocations: 0.5582 MB / 3.538 GB, free: 63.82 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.738e-05/6.516, allocations: 110.2 kB / 3.538 GB, free: 63.7 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003041/6.516, allocations: 278 kB / 3.538 GB, free: 63.59 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.92e-05/6.516, allocations: 26.73 kB / 3.538 GB, free: 63.56 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 8.935e-05/6.516, allocations: 200.6 kB / 3.539 GB, free: 63.44 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 6.106e-05/6.517, allocations: 88.56 kB / 3.539 GB, free: 63.39 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.995e-05/6.517, allocations: 0 / 3.539 GB, free: 63.39 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 8.402e-05/6.517, allocations: 347.5 kB / 3.539 GB, free: 63.08 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001752/6.517, allocations: 128.6 kB / 3.539 GB, free: 63.08 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002133/6.517, allocations: 245.1 kB / 3.539 GB, free: 62.93 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009326/6.518, allocations: 252.3 kB / 3.54 GB, free: 62.93 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/6.518, allocations: 1.031 kB / 3.54 GB, free: 62.93 MB / 0.5105 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001858/6.52, allocations: 0.6688 MB / 3.54 GB, free: 62.88 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002523/6.52, allocations: 1.4 MB / 3.542 GB, free: 61.43 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/6.52, allocations: 4.594 kB / 3.542 GB, free: 61.43 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/6.52, allocations: 7.594 kB / 3.542 GB, free: 61.43 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004243/6.521, allocations: 107.7 kB / 3.542 GB, free: 61.43 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.017e-05/6.521, allocations: 11.44 kB / 3.542 GB, free: 61.42 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004354/6.521, allocations: 64.83 kB / 3.542 GB, free: 61.41 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.845e-05/6.521, allocations: 25.05 kB / 3.542 GB, free: 61.41 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 5.55e-06/6.521, allocations: 3.875 kB / 3.542 GB, free: 61.41 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001046/6.522, allocations: 408.4 kB / 3.542 GB, free: 61.41 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.125e-06/6.522, allocations: 3.938 kB / 3.542 GB, free: 61.41 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.931e-06/6.522, allocations: 7.938 kB / 3.542 GB, free: 61.41 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003835/6.523, allocations: 111.5 kB / 3.542 GB, free: 61.41 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.689e-06/6.523, allocations: 11.69 kB / 3.542 GB, free: 61.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003744/6.523, allocations: 52.72 kB / 3.542 GB, free: 61.39 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.299e-05/6.523, allocations: 21.95 kB / 3.542 GB, free: 61.39 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 4 (SourceP1.medium.phase,SinkP1.medium.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 44 * 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.0001028/6.523, allocations: 131.3 kB / 3.542 GB, free: 61.29 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005328/6.524, allocations: 190.2 kB / 3.543 GB, free: 61.27 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002075/6.526, allocations: 1.771 MB / 3.544 GB, free: 61.11 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.239e-05/6.526, allocations: 24.83 kB / 3.544 GB, free: 61.11 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/6.526, allocations: 0 / 3.544 GB, free: 61.11 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/6.526, allocations: 3.469 kB / 3.544 GB, free: 61.11 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002553/6.528, allocations: 2.348 MB / 3.547 GB, free: 60.78 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-06/6.528, allocations: 7.656 kB / 3.547 GB, free: 60.78 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003217/6.529, allocations: 72.12 kB / 3.547 GB, free: 60.78 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.545e-06/6.529, allocations: 3.938 kB / 3.547 GB, free: 60.78 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.751e-05/6.529, allocations: 11.33 kB / 3.547 GB, free: 60.78 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/6.529, allocations: 7.844 kB / 3.547 GB, free: 60.78 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.948e-06/6.529, allocations: 0 / 3.547 GB, free: 60.78 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002037/6.531, allocations: 1.461 MB / 3.548 GB, free: 60.52 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002391/6.531, allocations: 218.8 kB / 3.548 GB, free: 60.39 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.287e-05/6.531, allocations: 3.781 kB / 3.548 GB, free: 60.39 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000359/6.532, allocations: 38.14 kB / 3.549 GB, free: 60.39 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.626e-05/6.532, allocations: 40.17 kB / 3.549 GB, free: 60.39 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.137e-05/6.532, allocations: 18.31 kB / 3.549 GB, free: 60.39 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0002665/6.532, allocations: 271.7 kB / 3.549 GB, free: 60.3 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00571/6.538, allocations: 1.156 MB / 3.55 GB, free: 60.11 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 14 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.region,SinkP1.medium.phase,SourceP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 31 * 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.01015/6.548, allocations: 1.569 MB / 3.551 GB, free: 59.83 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001254/6.549, allocations: 0.9443 MB / 3.552 GB, free: 59.82 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.67e-06/6.549, allocations: 3.469 kB / 3.552 GB, free: 59.82 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0005374/6.55, allocations: 0.7045 MB / 3.553 GB, free: 59.82 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001138/6.551, allocations: 177.2 kB / 3.553 GB, free: 59.81 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001688/6.553, allocations: 1.168 MB / 3.554 GB, free: 59.56 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004403/6.553, allocations: 1.004 MB / 3.555 GB, free: 58.85 MB / 0.5105 GB Notification: Performance of SimCode: time 8.92e-07/6.553, allocations: 0 / 3.555 GB, free: 58.85 MB / 0.5105 GB Notification: Performance of Templates: time 0.04803/6.601, allocations: 34.92 MB / 3.589 GB, free: 56.83 MB / 0.5105 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveCompressible/TestValveCompressible.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches