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.001173/0.001172, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001186/0.001186, allocations: 190.3 kB / 16.25 MB, free: 6.629 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.36/1.36, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6459/0.6459, allocations: 91.18 MB / 381.3 MB, free: 9.535 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001623/0.001623, allocations: 81.45 kB / 459.8 MB, free: 23.32 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1138, allocations: 67.69 MB / 0.5151 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.3873/0.5011, allocations: 147.9 MB / 0.6596 GB, free: 4.035 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.006314/0.5075, allocations: 4.682 MB / 0.6641 GB, free: 216 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000851/0.5083, allocations: 32.94 kB / 0.6642 GB, free: 200 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001048/0.5094, allocations: 257.9 kB / 0.6644 GB, free: 15.98 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001889/0.5114, allocations: 0.6096 MB / 0.665 GB, free: 15.5 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001429/0.5128, allocations: 468.5 kB / 0.6654 GB, free: 15.15 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001424/0.5143, allocations: 0.9723 MB / 0.6664 GB, free: 14.59 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000439/0.5147, allocations: 164.5 kB / 0.6666 GB, free: 14.51 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001387/0.5161, allocations: 0.5195 MB / 0.6671 GB, free: 14.19 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008626/0.517, allocations: 469.1 kB / 0.6675 GB, free: 13.91 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001144/0.5171, allocations: 43.25 kB / 0.6675 GB, free: 13.91 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001793/0.5189, allocations: 0.7778 MB / 0.6683 GB, free: 13.55 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001742/0.5191, allocations: 123.9 kB / 0.6684 GB, free: 13.45 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004122/0.5196, allocations: 318.1 kB / 0.6687 GB, free: 13.24 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001698/0.5213, allocations: 0.9372 MB / 0.6696 GB, free: 12.64 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.5213, allocations: 0 / 0.6696 GB, free: 12.64 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.5213, allocations: 0 / 0.6696 GB, free: 12.64 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.262e-05/0.5213, allocations: 0 / 0.6696 GB, free: 12.64 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.001879/0.5232, allocations: 0.9622 MB / 0.6706 GB, free: 11.85 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.594e-05/0.5233, allocations: 9.438 kB / 0.6706 GB, free: 11.85 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001462/0.5234, allocations: 71.19 kB / 0.6707 GB, free: 11.81 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007342/0.5242, allocations: 0.5087 MB / 0.6712 GB, free: 11.36 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.876e-05/0.5242, allocations: 36.25 kB / 0.6712 GB, free: 11.35 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.652e-05/0.5243, allocations: 39.69 kB / 0.6712 GB, free: 11.34 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008646/0.5251, allocations: 0.5127 MB / 0.6717 GB, free: 11 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.528e-05/0.5252, allocations: 0 / 0.6717 GB, free: 11 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.354e-05/0.5252, allocations: 20.78 kB / 0.6718 GB, free: 10.99 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.195e-05/0.5252, allocations: 10.34 kB / 0.6718 GB, free: 10.99 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007626/0.526, allocations: 482.2 kB / 0.6722 GB, free: 10.76 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002766/0.5288, allocations: 2.18 MB / 0.6743 GB, free: 8.754 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007754/0.5296, allocations: 368.1 kB / 0.6747 GB, free: 8.566 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003257/0.5299, allocations: 208 kB / 0.6749 GB, free: 8.461 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002611/0.5325, allocations: 1.992 MB / 0.6768 GB, free: 6.414 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.539e-05/0.5326, allocations: 37.88 kB / 0.6769 GB, free: 6.371 MB / 494.1 MB Notification: Performance of pre-optimization done (n=47): time 2.014e-06/0.5326, allocations: 0 / 0.6769 GB, free: 6.371 MB / 494.1 MB Notification: Performance of matching and sorting (n=47): time 0.001673/0.5343, allocations: 0.7937 MB / 0.6777 GB, free: 5.844 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.147e-05/0.5343, allocations: 60.72 kB / 0.6777 GB, free: 5.777 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005617/0.5349, allocations: 487 kB / 0.6782 GB, free: 5.488 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.747e-05/0.535, allocations: 33.64 kB / 0.6782 GB, free: 5.449 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001947/0.5352, allocations: 274.1 kB / 0.6785 GB, free: 5.207 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001294/0.5353, allocations: 160 kB / 0.6786 GB, free: 5.066 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00013/0.5354, allocations: 82.61 kB / 0.6787 GB, free: 5.012 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.5356, allocations: 369.7 kB / 0.6791 GB, free: 4.656 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002691/0.5359, allocations: 126.3 kB / 0.6792 GB, free: 4.598 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002908/0.5362, allocations: 189.1 kB / 0.6794 GB, free: 4.477 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005764/0.5368, allocations: 347.8 kB / 0.6797 GB, free: 4.277 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.5368, allocations: 4 kB / 0.6797 GB, free: 4.273 MB / 494.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009488/0.5377, allocations: 0.4985 MB / 0.6802 GB, free: 4 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.988e-05/0.5378, allocations: 7.75 kB / 0.6802 GB, free: 4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.066e-06/0.5378, allocations: 2.281 kB / 0.6802 GB, free: 4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002977/0.5381, allocations: 67.58 kB / 0.6803 GB, free: 3.957 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003173/0.5384, allocations: 89.73 kB / 0.6803 GB, free: 3.934 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002321/0.5407, allocations: 2.922 MB / 0.6832 GB, free: 0.9375 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003569/0.5411, allocations: 44.38 kB / 0.6832 GB, free: 0.9062 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.747e-05/0.5412, allocations: 20.27 kB / 0.6833 GB, free: 0.8984 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.0002496/0.5414, allocations: 168.5 kB / 0.6834 GB, free: 0.7461 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001359/0.5416, allocations: 58.56 kB / 0.6835 GB, free: 0.7148 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001347/0.5429, allocations: 0.7233 MB / 0.6842 GB, free: 256 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.543, allocations: 5.688 kB / 0.6842 GB, free: 256 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.543, allocations: 2.094 kB / 0.6842 GB, free: 256 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.171e-06/0.543, allocations: 0 / 0.6842 GB, free: 256 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002002/0.545, allocations: 1.19 MB / 0.6853 GB, free: 15.35 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.545, allocations: 0 / 0.6853 GB, free: 15.35 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002563/0.5453, allocations: 73.41 kB / 0.6854 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002377/0.5455, allocations: 75.98 kB / 0.6855 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.122e-05/0.5456, allocations: 16.92 kB / 0.6855 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002232/0.5478, allocations: 2.929 MB / 0.6884 GB, free: 12.28 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.5478, allocations: 2.125 kB / 0.6884 GB, free: 12.28 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001305/0.5492, allocations: 0.7614 MB / 0.6891 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001749/0.5493, allocations: 135.5 kB / 0.6892 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001082/0.5495, allocations: 25.19 kB / 0.6893 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000289/0.5498, allocations: 11.34 kB / 0.6893 GB, free: 11.63 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.01e-05/0.5499, allocations: 41.78 kB / 0.6893 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.398e-05/0.5499, allocations: 16.28 kB / 0.6893 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000414/0.5503, allocations: 362.2 kB / 0.6897 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.61e-07/0.5503, allocations: 2.688 kB / 0.6897 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0007391/0.5511, allocations: 201.5 kB / 0.6899 GB, free: 11.34 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.0004451/0.5515, allocations: 277.9 kB / 0.6901 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001182/0.5527, allocations: 0.6103 MB / 0.6907 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.5527, allocations: 3.938 kB / 0.6907 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006555/0.5534, allocations: 439.9 kB / 0.6912 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001153/0.5546, allocations: 173.8 kB / 0.6913 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002326/0.5569, allocations: 1.337 MB / 0.6926 GB, free: 8.781 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004821/0.5574, allocations: 0.8711 MB / 0.6935 GB, free: 7.883 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0004413/0.5579, allocations: 127.3 kB / 0.6936 GB, free: 7.773 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001577/0.558, allocations: 63.42 kB / 0.6937 GB, free: 7.711 MB / 0.4981 GB Notification: Performance of SimCode: time 5.61e-07/0.558, allocations: 0 / 0.6937 GB, free: 7.711 MB / 0.4981 GB Notification: Performance of Templates: time 0.01855/0.5766, allocations: 10.41 MB / 0.7038 GB, free: 13.41 MB / 0.5137 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches