Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances.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.TestJunctionTraceSubstances,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junction1.mC_scaled.1.|junction1.medium.T|junction1.medium.Xi.1.|junction1.medium.p",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances") translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junction1.mC_scaled.1.|junction1.medium.T|junction1.medium.Xi.1.|junction1.medium.p",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001614/0.001613, allocations: 178.3 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.05/2.05, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001073/0.001073, allocations: 77.31 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2962/0.2962, allocations: 43.49 MB / 353.6 MB, free: 2.266 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.52e-05/2.56e-05, allocations: 4.219 kB / 418.2 MB, free: 41.03 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4141/0.4142, allocations: 58.85 MB / 477.1 MB, free: 5.262 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.73/11.14, allocations: 3.632 GB / 4.098 GB, free: 134.8 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002959/11.14, allocations: 83.33 kB / 4.098 GB, free: 134.8 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 9.661/20.8, allocations: 1.449 GB / 5.547 GB, free: 36.98 MB / 0.589 GB Notification: Performance of FrontEnd: time 2.385e-06/20.8, allocations: 1.5 kB / 5.547 GB, free: 36.98 MB / 0.589 GB Notification: Performance of Transformations before backend: time 0.0002632/20.8, allocations: 70.08 kB / 5.547 GB, free: 36.96 MB / 0.589 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 498 * Number of variables: 498 Notification: Performance of Generate backend data structure: time 0.03262/20.83, allocations: 7.278 MB / 5.554 GB, free: 33.24 MB / 0.589 GB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/20.83, allocations: 8.719 kB / 5.554 GB, free: 33.24 MB / 0.589 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002168/20.84, allocations: 286.8 kB / 5.554 GB, free: 33.12 MB / 0.589 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006013/20.84, allocations: 1.554 MB / 5.556 GB, free: 32.71 MB / 0.589 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000131/20.84, allocations: 69.77 kB / 5.556 GB, free: 32.71 MB / 0.589 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007396/20.84, allocations: 108.8 kB / 5.556 GB, free: 32.71 MB / 0.589 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008198/20.85, allocations: 3.096 MB / 5.559 GB, free: 32.7 MB / 0.589 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00853/20.86, allocations: 2.825 MB / 5.562 GB, free: 32.48 MB / 0.589 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.002e-05/20.86, allocations: 4.156 kB / 5.562 GB, free: 32.48 MB / 0.589 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004635/20.86, allocations: 5.156 kB / 5.562 GB, free: 32.48 MB / 0.589 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003605/20.86, allocations: 182.1 kB / 5.562 GB, free: 32.47 MB / 0.589 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.035/20.9, allocations: 11.76 MB / 5.573 GB, free: 28.04 MB / 0.589 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004504/20.9, allocations: 1.62 MB / 5.575 GB, free: 28 MB / 0.589 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002477/20.9, allocations: 1.061 MB / 5.576 GB, free: 27.99 MB / 0.589 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001844/20.9, allocations: 1.676 MB / 5.577 GB, free: 26.3 MB / 0.589 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.992e-05/20.9, allocations: 61.22 kB / 5.578 GB, free: 26.26 MB / 0.589 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003511/20.91, allocations: 276.8 kB / 5.578 GB, free: 26.19 MB / 0.589 GB Notification: Performance of pre-optimization done (n=153): time 8.997e-06/20.91, allocations: 2.344 kB / 5.578 GB, free: 26.19 MB / 0.589 GB Notification: Performance of matching and sorting (n=165): time 0.04118/20.95, allocations: 7.154 MB / 5.585 GB, free: 25.47 MB / 0.589 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.389e-05/20.95, allocations: 202.2 kB / 5.585 GB, free: 25.25 MB / 0.589 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002708/20.95, allocations: 1.254 MB / 5.586 GB, free: 25.07 MB / 0.589 GB Notification: Performance of collectPreVariables (initialization): time 0.0007267/20.95, allocations: 29.11 kB / 5.586 GB, free: 25.04 MB / 0.589 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006935/20.95, allocations: 0.9648 MB / 5.587 GB, free: 24.49 MB / 0.589 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009817/20.96, allocations: 0.5546 MB / 5.588 GB, free: 24.12 MB / 0.589 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003326/20.96, allocations: 0 / 5.588 GB, free: 24.12 MB / 0.589 GB Notification: Performance of setup shared object (initialization): time 0.0001772/20.96, allocations: 397.4 kB / 5.588 GB, free: 23.81 MB / 0.589 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003013/20.96, allocations: 1.209 MB / 5.589 GB, free: 23.8 MB / 0.589 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003449/20.96, allocations: 1.536 MB / 5.591 GB, free: 23.48 MB / 0.589 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03051/20.99, allocations: 3.936 MB / 5.595 GB, free: 23.46 MB / 0.589 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-05/20.99, allocations: 3.094 kB / 5.595 GB, free: 23.46 MB / 0.589 GB Notification: Performance of matching and sorting (n=275) (initialization): time 0.04169/21.03, allocations: 6.192 MB / 5.601 GB, free: 23.32 MB / 0.589 GB Notification: Performance of prepare postOptimizeDAE: time 0.000712/21.04, allocations: 2.943 MB / 5.604 GB, free: 20.26 MB / 0.589 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.114e-05/21.04, allocations: 5.438 kB / 5.604 GB, free: 20.26 MB / 0.589 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008065/21.04, allocations: 0.901 MB / 5.604 GB, free: 20.24 MB / 0.589 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004919/21.05, allocations: 0.5086 MB / 5.605 GB, free: 20.24 MB / 0.589 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004721/21.05, allocations: 2.166 MB / 5.607 GB, free: 19.18 MB / 0.589 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005517/21.06, allocations: 146.6 kB / 5.607 GB, free: 19.18 MB / 0.589 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001176/21.06, allocations: 167.6 kB / 5.607 GB, free: 19.18 MB / 0.589 GB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/21.06, allocations: 8 kB / 5.607 GB, free: 19.18 MB / 0.589 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.04206/21.1, allocations: 5.89 MB / 5.613 GB, free: 19.11 MB / 0.589 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.069e-05/21.1, allocations: 10.94 kB / 5.613 GB, free: 19.11 MB / 0.589 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007604/21.11, allocations: 0.8052 MB / 5.614 GB, free: 19.09 MB / 0.589 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004808/21.11, allocations: 0.5142 MB / 5.614 GB, free: 19.09 MB / 0.589 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003311/21.12, allocations: 1.846 MB / 5.616 GB, free: 18.04 MB / 0.589 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004191/21.12, allocations: 147.1 kB / 5.616 GB, free: 18.04 MB / 0.589 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006956/21.12, allocations: 165.6 kB / 5.617 GB, free: 18.03 MB / 0.589 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: junction.port_2.m_flow:VARIABLE(flow=true min = max(-(if junction1.portFlowDirection_1 == Modelica.Fluid.Types.PortFlowDirection.Leaving then 0.0 else 9.999999999999999e+59), if junction.portFlowDirection_2 == Modelica.Fluid.Types.PortFlowDirection.Entering then 0.0 else -9.999999999999999e+59) max = min(-(if junction1.portFlowDirection_1 == Modelica.Fluid.Types.PortFlowDirection.Entering then 0.0 else -9.999999999999999e+59), if junction.portFlowDirection_2 == Modelica.Fluid.Types.PortFlowDirection.Leaving then 0.0 else 9.999999999999999e+59) unit = "kg/s" ) "Mass flow rate from the connection point into the component" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 2 (traceSubstance2.ind,traceSubstance.ind) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (250): * Single equations (assignments): 246 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 6,3 16} Notification: Performance of prepare postOptimizeDAE: time 0.001067/21.12, allocations: 177 kB / 5.617 GB, free: 17.92 MB / 0.589 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007519/21.12, allocations: 189.9 kB / 5.617 GB, free: 17.83 MB / 0.589 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01329/21.14, allocations: 3.913 MB / 5.621 GB, free: 17.56 MB / 0.589 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.346e-05/21.14, allocations: 25.53 kB / 5.621 GB, free: 17.55 MB / 0.589 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.074e-05/21.14, allocations: 0 / 5.621 GB, free: 17.55 MB / 0.589 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.298e-05/21.14, allocations: 9.281 kB / 5.621 GB, free: 17.55 MB / 0.589 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01736/21.16, allocations: 5.341 MB / 5.626 GB, free: 17.06 MB / 0.589 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.554e-05/21.16, allocations: 3.438 kB / 5.626 GB, free: 17.06 MB / 0.589 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00277/21.16, allocations: 304.3 kB / 5.626 GB, free: 17.06 MB / 0.589 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005075/21.16, allocations: 0.7548 MB / 5.627 GB, free: 17.04 MB / 0.589 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005411/21.16, allocations: 40.97 kB / 5.627 GB, free: 17.04 MB / 0.589 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003837/21.17, allocations: 2.057 MB / 5.629 GB, free: 15.99 MB / 0.589 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.14e-05/21.17, allocations: 8.25 kB / 5.629 GB, free: 15.99 MB / 0.589 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01361/21.18, allocations: 4.313 MB / 5.633 GB, free: 15.2 MB / 0.589 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001385/21.18, allocations: 351.8 kB / 5.634 GB, free: 15 MB / 0.589 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001167/21.18, allocations: 14.31 kB / 5.634 GB, free: 15 MB / 0.589 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004436/21.19, allocations: 133.6 kB / 5.634 GB, free: 15 MB / 0.589 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005842/21.19, allocations: 135.4 kB / 5.634 GB, free: 14.99 MB / 0.589 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004269/21.19, allocations: 120.2 kB / 5.634 GB, free: 14.99 MB / 0.589 GB Notification: Performance of sorting global known variables: time 0.002206/21.19, allocations: 1.044 MB / 5.635 GB, free: 14.88 MB / 0.589 GB Notification: Performance of sort global known variables: time 5.71e-07/21.19, allocations: 3.438 kB / 5.635 GB, free: 14.88 MB / 0.589 GB Notification: Performance of remove unused functions: time 0.01385/21.21, allocations: 3.056 MB / 5.638 GB, free: 14.29 MB / 0.589 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (junction1.medium.p,junction1.medium.Xi[1],junction1.medium.T,junction1.mC_scaled[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (150): * Single equations (assignments): 148 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 6,3 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.01619/21.22, allocations: 4.547 MB / 5.642 GB, free: 13.21 MB / 0.589 GB Notification: Performance of simCode: created initialization part: time 0.01284/21.24, allocations: 4.498 MB / 5.647 GB, free: 12.92 MB / 0.589 GB Notification: Performance of simCode: created event and clocks part: time 1.53e-05/21.24, allocations: 4.844 kB / 5.647 GB, free: 12.92 MB / 0.589 GB Notification: Performance of simCode: created simulation system equations: time 0.003153/21.24, allocations: 1.164 MB / 5.648 GB, free: 12.91 MB / 0.589 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007876/21.25, allocations: 0.9098 MB / 5.649 GB, free: 12.86 MB / 0.589 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009463/21.26, allocations: 3.572 MB / 5.652 GB, free: 12.07 MB / 0.589 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00153/21.26, allocations: 1.708 MB / 5.654 GB, free: 11.33 MB / 0.589 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002419/21.26, allocations: 292.3 kB / 5.654 GB, free: 11.32 MB / 0.589 GB Notification: Performance of SimCode: time 1.282e-06/21.26, allocations: 0 / 5.654 GB, free: 11.32 MB / 0.589 GB Notification: Performance of Templates: time 0.7308/21.99, allocations: 87.61 MB / 5.74 GB, free: 48.78 MB / 0.6046 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Fittings/TestJunctionTraceSubstances/TestJunctionTraceSubstances.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches