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.001336/0.001336, allocations: 107.1 kB / 15.99 MB, free: 5.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001263/0.001263, allocations: 193.6 kB / 16.91 MB, free: 5.754 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.403/1.403, allocations: 222.9 MB / 240.6 MB, free: 13.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7248/0.7248, allocations: 93.68 MB / 384.4 MB, free: 5.43 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002324/0.002324, allocations: 79.88 kB / 463.6 MB, free: 6.434 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1278/0.1302, allocations: 68.27 MB / 0.5194 GB, free: 2.082 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.3423/0.4725, allocations: 147.9 MB / 0.6638 GB, free: 11.51 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.00608/0.4786, allocations: 4.673 MB / 0.6683 GB, free: 6.836 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000649/0.4793, allocations: 35.75 kB / 0.6684 GB, free: 6.801 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0008584/0.4802, allocations: 250.6 kB / 0.6686 GB, free: 6.555 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.001685/0.4819, allocations: 0.6256 MB / 0.6692 GB, free: 5.926 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.001159/0.4831, allocations: 462.6 kB / 0.6697 GB, free: 5.473 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.001139/0.4842, allocations: 0.983 MB / 0.6706 GB, free: 4.488 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002944/0.4845, allocations: 160.5 kB / 0.6708 GB, free: 4.348 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009419/0.4855, allocations: 0.5172 MB / 0.6713 GB, free: 3.828 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005588/0.4861, allocations: 466 kB / 0.6717 GB, free: 3.371 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 6.59e-05/0.4861, allocations: 44 kB / 0.6718 GB, free: 3.328 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001531/0.4877, allocations: 0.7719 MB / 0.6725 GB, free: 2.555 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0001335/0.4878, allocations: 123.4 kB / 0.6726 GB, free: 2.434 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0002986/0.4881, allocations: 322.2 kB / 0.6729 GB, free: 2.117 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0008972/0.489, allocations: 0.6879 MB / 0.6736 GB, free: 1.43 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.489, allocations: 4 kB / 0.6736 GB, free: 1.426 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.343e-06/0.4891, allocations: 0 / 0.6736 GB, free: 1.426 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 7.705e-06/0.4891, allocations: 0 / 0.6736 GB, free: 1.426 MB / 0.5137 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.001545/0.4906, allocations: 0.9679 MB / 0.6746 GB, free: 420 kB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.4907, allocations: 12.03 kB / 0.6746 GB, free: 408 kB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001269/0.4908, allocations: 72.09 kB / 0.6746 GB, free: 336 kB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007183/0.4915, allocations: 0.4974 MB / 0.6751 GB, free: 15.79 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.814e-05/0.4916, allocations: 37.31 kB / 0.6752 GB, free: 15.75 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.424e-05/0.4916, allocations: 48.38 kB / 0.6752 GB, free: 15.71 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000832/0.4925, allocations: 0.5008 MB / 0.6757 GB, free: 15.18 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.575e-05/0.4925, allocations: 0 / 0.6757 GB, free: 15.18 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.306e-05/0.4926, allocations: 16 kB / 0.6757 GB, free: 15.17 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.17e-05/0.4926, allocations: 9.875 kB / 0.6757 GB, free: 15.16 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007631/0.4933, allocations: 487.7 kB / 0.6762 GB, free: 14.68 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002589/0.4959, allocations: 2.182 MB / 0.6783 GB, free: 12.32 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000764/0.4967, allocations: 364.4 kB / 0.6787 GB, free: 11.95 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003452/0.4971, allocations: 211.6 kB / 0.6789 GB, free: 11.75 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002545/0.4996, allocations: 1.995 MB / 0.6808 GB, free: 9.465 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.934e-05/0.4997, allocations: 39.94 kB / 0.6809 GB, free: 9.418 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=47): time 1.954e-06/0.4997, allocations: 5.875 kB / 0.6809 GB, free: 9.414 MB / 0.5294 GB Notification: Performance of matching and sorting (n=47): time 0.001658/0.5014, allocations: 0.795 MB / 0.6816 GB, free: 8.57 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.383e-05/0.5014, allocations: 55.84 kB / 0.6817 GB, free: 8.504 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005521/0.502, allocations: 487 kB / 0.6822 GB, free: 8.016 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 3.784e-05/0.502, allocations: 33.7 kB / 0.6822 GB, free: 7.977 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002185/0.5022, allocations: 268.7 kB / 0.6824 GB, free: 7.707 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001325/0.5024, allocations: 157.6 kB / 0.6826 GB, free: 7.551 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001462/0.5025, allocations: 90.03 kB / 0.6827 GB, free: 7.457 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001775/0.5027, allocations: 370.8 kB / 0.683 GB, free: 7.086 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002597/0.503, allocations: 128.8 kB / 0.6832 GB, free: 6.957 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003028/0.5033, allocations: 189 kB / 0.6833 GB, free: 6.762 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005825/0.5039, allocations: 340.9 kB / 0.6837 GB, free: 6.414 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.5039, allocations: 0 / 0.6837 GB, free: 6.414 MB / 0.5294 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009378/0.5048, allocations: 0.4969 MB / 0.6842 GB, free: 5.902 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.5049, allocations: 4 kB / 0.6842 GB, free: 5.898 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/0.5049, allocations: 4 kB / 0.6842 GB, free: 5.895 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000296/0.5052, allocations: 70.53 kB / 0.6842 GB, free: 5.82 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003166/0.5055, allocations: 97.03 kB / 0.6843 GB, free: 5.727 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002482/0.508, allocations: 2.912 MB / 0.6872 GB, free: 2.543 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002854/0.5083, allocations: 42.22 kB / 0.6872 GB, free: 2.504 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.249e-05/0.5084, allocations: 22.53 kB / 0.6872 GB, free: 2.484 MB / 0.5294 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.0002665/0.5086, allocations: 181.7 kB / 0.6874 GB, free: 2.297 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001067/0.5087, allocations: 59.25 kB / 0.6875 GB, free: 2.238 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001361/0.5101, allocations: 0.7055 MB / 0.6881 GB, free: 1.523 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/0.5101, allocations: 4.625 kB / 0.6881 GB, free: 1.52 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.935e-06/0.5101, allocations: 0 / 0.6881 GB, free: 1.52 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/0.5102, allocations: 3.984 kB / 0.6882 GB, free: 1.516 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001889/0.512, allocations: 1.19 MB / 0.6893 GB, free: 260 kB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.5121, allocations: 5.609 kB / 0.6893 GB, free: 256 kB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002676/0.5123, allocations: 83.89 kB / 0.6894 GB, free: 172 kB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002261/0.5126, allocations: 65.59 kB / 0.6895 GB, free: 100 kB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.447e-05/0.5126, allocations: 12 kB / 0.6895 GB, free: 88 kB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002513/0.5151, allocations: 2.935 MB / 0.6923 GB, free: 12.88 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-06/0.5152, allocations: 8.938 kB / 0.6923 GB, free: 12.88 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001363/0.5165, allocations: 0.7635 MB / 0.6931 GB, free: 12.07 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001503/0.5167, allocations: 132.3 kB / 0.6932 GB, free: 11.93 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.3e-05/0.5168, allocations: 16.88 kB / 0.6932 GB, free: 11.91 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002429/0.517, allocations: 15.98 kB / 0.6932 GB, free: 11.89 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.915e-05/0.5171, allocations: 39.89 kB / 0.6933 GB, free: 11.86 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.641e-05/0.5172, allocations: 24.05 kB / 0.6933 GB, free: 11.83 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0004428/0.5176, allocations: 366.8 kB / 0.6937 GB, free: 11.48 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5176, allocations: 0 / 0.6937 GB, free: 11.48 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0006584/0.5183, allocations: 195.7 kB / 0.6938 GB, free: 11.29 MB / 0.545 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.0004702/0.5188, allocations: 274 kB / 0.6941 GB, free: 11.02 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.00114/0.5199, allocations: 0.6084 MB / 0.6947 GB, free: 10.38 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.5199, allocations: 0 / 0.6947 GB, free: 10.38 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0006166/0.5206, allocations: 433.1 kB / 0.6951 GB, free: 9.934 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001032/0.5216, allocations: 190.8 kB / 0.6953 GB, free: 9.777 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002294/0.5239, allocations: 1.364 MB / 0.6966 GB, free: 8.375 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005445/0.5245, allocations: 0.8711 MB / 0.6975 GB, free: 7.477 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001814/0.5247, allocations: 75.41 kB / 0.6976 GB, free: 7.402 MB / 0.545 GB Notification: Performance of SimCode: time 7.41e-07/0.5247, allocations: 0 / 0.6976 GB, free: 7.402 MB / 0.545 GB Notification: Performance of Templates: time 0.01923/0.5439, allocations: 14.46 MB / 0.7117 GB, free: 9.16 MB / 0.5606 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches