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.001204/0.001204, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001445/0.001445, allocations: 198.1 kB / 16.14 MB, free: 6.715 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.372/1.372, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6753/0.6753, allocations: 93.71 MB / 383.7 MB, free: 7.168 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001525/0.001525, allocations: 86.98 kB / 462.7 MB, free: 22.21 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1072, allocations: 68.26 MB / 0.5185 GB, free: 7.461 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.3542/0.4615, allocations: 147.7 MB / 0.6628 GB, free: 15.8 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.005491/0.467, allocations: 4.728 MB / 0.6674 GB, free: 11.96 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006537/0.4677, allocations: 33.84 kB / 0.6675 GB, free: 11.94 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008466/0.4686, allocations: 254.4 kB / 0.6677 GB, free: 11.74 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001483/0.4701, allocations: 0.6202 MB / 0.6683 GB, free: 11.23 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001054/0.4712, allocations: 450 kB / 0.6687 GB, free: 10.9 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001108/0.4723, allocations: 1.235 MB / 0.67 GB, free: 10.21 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002624/0.4726, allocations: 154.1 kB / 0.6701 GB, free: 10.13 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009345/0.4735, allocations: 484.8 kB / 0.6706 GB, free: 9.848 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005347/0.4741, allocations: 467.9 kB / 0.671 GB, free: 9.578 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.006e-05/0.4741, allocations: 27.88 kB / 0.671 GB, free: 9.578 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00143/0.4756, allocations: 0.7555 MB / 0.6718 GB, free: 9.219 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001213/0.4757, allocations: 106.9 kB / 0.6719 GB, free: 9.133 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002826/0.476, allocations: 300.3 kB / 0.6722 GB, free: 8.941 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001141/0.4772, allocations: 0.8954 MB / 0.673 GB, free: 8.359 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.257e-06/0.4772, allocations: 0 / 0.673 GB, free: 8.359 MB / 494.1 MB Notification: Performance of FrontEnd: time 8.32e-07/0.4772, allocations: 0 / 0.673 GB, free: 8.359 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.405e-06/0.4772, allocations: 0 / 0.673 GB, free: 8.359 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.001542/0.4787, allocations: 0.9692 MB / 0.674 GB, free: 7.555 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.557e-05/0.4788, allocations: 10.38 kB / 0.674 GB, free: 7.555 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001228/0.4789, allocations: 75.14 kB / 0.6741 GB, free: 7.516 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006502/0.4796, allocations: 0.504 MB / 0.6746 GB, free: 7.074 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.513e-05/0.4796, allocations: 28.59 kB / 0.6746 GB, free: 7.059 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.064e-05/0.4797, allocations: 46.56 kB / 0.6746 GB, free: 7.043 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007753/0.4805, allocations: 0.5083 MB / 0.6751 GB, free: 6.711 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.4805, allocations: 0 / 0.6751 GB, free: 6.711 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.856e-05/0.4805, allocations: 14.81 kB / 0.6751 GB, free: 6.699 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.045e-05/0.4805, allocations: 12.31 kB / 0.6751 GB, free: 6.699 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007178/0.4813, allocations: 485.2 kB / 0.6756 GB, free: 6.465 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002407/0.4837, allocations: 2.182 MB / 0.6777 GB, free: 4.461 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007398/0.4844, allocations: 363 kB / 0.6781 GB, free: 4.277 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003175/0.4848, allocations: 205.9 kB / 0.6783 GB, free: 4.176 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002396/0.4872, allocations: 2.007 MB / 0.6802 GB, free: 2.109 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.054e-05/0.4872, allocations: 33.75 kB / 0.6803 GB, free: 2.07 MB / 494.1 MB Notification: Performance of pre-optimization done (n=47): time 1.964e-06/0.4872, allocations: 0 / 0.6803 GB, free: 2.07 MB / 494.1 MB Notification: Performance of matching and sorting (n=47): time 0.001608/0.4888, allocations: 0.7974 MB / 0.6811 GB, free: 1.543 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.979e-05/0.4889, allocations: 56.75 kB / 0.6811 GB, free: 1.48 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004824/0.4894, allocations: 483.1 kB / 0.6816 GB, free: 1.195 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.273e-05/0.4894, allocations: 37.7 kB / 0.6816 GB, free: 1.152 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001817/0.4896, allocations: 274.5 kB / 0.6819 GB, free: 0.9102 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001197/0.4897, allocations: 155.5 kB / 0.682 GB, free: 0.7734 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001221/0.4899, allocations: 85.36 kB / 0.6821 GB, free: 0.7188 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.49, allocations: 371 kB / 0.6825 GB, free: 368 kB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000252/0.4903, allocations: 124.1 kB / 0.6826 GB, free: 308 kB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002829/0.4906, allocations: 193.6 kB / 0.6828 GB, free: 184 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005743/0.4911, allocations: 339.1 kB / 0.6831 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.4912, allocations: 2.094 kB / 0.6831 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009095/0.4921, allocations: 0.5008 MB / 0.6836 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/0.4921, allocations: 7.438 kB / 0.6836 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.4921, allocations: 0 / 0.6836 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002745/0.4924, allocations: 64.36 kB / 0.6836 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003142/0.4927, allocations: 96.64 kB / 0.6837 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00204/0.4948, allocations: 2.711 MB / 0.6864 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003334/0.4951, allocations: 47.8 kB / 0.6864 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.144e-05/0.4952, allocations: 20.66 kB / 0.6864 GB, free: 12.82 MB / 0.4981 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.0002406/0.4954, allocations: 181.9 kB / 0.6866 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001125/0.4955, allocations: 62.92 kB / 0.6867 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001293/0.4968, allocations: 0.7066 MB / 0.6874 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/0.4969, allocations: 5.156 kB / 0.6874 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.387e-06/0.4969, allocations: 0 / 0.6874 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.324e-06/0.4969, allocations: 3.984 kB / 0.6874 GB, free: 12.17 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001831/0.4987, allocations: 1.185 MB / 0.6885 GB, free: 11.28 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/0.4987, allocations: 3.938 kB / 0.6885 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000256/0.499, allocations: 77.86 kB / 0.6886 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002292/0.4992, allocations: 72.31 kB / 0.6887 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.18e-05/0.4993, allocations: 16.78 kB / 0.6887 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001943/0.5012, allocations: 2.729 MB / 0.6914 GB, free: 8.398 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.5013, allocations: 2.812 kB / 0.6914 GB, free: 8.398 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001204/0.5025, allocations: 0.765 MB / 0.6921 GB, free: 7.906 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001439/0.5026, allocations: 142.1 kB / 0.6922 GB, free: 7.766 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.816e-05/0.5027, allocations: 10.66 kB / 0.6923 GB, free: 7.758 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002611/0.503, allocations: 18.75 kB / 0.6923 GB, free: 7.746 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.081e-05/0.5031, allocations: 38.08 kB / 0.6923 GB, free: 7.727 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.226e-05/0.5031, allocations: 20.33 kB / 0.6923 GB, free: 7.719 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000391/0.5035, allocations: 364.3 kB / 0.6927 GB, free: 7.508 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5035, allocations: 0 / 0.6927 GB, free: 7.508 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000668/0.5042, allocations: 198 kB / 0.6929 GB, free: 7.457 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.0004232/0.5046, allocations: 265.7 kB / 0.6931 GB, free: 7.293 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001099/0.5057, allocations: 0.5851 MB / 0.6937 GB, free: 6.695 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.5058, allocations: 0 / 0.6937 GB, free: 6.695 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006253/0.5064, allocations: 437.3 kB / 0.6941 GB, free: 6.242 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001201/0.5076, allocations: 179.1 kB / 0.6943 GB, free: 6.07 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002122/0.5097, allocations: 1.343 MB / 0.6956 GB, free: 4.684 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004309/0.5102, allocations: 0.8711 MB / 0.6964 GB, free: 3.785 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.000426/0.5106, allocations: 111.1 kB / 0.6965 GB, free: 3.691 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001495/0.5108, allocations: 67.41 kB / 0.6966 GB, free: 3.625 MB / 0.4981 GB Notification: Performance of SimCode: time 6.21e-07/0.5108, allocations: 0 / 0.6966 GB, free: 3.625 MB / 0.4981 GB Notification: Performance of Templates: time 0.01726/0.528, allocations: 10.08 MB / 0.7065 GB, free: 9.652 MB / 0.5137 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