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.001091/0.001091, allocations: 89.97 kB / 15.36 MB, free: 0.7383 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.009907/0.009907, allocations: 176.2 kB / 16.27 MB, free: 6.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.364/1.364, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6699/0.6699, allocations: 91.32 MB / 382.8 MB, free: 9.648 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003385/0.0003385, allocations: 17.39 kB / 462.7 MB, free: 23.6 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1115, allocations: 69.21 MB / 0.5195 GB, free: 9.078 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.3925/0.5041, allocations: 145.8 MB / 0.6618 GB, free: 1.918 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.005812/0.5099, allocations: 4.666 MB / 0.6664 GB, free: 14.11 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006382/0.5106, allocations: 28.88 kB / 0.6664 GB, free: 14.1 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007821/0.5114, allocations: 253 kB / 0.6667 GB, free: 13.9 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001493/0.5129, allocations: 0.6185 MB / 0.6673 GB, free: 13.39 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001144/0.514, allocations: 459.3 kB / 0.6677 GB, free: 13.05 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.00119/0.5152, allocations: 1.232 MB / 0.6689 GB, free: 12.36 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002781/0.5155, allocations: 149.7 kB / 0.669 GB, free: 12.29 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008557/0.5164, allocations: 474.2 kB / 0.6695 GB, free: 12.01 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005082/0.5169, allocations: 427.8 kB / 0.6699 GB, free: 11.78 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.058e-05/0.517, allocations: 23.12 kB / 0.6699 GB, free: 11.77 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001511/0.5185, allocations: 0.7446 MB / 0.6707 GB, free: 11.41 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001174/0.5186, allocations: 94.39 kB / 0.6707 GB, free: 11.34 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002783/0.5189, allocations: 312.7 kB / 0.671 GB, free: 11.13 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001183/0.5201, allocations: 0.8794 MB / 0.6719 GB, free: 10.56 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.5201, allocations: 0 / 0.6719 GB, free: 10.56 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.5201, allocations: 0 / 0.6719 GB, free: 10.56 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.536e-06/0.5202, allocations: 0 / 0.6719 GB, free: 10.56 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.00146/0.5216, allocations: 0.8622 MB / 0.6727 GB, free: 9.836 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.5217, allocations: 11.34 kB / 0.6728 GB, free: 9.836 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.682e-05/0.5218, allocations: 71.34 kB / 0.6728 GB, free: 9.801 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006329/0.5224, allocations: 0.4995 MB / 0.6733 GB, free: 9.359 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.04e-05/0.5224, allocations: 33.16 kB / 0.6733 GB, free: 9.344 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.424e-05/0.5225, allocations: 39.84 kB / 0.6734 GB, free: 9.332 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007563/0.5233, allocations: 0.5202 MB / 0.6739 GB, free: 8.996 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.317e-05/0.5233, allocations: 0 / 0.6739 GB, free: 8.996 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.978e-05/0.5233, allocations: 16.66 kB / 0.6739 GB, free: 8.984 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.465e-05/0.5234, allocations: 14.91 kB / 0.6739 GB, free: 8.98 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007074/0.5241, allocations: 490.8 kB / 0.6744 GB, free: 8.746 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002474/0.5266, allocations: 2.196 MB / 0.6765 GB, free: 6.414 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007361/0.5273, allocations: 362.3 kB / 0.6769 GB, free: 6.055 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003404/0.5277, allocations: 206.1 kB / 0.6771 GB, free: 5.852 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002413/0.5301, allocations: 2.021 MB / 0.679 GB, free: 3.543 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.366e-05/0.5301, allocations: 42.94 kB / 0.6791 GB, free: 3.492 MB / 494.1 MB Notification: Performance of pre-optimization done (n=47): time 3.116e-06/0.5301, allocations: 4 kB / 0.6791 GB, free: 3.488 MB / 494.1 MB Notification: Performance of matching and sorting (n=47): time 0.001545/0.5317, allocations: 0.7989 MB / 0.6799 GB, free: 2.641 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.275e-05/0.5317, allocations: 59.84 kB / 0.6799 GB, free: 2.566 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005357/0.5323, allocations: 483.1 kB / 0.6804 GB, free: 2.082 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.51e-05/0.5323, allocations: 37.7 kB / 0.6804 GB, free: 2.039 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001907/0.5325, allocations: 264.6 kB / 0.6807 GB, free: 1.777 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001179/0.5327, allocations: 161.6 kB / 0.6808 GB, free: 1.617 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.722e-05/0.5327, allocations: 37.7 kB / 0.6809 GB, free: 1.574 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.5329, allocations: 378.8 kB / 0.6812 GB, free: 1.195 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002731/0.5332, allocations: 128.8 kB / 0.6814 GB, free: 1.07 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002852/0.5335, allocations: 189 kB / 0.6815 GB, free: 0.875 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005803/0.534, allocations: 348.9 kB / 0.6819 GB, free: 0.5195 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.512e-06/0.5341, allocations: 0 / 0.6819 GB, free: 0.5195 MB / 494.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0008998/0.535, allocations: 0.5008 MB / 0.6824 GB, free: 4 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.229e-05/0.535, allocations: 10.39 kB / 0.6824 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.535, allocations: 0 / 0.6824 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002945/0.5353, allocations: 65.61 kB / 0.6824 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003134/0.5357, allocations: 95.91 kB / 0.6825 GB, free: 15.83 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002253/0.5379, allocations: 2.714 MB / 0.6852 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002674/0.5382, allocations: 39.53 kB / 0.6852 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.628e-05/0.5383, allocations: 24.05 kB / 0.6852 GB, free: 12.78 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.000202/0.5385, allocations: 173.7 kB / 0.6854 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.197e-05/0.5386, allocations: 59.25 kB / 0.6855 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00126/0.5398, allocations: 0.725 MB / 0.6862 GB, free: 11.81 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.223e-06/0.5398, allocations: 8 kB / 0.6862 GB, free: 11.8 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.5399, allocations: 3.984 kB / 0.6862 GB, free: 11.8 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.531e-06/0.5399, allocations: 0 / 0.6862 GB, free: 11.8 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001767/0.5416, allocations: 1.195 MB / 0.6873 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.5417, allocations: 4 kB / 0.6873 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002611/0.5419, allocations: 71.91 kB / 0.6874 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000209/0.5421, allocations: 77.81 kB / 0.6875 GB, free: 10.37 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.627e-05/0.5422, allocations: 15.98 kB / 0.6875 GB, free: 10.35 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001937/0.5441, allocations: 2.718 MB / 0.6902 GB, free: 7.367 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.5441, allocations: 8.094 kB / 0.6902 GB, free: 7.359 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001189/0.5453, allocations: 0.7713 MB / 0.6909 GB, free: 6.555 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001285/0.5455, allocations: 152.1 kB / 0.6911 GB, free: 6.387 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.428e-05/0.5456, allocations: 12 kB / 0.6911 GB, free: 6.375 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002442/0.5458, allocations: 16 kB / 0.6911 GB, free: 6.359 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.318e-05/0.5459, allocations: 43.94 kB / 0.6911 GB, free: 6.316 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.103e-05/0.5459, allocations: 16 kB / 0.6911 GB, free: 6.301 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003991/0.5463, allocations: 370.8 kB / 0.6915 GB, free: 5.941 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5463, allocations: 0 / 0.6915 GB, free: 5.941 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0006083/0.547, allocations: 195.7 kB / 0.6917 GB, free: 5.75 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.000381/0.5473, allocations: 272.9 kB / 0.6919 GB, free: 5.48 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000946/0.5483, allocations: 0.5887 MB / 0.6925 GB, free: 4.863 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.5483, allocations: 0 / 0.6925 GB, free: 4.863 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005568/0.5489, allocations: 445.5 kB / 0.6929 GB, free: 4.402 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001096/0.55, allocations: 170.2 kB / 0.6931 GB, free: 4.23 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002015/0.552, allocations: 1.41 MB / 0.6945 GB, free: 2.785 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004194/0.5524, allocations: 0.8749 MB / 0.6953 GB, free: 1.883 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0003548/0.5528, allocations: 123.1 kB / 0.6955 GB, free: 1.777 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001335/0.5529, allocations: 63.42 kB / 0.6955 GB, free: 1.715 MB / 0.4981 GB Notification: Performance of SimCode: time 8.32e-07/0.553, allocations: 0 / 0.6955 GB, free: 1.715 MB / 0.4981 GB Notification: Performance of Templates: time 0.01697/0.5699, allocations: 9.977 MB / 0.7053 GB, free: 7.844 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