Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.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.Fittings.TestMultiPortTraceSubstances,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume1.mC_scaled.1.|volume1.medium.T|volume1.medium.Xi.1.|volume1.medium.p|volume2.mC_scaled.1.|volume2.medium.T|volume2.medium.Xi.1.|volume2.medium.p|volume3.mC_scaled.1.|volume3.medium.T|volume3.medium.Xi.1.|volume3.medium.p",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances") translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume1.mC_scaled.1.|volume1.medium.T|volume1.medium.Xi.1.|volume1.medium.p|volume2.mC_scaled.1.|volume2.medium.T|volume2.medium.Xi.1.|volume2.medium.p|volume3.mC_scaled.1.|volume3.medium.T|volume3.medium.Xi.1.|volume3.medium.p",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances") [: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.001709/0.001709, allocations: 172.3 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.657/1.657, allocations: 205.2 MB / 213.8 MB, free: 13.92 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.001291/0.001291, allocations: 90.3 kB / 261.8 MB, free: 13.61 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.2647/0.2647, allocations: 43.5 MB / 353.2 MB, free: 2.02 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.656e-06/8.817e-06, allocations: 0 / 417.7 MB, free: 40.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2873/0.2873, allocations: 58.84 MB / 476.5 MB, free: 5.086 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.114/8.401, allocations: 3.62 GB / 4.085 GB, free: 136.9 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002736/8.401, allocations: 88.2 kB / 4.085 GB, free: 136.9 MB / 0.4948 GB Notification: Performance of FrontEnd: time 8.8/17.2, allocations: 1.635 GB / 5.72 GB, free: 32.43 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 0.0003474/17.2, allocations: 84.67 kB / 5.72 GB, free: 32.43 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 752 * Number of variables: 752 Notification: Performance of Generate backend data structure: time 0.04026/17.24, allocations: 8.797 MB / 5.729 GB, free: 28.59 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.438e-05/17.24, allocations: 12.78 kB / 5.729 GB, free: 28.59 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002923/17.25, allocations: 404.3 kB / 5.729 GB, free: 28.41 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008548/17.25, allocations: 2.107 MB / 5.731 GB, free: 27.94 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005107/17.25, allocations: 408.1 kB / 5.732 GB, free: 27.65 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001596/17.26, allocations: 171.4 kB / 5.732 GB, free: 27.65 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01376/17.27, allocations: 4.504 MB / 5.736 GB, free: 27.63 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01416/17.28, allocations: 4.523 MB / 5.741 GB, free: 26.94 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001101/17.28, allocations: 14.41 kB / 5.741 GB, free: 26.94 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007677/17.29, allocations: 7.656 kB / 5.741 GB, free: 26.94 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003803/17.29, allocations: 282.7 kB / 5.741 GB, free: 26.93 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05005/17.34, allocations: 20.34 MB / 5.761 GB, free: 17 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005432/17.34, allocations: 1.801 MB / 5.762 GB, free: 16.97 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003995/17.35, allocations: 1.534 MB / 5.764 GB, free: 16.96 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00355/17.35, allocations: 3.351 MB / 5.767 GB, free: 13.48 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.625e-05/17.35, allocations: 68.17 kB / 5.767 GB, free: 13.45 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=232): time 4.999e-06/17.35, allocations: 0 / 5.767 GB, free: 13.45 MB / 0.6042 GB Notification: Performance of matching and sorting (n=268): time 0.09686/17.45, allocations: 13.72 MB / 5.781 GB, free: 12.38 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001185/17.45, allocations: 236 kB / 5.781 GB, free: 12.12 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006102/17.45, allocations: 1.712 MB / 5.783 GB, free: 11.86 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.001249/17.45, allocations: 34.61 kB / 5.783 GB, free: 11.83 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.001269/17.45, allocations: 1.16 MB / 5.784 GB, free: 11.02 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.002356/17.46, allocations: 0.9149 MB / 5.785 GB, free: 10.42 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009359/17.46, allocations: 2.938 kB / 5.785 GB, free: 10.42 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0004668/17.46, allocations: 472.9 kB / 5.785 GB, free: 10.1 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008165/17.47, allocations: 1.826 MB / 5.787 GB, free: 10.09 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008897/17.48, allocations: 3.003 MB / 5.79 GB, free: 8.715 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04429/17.52, allocations: 5.878 MB / 5.796 GB, free: 8.668 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.457e-05/17.52, allocations: 10.53 kB / 5.796 GB, free: 8.668 MB / 0.6042 GB Notification: Performance of matching and sorting (n=502) (initialization): time 0.05568/17.58, allocations: 8.833 MB / 5.804 GB, free: 8.449 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.005871/17.58, allocations: 14.43 MB / 5.818 GB, free: 9.406 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001889/17.58, allocations: 38.62 kB / 5.818 GB, free: 9.406 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005409/17.59, allocations: 0.7244 MB / 5.819 GB, free: 9.383 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007872/17.6, allocations: 0.9178 MB / 5.82 GB, free: 9.383 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004803/17.6, allocations: 2.612 MB / 5.822 GB, free: 7.809 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00669/17.61, allocations: 298.1 kB / 5.823 GB, free: 7.793 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001563/17.61, allocations: 283.7 kB / 5.823 GB, free: 7.793 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/17.61, allocations: 3.719 kB / 5.823 GB, free: 7.793 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.05342/17.66, allocations: 8.359 MB / 5.831 GB, free: 7.688 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001465/17.66, allocations: 39.75 kB / 5.831 GB, free: 7.688 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005306/17.67, allocations: 0.7332 MB / 5.832 GB, free: 7.664 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007838/17.68, allocations: 0.9118 MB / 5.833 GB, free: 7.664 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004825/17.68, allocations: 2.602 MB / 5.835 GB, free: 6.098 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006589/17.69, allocations: 302 kB / 5.836 GB, free: 6.082 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001506/17.69, allocations: 279 kB / 5.836 GB, free: 6.082 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 166 * Number of states: 0 () * Number of discrete variables: 22 (traceSubstance1.ind,traceSubstance2.ind,traceSubstance3.ind,traceSubstance.ind,volume1.regularFlow[1],volume1.regularFlow[2],volume1.regularFlow[3],volume2.regularFlow[1],volume2.regularFlow[2],volume2.regularFlow[3],volume3.regularFlow[1],volume3.regularFlow[2],volume3.regularFlow[3],volume3.inFlow[3],volume3.inFlow[2],volume3.inFlow[1],volume2.inFlow[3],volume2.inFlow[2],volume2.inFlow[1],volume1.inFlow[3],volume1.inFlow[2],volume1.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (481): * Single equations (assignments): 474 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 6,2 6,2 6} Notification: Performance of prepare postOptimizeDAE: time 0.001736/17.69, allocations: 158.4 kB / 5.836 GB, free: 6.027 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001186/17.69, allocations: 273.8 kB / 5.836 GB, free: 5.891 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02958/17.72, allocations: 6.748 MB / 5.843 GB, free: 5.582 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.489e-05/17.72, allocations: 32.61 kB / 5.843 GB, free: 5.582 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.478e-05/17.72, allocations: 3.906 kB / 5.843 GB, free: 5.578 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.34e-05/17.72, allocations: 14.3 kB / 5.843 GB, free: 5.578 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03384/17.76, allocations: 8.768 MB / 5.852 GB, free: 5.07 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.337e-05/17.76, allocations: 3.938 kB / 5.852 GB, free: 5.07 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005462/17.76, allocations: 0.5477 MB / 5.852 GB, free: 5.07 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007459/17.77, allocations: 0.9199 MB / 5.853 GB, free: 5.031 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001002/17.77, allocations: 87.36 kB / 5.853 GB, free: 5.031 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004512/17.77, allocations: 2.493 MB / 5.855 GB, free: 3.465 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.145e-06/17.77, allocations: 3.344 kB / 5.855 GB, free: 3.465 MB / 0.6198 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02737/17.8, allocations: 7.389 MB / 5.863 GB, free: 2.871 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003524/17.8, allocations: 0.839 MB / 5.864 GB, free: 2.629 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001434/17.81, allocations: 24.53 kB / 5.864 GB, free: 2.629 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006023/17.81, allocations: 237.9 kB / 5.864 GB, free: 2.617 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009519/17.81, allocations: 189.8 kB / 5.864 GB, free: 2.613 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007395/17.81, allocations: 177.2 kB / 5.864 GB, free: 2.613 MB / 0.6198 GB Notification: Performance of sort global known variables: time 0.003076/17.82, allocations: 1.292 MB / 5.865 GB, free: 2.469 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.02028/17.84, allocations: 4.032 MB / 5.869 GB, free: 1.695 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 12 (volume1.medium.p,volume1.medium.Xi[1],volume1.medium.T,volume1.mC_scaled[1],volume2.medium.p,volume2.medium.Xi[1],volume2.medium.T,volume2.mC_scaled[1],volume3.medium.p,volume3.medium.Xi[1],volume3.medium.T,volume3.mC_scaled[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (285): * Single equations (assignments): 273 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 6,2 6,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.02137/17.86, allocations: 5.592 MB / 5.875 GB, free: 416 kB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.02278/17.88, allocations: 7.441 MB / 5.882 GB, free: 76 kB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.765e-05/17.88, allocations: 4.594 kB / 5.882 GB, free: 76 kB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.008572/17.89, allocations: 2.113 MB / 5.884 GB, free: 60 kB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01393/17.9, allocations: 1.023 MB / 5.885 GB, free: 8 kB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03733/17.94, allocations: 6.587 MB / 5.892 GB, free: 14.92 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01031/17.95, allocations: 2.802 MB / 5.894 GB, free: 14.14 MB / 0.6355 GB Notification: Performance of SimCode: time 2.395e-06/17.95, allocations: 0 / 5.894 GB, free: 14.14 MB / 0.6355 GB Notification: Performance of Templates: time 0.5783/18.53, allocations: 129.3 MB / 6.021 GB, free: 79.18 MB / 0.6355 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Fittings/TestMultiPortTraceSubstances/TestMultiPortTraceSubstances.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches