Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.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.TestValveIncompressible,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",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible,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",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible") [: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.0009072/0.0009073, allocations: 187.1 kB / 7.802 MB, free: 2.445 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.023/1.023, allocations: 205.2 MB / 213.4 MB, free: 13.86 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.000842/0.000842, allocations: 97.06 kB / 261.4 MB, free: 13.61 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.1525/0.1525, allocations: 43.48 MB / 352.8 MB, free: 2.035 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.74e-06/5.75e-06, allocations: 0 / 417.7 MB, free: 40.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2096/0.2096, allocations: 58.84 MB / 476.6 MB, free: 5.238 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.747/3.957, allocations: 2.771 GB / 3.237 GB, free: 54.59 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002101/3.957, allocations: 82.58 kB / 3.237 GB, free: 54.55 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.368/5.326, allocations: 0.4978 GB / 3.735 GB, free: 46.09 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 5.915e-05/5.326, allocations: 33.05 kB / 3.735 GB, free: 46.09 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: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.005726/5.331, allocations: 2.083 MB / 3.737 GB, free: 45.24 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.1e-05/5.331, allocations: 9.312 kB / 3.737 GB, free: 45.24 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005574/5.337, allocations: 0.764 MB / 3.737 GB, free: 45.18 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001249/5.338, allocations: 0.8084 MB / 3.738 GB, free: 44.89 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.397e-05/5.338, allocations: 40.28 kB / 3.738 GB, free: 44.89 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.365e-05/5.338, allocations: 56.19 kB / 3.738 GB, free: 44.89 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001312/5.34, allocations: 0.9157 MB / 3.739 GB, free: 44.88 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001299/5.341, allocations: 1.098 MB / 3.74 GB, free: 44.55 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.402e-05/5.341, allocations: 11.28 kB / 3.74 GB, free: 44.55 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.831e-05/5.341, allocations: 6.656 kB / 3.74 GB, free: 44.55 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.797e-05/5.341, allocations: 26 kB / 3.74 GB, free: 44.55 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08442/5.426, allocations: 52.44 MB / 3.791 GB, free: 28.03 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007128/5.426, allocations: 0.6106 MB / 3.792 GB, free: 28 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000356/5.427, allocations: 306.5 kB / 3.792 GB, free: 27.99 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02956/5.456, allocations: 16.67 MB / 3.809 GB, free: 32.98 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.974e-05/5.456, allocations: 43.09 kB / 3.809 GB, free: 32.94 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=61): time 3.276e-06/5.456, allocations: 0 / 3.809 GB, free: 32.94 MB / 0.5417 GB Notification: Performance of matching and sorting (n=61): time 0.004604/5.461, allocations: 1.447 MB / 3.81 GB, free: 32.85 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.4e-05/5.461, allocations: 213.8 kB / 3.81 GB, free: 32.6 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005936/5.462, allocations: 0.5673 MB / 3.811 GB, free: 32.47 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 5.897e-05/5.462, allocations: 25.7 kB / 3.811 GB, free: 32.44 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001675/5.462, allocations: 425.6 kB / 3.811 GB, free: 32.16 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001139/5.462, allocations: 198 kB / 3.811 GB, free: 32.04 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.038e-05/5.462, allocations: 3.75 kB / 3.811 GB, free: 32.04 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001688/5.462, allocations: 389 kB / 3.812 GB, free: 31.72 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004016/5.463, allocations: 311.7 kB / 3.812 GB, free: 31.71 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004942/5.463, allocations: 0.5987 MB / 3.813 GB, free: 31.36 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002351/5.466, allocations: 0.6389 MB / 3.813 GB, free: 31.35 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/5.466, allocations: 7.281 kB / 3.813 GB, free: 31.34 MB / 0.5417 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.004746/5.47, allocations: 1.759 MB / 3.815 GB, free: 31.25 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009469/5.471, allocations: 3.219 MB / 3.818 GB, free: 27.87 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/5.471, allocations: 13.62 kB / 3.818 GB, free: 27.87 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.307e-05/5.471, allocations: 11.97 kB / 3.818 GB, free: 27.87 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009416/5.472, allocations: 289.3 kB / 3.819 GB, free: 27.86 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.385e-05/5.472, allocations: 23.27 kB / 3.819 GB, free: 27.86 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00102/5.473, allocations: 171 kB / 3.819 GB, free: 27.8 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.341e-05/5.473, allocations: 51.73 kB / 3.819 GB, free: 27.8 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 5.2e-06/5.473, allocations: 3.562 kB / 3.819 GB, free: 27.8 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0027/5.476, allocations: 1.021 MB / 3.82 GB, free: 27.78 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.438e-06/5.476, allocations: 13.97 kB / 3.82 GB, free: 27.78 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.188e-05/5.476, allocations: 14.19 kB / 3.82 GB, free: 27.78 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008686/5.477, allocations: 278.8 kB / 3.82 GB, free: 27.77 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.364e-05/5.477, allocations: 31.53 kB / 3.82 GB, free: 27.77 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008028/5.478, allocations: 132 kB / 3.82 GB, free: 27.73 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.13e-05/5.478, allocations: 54.36 kB / 3.82 GB, free: 27.73 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 12 (SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.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 (109): * Single equations (assignments): 109 * 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.0002089/5.478, allocations: 147.5 kB / 3.82 GB, free: 27.61 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001432/5.48, allocations: 0.5363 MB / 3.821 GB, free: 27.57 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003906/5.484, allocations: 3.306 MB / 3.824 GB, free: 27.14 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-05/5.484, allocations: 25.92 kB / 3.824 GB, free: 27.14 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/5.484, allocations: 0 / 3.824 GB, free: 27.14 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/5.484, allocations: 3.703 kB / 3.824 GB, free: 27.14 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005583/5.489, allocations: 4.958 MB / 3.829 GB, free: 26.33 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/5.489, allocations: 3.656 kB / 3.829 GB, free: 26.33 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006126/5.49, allocations: 185.2 kB / 3.829 GB, free: 26.32 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.006e-06/5.49, allocations: 15.62 kB / 3.829 GB, free: 26.32 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.994e-05/5.49, allocations: 26.41 kB / 3.829 GB, free: 26.32 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-06/5.49, allocations: 7.812 kB / 3.829 GB, free: 26.32 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/5.49, allocations: 5.781 kB / 3.829 GB, free: 26.32 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003667/5.494, allocations: 2.545 MB / 3.832 GB, free: 25.62 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006634/5.494, allocations: 0.5915 MB / 3.832 GB, free: 25.41 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002342/5.494, allocations: 7.422 kB / 3.832 GB, free: 25.41 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008025/5.495, allocations: 96.78 kB / 3.832 GB, free: 25.39 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000166/5.495, allocations: 124.8 kB / 3.833 GB, free: 25.39 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.479e-05/5.496, allocations: 32.14 kB / 3.833 GB, free: 25.39 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.00108/5.497, allocations: 1.093 MB / 3.834 GB, free: 25.27 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.005306/5.502, allocations: 1.623 MB / 3.835 GB, free: 25.04 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 18 ($cse1.phase,$cse1.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse30.phase,$cse30.region,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 (67): * Single equations (assignments): 61 * 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.005407/5.507, allocations: 1.967 MB / 3.837 GB, free: 24.63 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001949/5.509, allocations: 1.75 MB / 3.839 GB, free: 24.6 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/5.509, allocations: 7.688 kB / 3.839 GB, free: 24.6 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0007114/5.51, allocations: 0.9479 MB / 3.84 GB, free: 24.6 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001787/5.512, allocations: 417.7 kB / 3.84 GB, free: 24.56 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003172/5.515, allocations: 2.386 MB / 3.842 GB, free: 23.91 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009681/5.516, allocations: 1.439 MB / 3.844 GB, free: 23.16 MB / 0.5417 GB Notification: Performance of SimCode: time 2.91e-07/5.516, allocations: 0 / 3.844 GB, free: 23.16 MB / 0.5417 GB Notification: Performance of Templates: time 0.06091/5.577, allocations: 50.26 MB / 3.893 GB, free: 5.848 MB / 0.5417 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValveIncompressible/TestValveIncompressible.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches