Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.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.TestValvesIncompressibleReverse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|SourceP1.ports.2..m_flow|SourceP1.ports.2..p|SourceP1.ports.2..h_outflow|SourceP2.ports.1..m_flow|SourceP2.ports.1..p|SourceP2.ports.1..h_outflow|SourceP2.ports.2..m_flow|SourceP2.ports.2..p|SourceP2.ports.2..h_outflow|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|V1.minLimiter.y|V2.port_b.m_flow|V2.port_b.p|V2.port_b.h_outflow|V2.minLimiter.y|V3.port_b.m_flow|V3.port_b.p|V3.port_b.h_outflow|V3.minLimiter.y|V4.port_b.m_flow|V4.port_b.p|V4.port_b.h_outflow|V4.minLimiter.y|V5.port_b.m_flow|V5.port_b.p|V5.port_b.h_outflow|V5.minLimiter.y|SinkP2.ports.1..m_flow|SinkP2.ports.1..p|SinkP2.ports.1..h_outflow|SinkP3.ports.1..m_flow|SinkP3.ports.1..p|SinkP3.ports.1..h_outflow|CloseLoad.y|OpenRelief.y|CloseValves.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|SourceP1.ports.2..m_flow|SourceP1.ports.2..p|SourceP1.ports.2..h_outflow|SourceP2.ports.1..m_flow|SourceP2.ports.1..p|SourceP2.ports.1..h_outflow|SourceP2.ports.2..m_flow|SourceP2.ports.2..p|SourceP2.ports.2..h_outflow|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|V1.minLimiter.y|V2.port_b.m_flow|V2.port_b.p|V2.port_b.h_outflow|V2.minLimiter.y|V3.port_b.m_flow|V3.port_b.p|V3.port_b.h_outflow|V3.minLimiter.y|V4.port_b.m_flow|V4.port_b.p|V4.port_b.h_outflow|V4.minLimiter.y|V5.port_b.m_flow|V5.port_b.p|V5.port_b.h_outflow|V5.minLimiter.y|SinkP2.ports.1..m_flow|SinkP2.ports.1..p|SinkP2.ports.1..h_outflow|SinkP3.ports.1..m_flow|SinkP3.ports.1..p|SinkP3.ports.1..h_outflow|CloseLoad.y|OpenRelief.y|CloseValves.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse") [: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.001676/0.001676, allocations: 171.6 kB / 8.148 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.672/1.672, allocations: 205.2 MB / 213.8 MB, free: 13.93 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.001279/0.001278, allocations: 99.03 kB / 261.8 MB, free: 13.62 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.2618/0.2618, allocations: 43.49 MB / 353.2 MB, free: 2.043 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 9.047e-06/9.187e-06, allocations: 0 / 417.7 MB, free: 40.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2878/0.2878, allocations: 58.84 MB / 476.6 MB, free: 5.094 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.529/0.8169, allocations: 218.5 MB / 0.6787 GB, free: 106.3 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002858/0.8172, allocations: 81.89 kB / 0.6788 GB, free: 106.3 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.689/3.507, allocations: 0.6482 GB / 1.327 GB, free: 76.18 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001517/3.507, allocations: 39.62 kB / 1.327 GB, free: 76.17 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 209 * Number of variables: 209 Notification: Performance of Generate backend data structure: time 0.008465/3.515, allocations: 1.97 MB / 1.329 GB, free: 74.8 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.202e-05/3.515, allocations: 9.438 kB / 1.329 GB, free: 74.8 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006249/3.522, allocations: 434.4 kB / 1.329 GB, free: 74.59 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003719/3.525, allocations: 0.9305 MB / 1.33 GB, free: 73.92 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.186e-05/3.525, allocations: 26.78 kB / 1.33 GB, free: 73.92 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004493/3.526, allocations: 48.44 kB / 1.33 GB, free: 73.92 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003219/3.529, allocations: 0.7774 MB / 1.331 GB, free: 73.6 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003525/3.533, allocations: 1.033 MB / 1.332 GB, free: 72.91 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.148e-05/3.533, allocations: 9.578 kB / 1.332 GB, free: 72.91 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002564/3.533, allocations: 4.531 kB / 1.332 GB, free: 72.91 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.341e-05/3.533, allocations: 22.69 kB / 1.332 GB, free: 72.91 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01138/3.545, allocations: 5.42 MB / 1.337 GB, free: 68 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001584/3.546, allocations: 473.4 kB / 1.338 GB, free: 67.79 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009107/3.547, allocations: 292.8 kB / 1.338 GB, free: 67.66 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009269/3.548, allocations: 0.9614 MB / 1.339 GB, free: 66.59 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.046e-05/3.548, allocations: 51.03 kB / 1.339 GB, free: 66.54 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=65): time 3.176e-06/3.548, allocations: 0 / 1.339 GB, free: 66.54 MB / 0.4948 GB Notification: Performance of matching and sorting (n=65): time 0.01561/3.564, allocations: 1.579 MB / 1.341 GB, free: 65.75 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.448e-05/3.564, allocations: 188.6 kB / 1.341 GB, free: 65.52 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001316/3.565, allocations: 0.6106 MB / 1.342 GB, free: 64.89 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0003499/3.566, allocations: 25.7 kB / 1.342 GB, free: 64.86 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002332/3.566, allocations: 401.4 kB / 1.342 GB, free: 64.46 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003598/3.566, allocations: 216.7 kB / 1.342 GB, free: 64.25 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001128/3.566, allocations: 0 / 1.342 GB, free: 64.25 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001014/3.566, allocations: 346.7 kB / 1.342 GB, free: 63.9 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009585/3.567, allocations: 293.2 kB / 1.343 GB, free: 63.61 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001108/3.569, allocations: 482.4 kB / 1.343 GB, free: 63.07 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01611/3.585, allocations: 1.699 MB / 1.345 GB, free: 61.38 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-05/3.585, allocations: 4 kB / 1.345 GB, free: 61.38 MB / 0.4948 GB Notification: Performance of matching and sorting (n=102) (initialization): time 0.01849/3.603, allocations: 2.326 MB / 1.347 GB, free: 59.04 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004417/3.604, allocations: 1.839 MB / 1.349 GB, free: 57.08 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.73e-05/3.604, allocations: 4 kB / 1.349 GB, free: 57.07 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004872/3.609, allocations: 462.5 kB / 1.349 GB, free: 56.64 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002199/3.611, allocations: 298 kB / 1.35 GB, free: 56.35 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00472/3.616, allocations: 1.023 MB / 1.351 GB, free: 55.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00165/3.617, allocations: 108.4 kB / 1.351 GB, free: 55.21 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000359/3.618, allocations: 163.9 kB / 1.351 GB, free: 55.05 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/3.618, allocations: 4 kB / 1.351 GB, free: 55.04 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01361/3.632, allocations: 1.917 MB / 1.353 GB, free: 53.13 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.737e-05/3.632, allocations: 4 kB / 1.353 GB, free: 53.13 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004248/3.632, allocations: 72.33 kB / 1.353 GB, free: 53.06 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00219/3.634, allocations: 310.2 kB / 1.353 GB, free: 52.76 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002312/3.637, allocations: 1.561 MB / 1.355 GB, free: 51.09 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001607/3.638, allocations: 105 kB / 1.355 GB, free: 50.99 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000312/3.639, allocations: 124.9 kB / 1.355 GB, free: 50.87 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 10} Notification: Performance of prepare postOptimizeDAE: time 0.0004266/3.639, allocations: 50.91 kB / 1.355 GB, free: 50.82 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004651/3.64, allocations: 102.8 kB / 1.355 GB, free: 50.71 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02044/3.66, allocations: 4.785 MB / 1.36 GB, free: 46.14 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001391/3.66, allocations: 31.97 kB / 1.36 GB, free: 46.11 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/3.66, allocations: 0 / 1.36 GB, free: 46.11 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.343e-05/3.66, allocations: 3.984 kB / 1.36 GB, free: 46.1 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002738/3.663, allocations: 0.9589 MB / 1.361 GB, free: 45.13 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.368e-05/3.663, allocations: 0 / 1.361 GB, free: 45.13 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001245/3.664, allocations: 167.8 kB / 1.361 GB, free: 44.96 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002085/3.666, allocations: 319.4 kB / 1.361 GB, free: 44.65 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002383/3.667, allocations: 27.98 kB / 1.361 GB, free: 44.62 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002398/3.669, allocations: 0.9983 MB / 1.362 GB, free: 43.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.845e-06/3.669, allocations: 4 kB / 1.362 GB, free: 43.6 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007597/3.677, allocations: 1.72 MB / 1.364 GB, free: 41.86 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001367/3.678, allocations: 379.1 kB / 1.364 GB, free: 41.46 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000577/3.679, allocations: 0 / 1.364 GB, free: 41.46 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001976/3.681, allocations: 71.84 kB / 1.364 GB, free: 41.39 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003814/3.681, allocations: 76.89 kB / 1.364 GB, free: 41.32 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002707/3.682, allocations: 99.95 kB / 1.364 GB, free: 41.22 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.001138/3.683, allocations: 0.4965 MB / 1.365 GB, free: 40.71 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005721/3.688, allocations: 1.209 MB / 1.366 GB, free: 39.51 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (81): * Single equations (assignments): 65 * Array equations: 15 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.005211/3.694, allocations: 1.101 MB / 1.367 GB, free: 38.47 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.004388/3.698, allocations: 1.492 MB / 1.369 GB, free: 36.98 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.417e-06/3.698, allocations: 4 kB / 1.369 GB, free: 36.97 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001712/3.7, allocations: 0.5764 MB / 1.369 GB, free: 36.4 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004318/3.704, allocations: 403.1 kB / 1.37 GB, free: 36.01 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006227/3.711, allocations: 1.8 MB / 1.371 GB, free: 34.18 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002675/3.713, allocations: 1.458 MB / 1.373 GB, free: 32.7 MB / 0.4948 GB Notification: Performance of SimCode: time 2.064e-06/3.713, allocations: 0 / 1.373 GB, free: 32.7 MB / 0.4948 GB Notification: Performance of Templates: time 0.06297/3.776, allocations: 32.67 MB / 1.405 GB, free: 316 kB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValvesIncompressibleReverse/TestValvesIncompressibleReverse.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches