Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_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_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_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.001241/0.001241, allocations: 110.4 kB / 16.37 MB, free: 6.016 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.001094/0.001094, allocations: 194.3 kB / 17.31 MB, free: 5.613 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.345/1.345, allocations: 222.9 MB / 241 MB, free: 4.227 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6446/0.6446, allocations: 89.52 MB / 380.7 MB, free: 11.04 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001553/0.001553, allocations: 77.19 kB / 459.7 MB, free: 23.31 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1054, allocations: 67.32 MB / 0.5146 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.3716/0.4771, allocations: 149.4 MB / 0.6605 GB, free: 4.996 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.005408/0.4825, allocations: 4.568 MB / 0.665 GB, free: 1.27 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000462/0.483, allocations: 13.12 kB / 0.665 GB, free: 1.262 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008649/0.4839, allocations: 283.6 kB / 0.6653 GB, free: 1.027 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001635/0.4856, allocations: 0.6197 MB / 0.6659 GB, free: 0.5234 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001191/0.4868, allocations: 0.4957 MB / 0.6664 GB, free: 148 kB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.001032/0.4878, allocations: 0.8797 MB / 0.6672 GB, free: 15.63 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002746/0.4881, allocations: 152.8 kB / 0.6674 GB, free: 15.55 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009554/0.4891, allocations: 476 kB / 0.6678 GB, free: 15.27 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006631/0.4897, allocations: 448.4 kB / 0.6682 GB, free: 15.01 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.173e-05/0.4898, allocations: 42.31 kB / 0.6683 GB, free: 15.01 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001519/0.4914, allocations: 0.767 MB / 0.669 GB, free: 14.65 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001158/0.4915, allocations: 108.9 kB / 0.6691 GB, free: 14.56 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003069/0.4918, allocations: 287.1 kB / 0.6694 GB, free: 14.38 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001307/0.4931, allocations: 0.8549 MB / 0.6702 GB, free: 13.83 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.4931, allocations: 0 / 0.6702 GB, free: 13.83 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.4932, allocations: 0 / 0.6702 GB, free: 13.83 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.718e-05/0.4932, allocations: 0 / 0.6702 GB, free: 13.83 MB / 494.1 MB 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.001521/0.4947, allocations: 0.8593 MB / 0.6711 GB, free: 13.11 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.25e-05/0.4947, allocations: 9.531 kB / 0.6711 GB, free: 13.11 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001264/0.4949, allocations: 58.94 kB / 0.6711 GB, free: 13.09 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004855/0.4954, allocations: 378.8 kB / 0.6715 GB, free: 12.73 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.756e-05/0.4954, allocations: 34.47 kB / 0.6715 GB, free: 12.71 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.565e-05/0.4955, allocations: 44.66 kB / 0.6716 GB, free: 12.7 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000792/0.4963, allocations: 0.5169 MB / 0.6721 GB, free: 12.35 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.514e-05/0.4963, allocations: 0 / 0.6721 GB, free: 12.35 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.849e-05/0.4964, allocations: 20.39 kB / 0.6721 GB, free: 12.34 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.108e-05/0.4964, allocations: 14.17 kB / 0.6721 GB, free: 12.33 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007233/0.4971, allocations: 478 kB / 0.6726 GB, free: 12.11 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00244/0.4996, allocations: 2.137 MB / 0.6747 GB, free: 10.13 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007406/0.5003, allocations: 364.7 kB / 0.675 GB, free: 9.941 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003123/0.5006, allocations: 207.1 kB / 0.6752 GB, free: 9.84 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002341/0.503, allocations: 2.002 MB / 0.6772 GB, free: 7.785 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.546e-05/0.503, allocations: 31 kB / 0.6772 GB, free: 7.746 MB / 494.1 MB Notification: Performance of pre-optimization done (n=47): time 3.597e-06/0.503, allocations: 2.25 kB / 0.6772 GB, free: 7.746 MB / 494.1 MB Notification: Performance of matching and sorting (n=47): time 0.001564/0.5046, allocations: 0.7831 MB / 0.678 GB, free: 7.223 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.478e-05/0.5047, allocations: 64.45 kB / 0.678 GB, free: 7.152 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003709/0.505, allocations: 373.3 kB / 0.6784 GB, free: 6.922 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.235e-05/0.5051, allocations: 32.52 kB / 0.6784 GB, free: 6.887 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001445/0.5052, allocations: 227.3 kB / 0.6786 GB, free: 6.68 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001114/0.5053, allocations: 154.7 kB / 0.6788 GB, free: 6.543 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000114/0.5055, allocations: 81.25 kB / 0.6788 GB, free: 6.492 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001466/0.5056, allocations: 357.6 kB / 0.6792 GB, free: 6.145 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002498/0.5059, allocations: 130.3 kB / 0.6793 GB, free: 6.082 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002797/0.5062, allocations: 188.7 kB / 0.6795 GB, free: 5.961 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000546/0.5067, allocations: 339.8 kB / 0.6798 GB, free: 5.77 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.5067, allocations: 0 / 0.6798 GB, free: 5.77 MB / 494.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0008577/0.5076, allocations: 0.4904 MB / 0.6803 GB, free: 5.5 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.694e-05/0.5076, allocations: 8.859 kB / 0.6803 GB, free: 5.496 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.5076, allocations: 0 / 0.6803 GB, free: 5.496 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002918/0.5079, allocations: 68.2 kB / 0.6804 GB, free: 5.453 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003024/0.5082, allocations: 91.48 kB / 0.6805 GB, free: 5.43 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002185/0.5104, allocations: 2.921 MB / 0.6833 GB, free: 2.441 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002557/0.5107, allocations: 45.16 kB / 0.6834 GB, free: 2.406 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.097e-05/0.5108, allocations: 20.86 kB / 0.6834 GB, free: 2.398 MB / 494.1 MB 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.000197/0.511, allocations: 161.9 kB / 0.6835 GB, free: 2.25 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.157e-05/0.5111, allocations: 50.16 kB / 0.6836 GB, free: 2.223 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00127/0.5123, allocations: 0.693 MB / 0.6843 GB, free: 1.777 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.5124, allocations: 4.656 kB / 0.6843 GB, free: 1.777 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.5124, allocations: 2.625 kB / 0.6843 GB, free: 1.777 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.5124, allocations: 7.938 kB / 0.6843 GB, free: 1.77 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001739/0.5141, allocations: 1.153 MB / 0.6854 GB, free: 0.8867 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.5141, allocations: 6.125 kB / 0.6854 GB, free: 0.8828 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002515/0.5144, allocations: 73.91 kB / 0.6855 GB, free: 0.8672 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002154/0.5146, allocations: 69.11 kB / 0.6855 GB, free: 0.8203 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.266e-05/0.5147, allocations: 19.78 kB / 0.6856 GB, free: 0.8086 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002134/0.5168, allocations: 2.933 MB / 0.6884 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.5168, allocations: 3.984 kB / 0.6884 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001143/0.518, allocations: 0.7427 MB / 0.6891 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000117/0.5181, allocations: 128.8 kB / 0.6893 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.619e-05/0.5182, allocations: 20.62 kB / 0.6893 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002303/0.5184, allocations: 17.36 kB / 0.6893 GB, free: 13.17 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.786e-05/0.5185, allocations: 40.77 kB / 0.6893 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.035e-05/0.5186, allocations: 16.75 kB / 0.6894 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003043/0.5189, allocations: 295.8 kB / 0.6896 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.7e-07/0.5189, allocations: 0 / 0.6896 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0006311/0.5195, allocations: 195.1 kB / 0.6898 GB, free: 12.91 MB / 0.4981 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.0003958/0.5199, allocations: 274.3 kB / 0.6901 GB, free: 12.74 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0009694/0.5209, allocations: 0.5806 MB / 0.6907 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.5209, allocations: 2.562 kB / 0.6907 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005591/0.5215, allocations: 449.9 kB / 0.6911 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009002/0.5224, allocations: 174.8 kB / 0.6913 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001668/0.5241, allocations: 0.9918 MB / 0.6922 GB, free: 11.26 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003729/0.5245, allocations: 0.8409 MB / 0.693 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0003048/0.5248, allocations: 106.4 kB / 0.6931 GB, free: 10.31 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001188/0.5249, allocations: 51.42 kB / 0.6932 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of SimCode: time 4.31e-07/0.5249, allocations: 0 / 0.6932 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of Templates: time 0.01676/0.5417, allocations: 10.2 MB / 0.7032 GB, free: 180 kB / 0.4981 GB make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.makefile (rm -f ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.sim & ./ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance -abortSlowSimulation -alarm=1200 -s gbode -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe 2>&1) diffSimulationResults("ThermofluidStream_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_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches