Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|flowResistance.rear.m_flow|flowResistance1.rear.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance") translateModel(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|flowResistance.rear.m_flow|flowResistance1.rear.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00122/0.00122, allocations: 112.5 kB / 15.73 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001321/0.001322, allocations: 188.3 kB / 16.67 MB, free: 6.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.354/1.354, allocations: 222.9 MB / 240.4 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6839/0.6839, allocations: 93.7 MB / 384.2 MB, free: 6.938 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001636/0.001636, allocations: 92.03 kB / 0.5204 GB, free: 5.828 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1309/0.1326, allocations: 68.27 MB / 0.5871 GB, free: 1.488 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.4237/0.5563, allocations: 149.5 MB / 0.7331 GB, free: 12.92 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.005387/0.5617, allocations: 4.644 MB / 0.7376 GB, free: 8.262 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004776/0.5622, allocations: 27.81 kB / 0.7376 GB, free: 8.234 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0008306/0.5631, allocations: 302 kB / 0.7379 GB, free: 7.938 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001447/0.5646, allocations: 0.6641 MB / 0.7386 GB, free: 7.27 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001074/0.5657, allocations: 0.4904 MB / 0.739 GB, free: 6.777 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.000988/0.5667, allocations: 0.9723 MB / 0.74 GB, free: 5.801 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002955/0.567, allocations: 165.2 kB / 0.7402 GB, free: 5.645 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000936/0.5679, allocations: 0.5172 MB / 0.7407 GB, free: 5.125 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005509/0.5685, allocations: 462.2 kB / 0.7411 GB, free: 4.672 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 6.736e-05/0.5686, allocations: 44 kB / 0.7411 GB, free: 4.629 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001455/0.57, allocations: 0.7603 MB / 0.7419 GB, free: 3.867 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001185/0.5701, allocations: 119.4 kB / 0.742 GB, free: 3.75 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002862/0.5704, allocations: 318.2 kB / 0.7423 GB, free: 3.438 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001356/0.5718, allocations: 0.9733 MB / 0.7433 GB, free: 2.465 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.5718, allocations: 0 / 0.7433 GB, free: 2.465 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.233e-06/0.5718, allocations: 0 / 0.7433 GB, free: 2.465 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 9.598e-06/0.5718, allocations: 0 / 0.7433 GB, free: 2.465 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.001456/0.5733, allocations: 0.9883 MB / 0.7442 GB, free: 1.422 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.237e-05/0.5733, allocations: 8.031 kB / 0.7442 GB, free: 1.414 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001255/0.5735, allocations: 76.47 kB / 0.7443 GB, free: 1.34 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007936/0.5743, allocations: 0.5525 MB / 0.7448 GB, free: 0.75 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.723e-05/0.5743, allocations: 33.38 kB / 0.7449 GB, free: 0.7148 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.328e-05/0.5744, allocations: 44.38 kB / 0.7449 GB, free: 0.6719 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007668/0.5752, allocations: 0.5008 MB / 0.7454 GB, free: 156 kB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.907e-05/0.5752, allocations: 19.91 kB / 0.7454 GB, free: 136 kB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.732e-05/0.5752, allocations: 16 kB / 0.7454 GB, free: 120 kB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.798e-06/0.5753, allocations: 8 kB / 0.7454 GB, free: 112 kB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007342/0.576, allocations: 479.7 kB / 0.7459 GB, free: 15.64 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002358/0.5784, allocations: 2.175 MB / 0.748 GB, free: 13.27 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000747/0.5791, allocations: 356.5 kB / 0.7484 GB, free: 12.92 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003252/0.5795, allocations: 210.1 kB / 0.7486 GB, free: 12.71 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002315/0.5818, allocations: 1.998 MB / 0.7505 GB, free: 10.43 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.178e-05/0.5818, allocations: 38.88 kB / 0.7506 GB, free: 10.38 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=47): time 1.843e-06/0.5818, allocations: 0 / 0.7506 GB, free: 10.38 MB / 0.5919 GB Notification: Performance of matching and sorting (n=47): time 0.001591/0.5834, allocations: 0.7953 MB / 0.7513 GB, free: 9.539 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.471e-05/0.5835, allocations: 55.84 kB / 0.7514 GB, free: 9.473 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005149/0.584, allocations: 487.1 kB / 0.7518 GB, free: 8.984 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.066e-05/0.584, allocations: 33.7 kB / 0.7519 GB, free: 8.945 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001845/0.5842, allocations: 276.8 kB / 0.7521 GB, free: 8.672 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.000117/0.5844, allocations: 174.5 kB / 0.7523 GB, free: 8.5 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001244/0.5845, allocations: 82.11 kB / 0.7524 GB, free: 8.41 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.000149/0.5846, allocations: 374.7 kB / 0.7527 GB, free: 8.035 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000242/0.5849, allocations: 124.8 kB / 0.7529 GB, free: 7.914 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002887/0.5852, allocations: 193 kB / 0.753 GB, free: 7.711 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005669/0.5858, allocations: 340.9 kB / 0.7534 GB, free: 7.367 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.5858, allocations: 0 / 0.7534 GB, free: 7.367 MB / 0.5919 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009033/0.5867, allocations: 0.5011 MB / 0.7539 GB, free: 6.852 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.774e-05/0.5867, allocations: 10.34 kB / 0.7539 GB, free: 6.844 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.922e-06/0.5867, allocations: 0 / 0.7539 GB, free: 6.844 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003036/0.587, allocations: 77.67 kB / 0.7539 GB, free: 6.762 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000305/0.5874, allocations: 83.89 kB / 0.754 GB, free: 6.68 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002161/0.5895, allocations: 2.919 MB / 0.7569 GB, free: 3.48 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002387/0.5898, allocations: 43.66 kB / 0.7569 GB, free: 3.438 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.042e-05/0.5898, allocations: 23.98 kB / 0.7569 GB, free: 3.414 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002161/0.5901, allocations: 169.8 kB / 0.7571 GB, free: 3.238 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.527e-05/0.5902, allocations: 59.62 kB / 0.7572 GB, free: 3.18 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001287/0.5915, allocations: 0.7104 MB / 0.7579 GB, free: 2.457 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.063e-06/0.5915, allocations: 7.984 kB / 0.7579 GB, free: 2.449 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.5915, allocations: 4 kB / 0.7579 GB, free: 2.445 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.225e-06/0.5915, allocations: 0.875 kB / 0.7579 GB, free: 2.445 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001768/0.5933, allocations: 1.199 MB / 0.759 GB, free: 1.168 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.5933, allocations: 3.938 kB / 0.759 GB, free: 1.164 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002556/0.5935, allocations: 80.03 kB / 0.7591 GB, free: 1.086 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002192/0.5938, allocations: 65.78 kB / 0.7592 GB, free: 1.016 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.567e-05/0.5938, allocations: 19.98 kB / 0.7592 GB, free: 0.9961 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002053/0.5959, allocations: 2.927 MB / 0.7621 GB, free: 13.79 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-06/0.5959, allocations: 7.234 kB / 0.7621 GB, free: 13.78 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001192/0.5971, allocations: 0.7613 MB / 0.7628 GB, free: 12.99 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000121/0.5972, allocations: 140.6 kB / 0.7629 GB, free: 12.84 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.782e-05/0.5973, allocations: 15.95 kB / 0.763 GB, free: 12.82 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002111/0.5975, allocations: 12.06 kB / 0.763 GB, free: 12.81 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.897e-05/0.5976, allocations: 47.83 kB / 0.763 GB, free: 12.76 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.231e-05/0.5977, allocations: 15.98 kB / 0.763 GB, free: 12.75 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0004135/0.5981, allocations: 366.8 kB / 0.7634 GB, free: 12.39 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5981, allocations: 0 / 0.7634 GB, free: 12.39 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0006178/0.5987, allocations: 195.6 kB / 0.7636 GB, free: 12.2 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (flowResistance.rear.m_flow,flowResistance1.rear.m_flow) * 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 (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00041/0.5991, allocations: 274.4 kB / 0.7638 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0009899/0.6001, allocations: 0.6003 MB / 0.7644 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.6002, allocations: 0 / 0.7644 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0005703/0.6007, allocations: 433.6 kB / 0.7648 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009558/0.6017, allocations: 185.9 kB / 0.765 GB, free: 10.67 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001994/0.6037, allocations: 1.15 MB / 0.7661 GB, free: 9.484 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004436/0.6042, allocations: 0.8748 MB / 0.767 GB, free: 8.582 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003535/0.6045, allocations: 119 kB / 0.7671 GB, free: 8.48 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001517/0.6047, allocations: 63.42 kB / 0.7672 GB, free: 8.418 MB / 0.6075 GB Notification: Performance of SimCode: time 5.61e-07/0.6047, allocations: 0 / 0.7672 GB, free: 8.418 MB / 0.6075 GB Notification: Performance of Templates: time 0.01858/0.6233, allocations: 10.54 MB / 0.7774 GB, free: 13.98 MB / 0.6231 GB make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.makefile (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.sim & ./ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches