Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.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.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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002396/0.002395, allocations: 186.3 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.929/1.929, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001163/0.001163, allocations: 92.08 kB / 270.9 MB, free: 8.375 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.5566/0.5566, allocations: 43.55 MB / 362.7 MB, free: 52.2 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004515/0.0004517, allocations: 8 kB / 431.4 MB, free: 6.184 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1261/0.1266, allocations: 58.85 MB / 490.2 MB, free: 11.25 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.98/11.11, allocations: 3.621 GB / 4.099 GB, free: 123.7 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003075/11.11, allocations: 94.7 kB / 4.1 GB, free: 123.7 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 9.372/20.48, allocations: 1.638 GB / 5.738 GB, free: 4.961 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.665e-06/20.48, allocations: 0 / 5.738 GB, free: 4.961 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 0.0003984/20.48, allocations: 87.86 kB / 5.738 GB, free: 4.875 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.04655/20.53, allocations: 9.057 MB / 5.747 GB, free: 11.71 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.71e-05/20.53, allocations: 12.03 kB / 5.747 GB, free: 11.7 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003601/20.53, allocations: 403.6 kB / 5.747 GB, free: 11.3 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009377/20.54, allocations: 2.096 MB / 5.749 GB, free: 9.145 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008181/20.54, allocations: 0.4931 MB / 5.75 GB, free: 8.594 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00205/20.54, allocations: 295.8 kB / 5.75 GB, free: 8.305 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01997/20.56, allocations: 4.92 MB / 5.755 GB, free: 3.121 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001778/20.56, allocations: 7.938 kB / 5.755 GB, free: 3.113 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001735/20.57, allocations: 124 kB / 5.755 GB, free: 2.992 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006125/20.57, allocations: 265.1 kB / 5.755 GB, free: 2.73 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.617/21.18, allocations: 5.004 MB / 5.76 GB, free: 38.6 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05478/21.24, allocations: 20.68 MB / 5.78 GB, free: 28.82 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009057/21.25, allocations: 2.716 MB / 5.783 GB, free: 28.79 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00389/21.25, allocations: 3.347 MB / 5.786 GB, free: 25.31 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.516e-05/21.25, allocations: 66.33 kB / 5.786 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=235): time 5.831e-06/21.25, allocations: 4.219 kB / 5.786 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of matching and sorting (n=271): time 0.1139/21.36, allocations: 16.75 MB / 5.802 GB, free: 24.11 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00011/21.37, allocations: 237.8 kB / 5.803 GB, free: 23.85 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004948/21.37, allocations: 2.174 MB / 5.805 GB, free: 23.62 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.00111/21.37, allocations: 80.77 kB / 5.805 GB, free: 23.59 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.001209/21.37, allocations: 1.372 MB / 5.806 GB, free: 23 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.001771/21.37, allocations: 0.9568 MB / 5.807 GB, free: 22.53 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006024/21.37, allocations: 82.56 kB / 5.807 GB, free: 22.53 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0002789/21.38, allocations: 469.9 kB / 5.808 GB, free: 22.21 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007279/21.38, allocations: 2.006 MB / 5.81 GB, free: 22.2 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009477/21.39, allocations: 3.215 MB / 5.813 GB, free: 20.82 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009685/21.4, allocations: 2.558 MB / 5.815 GB, free: 20.65 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.174e-05/21.4, allocations: 9.531 kB / 5.815 GB, free: 20.65 MB / 0.6198 GB Notification: Performance of matching and sorting (n=502) (initialization): time 0.0247/21.43, allocations: 6.096 MB / 5.821 GB, free: 20.3 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.005231/21.43, allocations: 14.57 MB / 5.835 GB, free: 21.12 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001936/21.43, allocations: 46.48 kB / 5.836 GB, free: 21.11 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008644/21.44, allocations: 0.9739 MB / 5.836 GB, free: 21.09 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007898/21.45, allocations: 0.9224 MB / 5.837 GB, free: 21.09 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007719/21.46, allocations: 2.786 MB / 5.84 GB, free: 19.54 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007927/21.46, allocations: 391 kB / 5.84 GB, free: 19.52 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001705/21.47, allocations: 281.5 kB / 5.841 GB, free: 19.52 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/21.47, allocations: 3.062 kB / 5.841 GB, free: 19.52 MB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02267/21.49, allocations: 5.855 MB / 5.846 GB, free: 19.29 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001367/21.49, allocations: 35.78 kB / 5.846 GB, free: 19.29 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008273/21.5, allocations: 0.987 MB / 5.847 GB, free: 19.26 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007836/21.51, allocations: 0.9108 MB / 5.848 GB, free: 19.26 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007927/21.51, allocations: 2.791 MB / 5.851 GB, free: 17.7 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006513/21.52, allocations: 377.3 kB / 5.851 GB, free: 17.69 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00162/21.52, allocations: 279.9 kB / 5.852 GB, free: 17.69 MB / 0.6355 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 () * Number of clocked 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.00399/21.53, allocations: 0.9716 MB / 5.853 GB, free: 17.5 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00126/21.53, allocations: 297.2 kB / 5.853 GB, free: 17.36 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02341/21.55, allocations: 6.211 MB / 5.859 GB, free: 17.07 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.844e-05/21.55, allocations: 36.72 kB / 5.859 GB, free: 17.07 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.694e-05/21.55, allocations: 7.734 kB / 5.859 GB, free: 17.07 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001025/21.55, allocations: 16.83 kB / 5.859 GB, free: 17.07 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0336/21.58, allocations: 9.043 MB / 5.868 GB, free: 16.53 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.825e-05/21.58, allocations: 5.125 kB / 5.868 GB, free: 16.53 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005609/21.59, allocations: 0.5708 MB / 5.868 GB, free: 16.53 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01033/21.6, allocations: 1.164 MB / 5.87 GB, free: 16.49 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001144/21.6, allocations: 124.7 kB / 5.87 GB, free: 16.49 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006778/21.61, allocations: 2.677 MB / 5.872 GB, free: 14.93 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.618e-06/21.61, allocations: 2.438 kB / 5.872 GB, free: 14.93 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02692/21.64, allocations: 7.56 MB / 5.88 GB, free: 14.31 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003986/21.64, allocations: 0.8934 MB / 5.881 GB, free: 14.05 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001669/21.64, allocations: 73.48 kB / 5.881 GB, free: 14.05 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006273/21.65, allocations: 284.3 kB / 5.881 GB, free: 14.05 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001137/21.65, allocations: 214.7 kB / 5.881 GB, free: 14.04 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007523/21.65, allocations: 190 kB / 5.881 GB, free: 14.04 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.004234/21.65, allocations: 1.618 MB / 5.883 GB, free: 13.89 MB / 0.6355 GB Notification: Performance of sort global known variables: time 9.82e-07/21.65, allocations: 0 / 5.883 GB, free: 13.89 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.02287/21.68, allocations: 4.277 MB / 5.887 GB, free: 13.89 MB / 0.6355 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (297): * Single equations (assignments): 285 * 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.02163/21.7, allocations: 5.167 MB / 5.892 GB, free: 13.25 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0297/21.73, allocations: 8.406 MB / 5.9 GB, free: 12.64 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.255e-05/21.73, allocations: 9.5 kB / 5.9 GB, free: 12.64 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.008906/21.74, allocations: 2.407 MB / 5.903 GB, free: 12.62 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01262/21.75, allocations: 1.334 MB / 5.904 GB, free: 12.58 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02829/21.78, allocations: 9.062 MB / 5.913 GB, free: 9.625 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003346/21.78, allocations: 2.285 MB / 5.915 GB, free: 8.855 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003647/21.79, allocations: 474 kB / 5.915 GB, free: 8.848 MB / 0.6355 GB Notification: Performance of SimCode: time 1.864e-06/21.79, allocations: 0 / 5.915 GB, free: 8.848 MB / 0.6355 GB Notification: Performance of Templates: time 0.9215/22.71, allocations: 133.4 MB / 6.046 GB, free: 59.59 MB / 0.6511 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/jenkins1/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