Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.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.TestValvesCompressibleReverse,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.TestValvesCompressibleReverse") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse,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.TestValvesCompressibleReverse") [: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.001705/0.001705, allocations: 171.6 kB / 8.149 MB, free: 2.188 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.691/1.691, 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.00125/0.00125, allocations: 90.53 kB / 261.8 MB, free: 13.64 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.2619/0.2619, allocations: 43.49 MB / 353.2 MB, free: 2.047 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.715e-06/8.045e-06, allocations: 0 / 417.7 MB, free: 40.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2845/0.2845, allocations: 58.83 MB / 476.5 MB, free: 5.098 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.87/6.155, allocations: 2.771 GB / 3.237 GB, free: 27.31 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002908/6.155, allocations: 87.58 kB / 3.237 GB, free: 27.26 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.571/8.726, allocations: 0.5734 GB / 3.81 GB, free: 39.11 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001391/8.726, allocations: 43.23 kB / 3.81 GB, free: 39.1 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: 284 * Number of variables: 284 Notification: Performance of Generate backend data structure: time 0.01593/8.742, allocations: 2.701 MB / 3.813 GB, free: 37.45 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.716e-05/8.742, allocations: 12.69 kB / 3.813 GB, free: 37.45 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01149/8.753, allocations: 0.9273 MB / 3.814 GB, free: 37.03 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003682/8.757, allocations: 1.032 MB / 3.815 GB, free: 36.26 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.871e-05/8.757, allocations: 49.56 kB / 3.815 GB, free: 36.25 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003195/8.758, allocations: 67.56 kB / 3.815 GB, free: 36.25 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004137/8.762, allocations: 1.358 MB / 3.816 GB, free: 35.65 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003438/8.765, allocations: 1.366 MB / 3.818 GB, free: 34.72 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.632e-05/8.765, allocations: 6.125 kB / 3.818 GB, free: 34.71 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002234/8.766, allocations: 4.219 kB / 3.818 GB, free: 34.71 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.271e-05/8.766, allocations: 32.92 kB / 3.818 GB, free: 34.71 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.153/8.919, allocations: 45.81 MB / 3.862 GB, free: 3.07 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00494/8.924, allocations: 1.15 MB / 3.864 GB, free: 1.914 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001569/8.925, allocations: 0.5004 MB / 3.864 GB, free: 1.418 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2802/9.205, allocations: 16.43 MB / 3.88 GB, free: 94.97 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.798e-05/9.206, allocations: 49.75 kB / 3.88 GB, free: 94.93 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=103): time 4.047e-06/9.206, allocations: 0 / 3.88 GB, free: 94.93 MB / 0.5261 GB Notification: Performance of matching and sorting (n=103): time 0.01434/9.22, allocations: 2.405 MB / 3.883 GB, free: 94.87 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.763e-05/9.22, allocations: 194.5 kB / 3.883 GB, free: 94.65 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001504/9.222, allocations: 0.7201 MB / 3.883 GB, free: 94.52 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0003652/9.222, allocations: 25.7 kB / 3.883 GB, free: 94.48 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002617/9.222, allocations: 463.4 kB / 3.884 GB, free: 94.23 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003744/9.223, allocations: 348.6 kB / 3.884 GB, free: 94.05 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001289/9.223, allocations: 0 / 3.884 GB, free: 94.05 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 9.991e-05/9.223, allocations: 359 kB / 3.885 GB, free: 93.74 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001441/9.224, allocations: 0.4984 MB / 3.885 GB, free: 93.74 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001767/9.226, allocations: 0.8088 MB / 3.886 GB, free: 93.41 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007753/9.234, allocations: 1.092 MB / 3.887 GB, free: 93.4 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-05/9.234, allocations: 3.844 kB / 3.887 GB, free: 93.4 MB / 0.5261 GB Notification: Performance of matching and sorting (n=172) (initialization): time 0.01385/9.248, allocations: 2.663 MB / 3.89 GB, free: 93.3 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006141/9.248, allocations: 3.137 MB / 3.893 GB, free: 90.05 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.184e-05/9.248, allocations: 9.875 kB / 3.893 GB, free: 90.05 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007251/9.256, allocations: 0.7319 MB / 3.893 GB, free: 90.04 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003469/9.259, allocations: 436.2 kB / 3.894 GB, free: 90.04 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003394/9.263, allocations: 1.179 MB / 3.895 GB, free: 89.51 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002715/9.265, allocations: 213 kB / 3.895 GB, free: 89.48 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003301/9.266, allocations: 87.66 kB / 3.895 GB, free: 89.48 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.296e-05/9.266, allocations: 3.875 kB / 3.895 GB, free: 89.48 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009482/9.275, allocations: 1.7 MB / 3.897 GB, free: 89.44 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.56e-05/9.275, allocations: 7.875 kB / 3.897 GB, free: 89.44 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004959/9.276, allocations: 80.97 kB / 3.897 GB, free: 89.43 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003779/9.28, allocations: 469.3 kB / 3.897 GB, free: 89.43 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003013/9.283, allocations: 1.665 MB / 3.899 GB, free: 88.13 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002608/9.285, allocations: 208.7 kB / 3.899 GB, free: 88.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002497/9.286, allocations: 79.12 kB / 3.899 GB, free: 88.1 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 15 (SourceP1.medium.phase,SourceP2.medium.phase,SinkP1.medium.phase,SinkP2.medium.phase,SinkP3.medium.phase,V5.state_b.phase,V5.state_a.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 (148): * Single equations (assignments): 147 * 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 22} Notification: Performance of prepare postOptimizeDAE: time 0.0004707/9.286, allocations: 71.17 kB / 3.899 GB, free: 88.07 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002786/9.289, allocations: 0.6488 MB / 3.9 GB, free: 88 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01447/9.304, allocations: 6.154 MB / 3.906 GB, free: 87.54 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.865e-05/9.304, allocations: 58.45 kB / 3.906 GB, free: 87.54 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/9.304, allocations: 3.25 kB / 3.906 GB, free: 87.54 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.444e-05/9.304, allocations: 11.03 kB / 3.906 GB, free: 87.53 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01667/9.32, allocations: 7.786 MB / 3.914 GB, free: 86.89 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.657e-05/9.32, allocations: 3.219 kB / 3.914 GB, free: 86.89 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001971/9.322, allocations: 265.8 kB / 3.914 GB, free: 86.89 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005686/9.328, allocations: 1.729 MB / 3.916 GB, free: 86.82 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003013/9.328, allocations: 34.97 kB / 3.916 GB, free: 86.82 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003947/9.332, allocations: 1.859 MB / 3.917 GB, free: 86.27 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.728e-06/9.332, allocations: 9.469 kB / 3.917 GB, free: 86.27 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01238/9.345, allocations: 4.651 MB / 3.922 GB, free: 85.41 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001769/9.347, allocations: 0.6539 MB / 3.923 GB, free: 85.19 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005105/9.347, allocations: 9.125 kB / 3.923 GB, free: 85.19 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002223/9.349, allocations: 129.9 kB / 3.923 GB, free: 85.19 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003877/9.35, allocations: 159.3 kB / 3.923 GB, free: 85.18 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000169/9.35, allocations: 66.55 kB / 3.923 GB, free: 85.18 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.002003/9.352, allocations: 1.016 MB / 3.924 GB, free: 85.07 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.009494/9.362, allocations: 1.801 MB / 3.926 GB, free: 84.96 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 33 ($cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse30.phase,$cse30.region,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$cse41.phase,$cse41.region,$cse48.phase,$cse48.region,$cse50.phase,$cse50.region,$cse62.phase,$cse62.region,$cse63.phase,$cse63.region,$cse64.phase,$cse64.region,SinkP3.medium.phase,SinkP2.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SourceP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 11 * 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 34} Notification: Performance of Backend phase and start with SimCode phase: time 0.01192/9.374, allocations: 2.106 MB / 3.928 GB, free: 84.74 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.007137/9.381, allocations: 3.173 MB / 3.931 GB, free: 84.6 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.003e-05/9.381, allocations: 2.062 kB / 3.931 GB, free: 84.6 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003125/9.384, allocations: 1.91 MB / 3.933 GB, free: 84.59 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005712/9.39, allocations: 0.5178 MB / 3.933 GB, free: 84.57 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008942/9.399, allocations: 3.724 MB / 3.937 GB, free: 83.7 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001893/9.401, allocations: 1.74 MB / 3.939 GB, free: 82.96 MB / 0.5261 GB Notification: Performance of SimCode: time 1.603e-06/9.401, allocations: 1.969 kB / 3.939 GB, free: 82.96 MB / 0.5261 GB Notification: Performance of Templates: time 0.1037/9.504, allocations: 54.32 MB / 3.992 GB, free: 79.24 MB / 0.5261 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.pipe 2>&1)