Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Flow_Resistance.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: "" <> buildModelFMU(ThermofluidStream.Processes.Tests.Flow_Resistance,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Processes_Tests_Flow_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Processes.Tests.Flow_Resistance,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Processes_Tests_Flow_Resistance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001765/0.001765, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002057/0.002058, allocations: 195.7 kB / 16.53 MB, free: 6.664 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.449/1.449, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7133/0.7133, allocations: 93.71 MB / 384.1 MB, free: 7.023 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002328/0.002328, allocations: 77.88 kB / 463.5 MB, free: 21.99 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1301/0.1325, allocations: 68.27 MB / 0.5193 GB, free: 6.949 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Flow_Resistance): time 0.435/0.5675, allocations: 159.3 MB / 0.6749 GB, free: 6.273 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01299/0.5805, allocations: 11.08 MB / 0.6857 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009965/0.5816, allocations: 47.12 kB / 0.6857 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.00115/0.5827, allocations: 474.9 kB / 0.6862 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.002269/0.5851, allocations: 1.006 MB / 0.6872 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001965/0.587, allocations: 0.7828 MB / 0.6879 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001521/0.5886, allocations: 1.405 MB / 0.6893 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000337/0.5889, allocations: 234.4 kB / 0.6895 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001211/0.5901, allocations: 0.6737 MB / 0.6902 GB, free: 10.08 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006859/0.5908, allocations: 0.5645 MB / 0.6907 GB, free: 9.738 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.556e-05/0.5909, allocations: 57.91 kB / 0.6908 GB, free: 9.738 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002792/0.5937, allocations: 1.36 MB / 0.6921 GB, free: 9.102 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002027/0.5939, allocations: 168.3 kB / 0.6923 GB, free: 8.961 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0004867/0.5944, allocations: 448.6 kB / 0.6927 GB, free: 8.66 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.00236/0.5968, allocations: 1.436 MB / 0.6941 GB, free: 7.777 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.5968, allocations: 2.25 kB / 0.6941 GB, free: 7.777 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.533e-06/0.5968, allocations: 0 / 0.6941 GB, free: 7.777 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.287e-05/0.5969, allocations: 0 / 0.6941 GB, free: 7.777 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.002247/0.5991, allocations: 1.347 MB / 0.6954 GB, free: 6.562 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.847e-05/0.5992, allocations: 8.031 kB / 0.6954 GB, free: 6.555 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001185/0.5993, allocations: 90.7 kB / 0.6955 GB, free: 6.457 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001764/0.5995, allocations: 111.5 kB / 0.6956 GB, free: 6.348 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001114/0.6006, allocations: 0.7332 MB / 0.6964 GB, free: 5.574 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.787e-05/0.6006, allocations: 41 kB / 0.6964 GB, free: 5.535 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.402e-05/0.6007, allocations: 56 kB / 0.6964 GB, free: 5.48 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008828/0.6016, allocations: 0.5597 MB / 0.697 GB, free: 4.891 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.489e-05/0.6017, allocations: 0 / 0.697 GB, free: 4.891 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.409e-05/0.6017, allocations: 20 kB / 0.697 GB, free: 4.871 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.61e-05/0.6017, allocations: 12 kB / 0.697 GB, free: 4.859 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000744/0.6025, allocations: 499.6 kB / 0.6975 GB, free: 4.371 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003101/0.6056, allocations: 2.493 MB / 0.6999 GB, free: 1.699 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005499/0.6062, allocations: 346.9 kB / 0.7003 GB, free: 1.324 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000334/0.6065, allocations: 217 kB / 0.7005 GB, free: 1.102 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002732/0.6092, allocations: 2.51 MB / 0.7029 GB, free: 14.27 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.317e-05/0.6093, allocations: 46.56 kB / 0.703 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=48): time 2.034e-06/0.6093, allocations: 0 / 0.703 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of matching and sorting (n=48): time 0.002127/0.6114, allocations: 1.048 MB / 0.704 GB, free: 13.07 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.037e-05/0.6115, allocations: 140.5 kB / 0.7041 GB, free: 12.9 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00103/0.6126, allocations: 0.8098 MB / 0.7049 GB, free: 12.07 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.779e-05/0.6126, allocations: 37.64 kB / 0.705 GB, free: 12.03 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003818/0.613, allocations: 412.7 kB / 0.7053 GB, free: 11.62 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001556/0.6132, allocations: 169.5 kB / 0.7055 GB, free: 11.45 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001426/0.6133, allocations: 82.25 kB / 0.7056 GB, free: 11.36 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001456/0.6135, allocations: 322 kB / 0.7059 GB, free: 11.04 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002237/0.6137, allocations: 125.1 kB / 0.706 GB, free: 10.92 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002861/0.614, allocations: 196.4 kB / 0.7062 GB, free: 10.7 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005558/0.6146, allocations: 351.4 kB / 0.7065 GB, free: 10.34 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.6146, allocations: 0 / 0.7065 GB, free: 10.34 MB / 0.5137 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.00129/0.6159, allocations: 0.6355 MB / 0.7072 GB, free: 9.688 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.6159, allocations: 4 kB / 0.7072 GB, free: 9.684 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.6159, allocations: 4 kB / 0.7072 GB, free: 9.68 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007568/0.6167, allocations: 195.1 kB / 0.7073 GB, free: 9.48 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006976/0.6174, allocations: 107.9 kB / 0.7075 GB, free: 9.375 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003663/0.621, allocations: 4.65 MB / 0.712 GB, free: 4.371 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004219/0.6215, allocations: 47.59 kB / 0.712 GB, free: 4.324 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.357e-05/0.6215, allocations: 21.11 kB / 0.7121 GB, free: 4.305 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (42): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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): 2 systems {(1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0002971/0.6218, allocations: 201.6 kB / 0.7122 GB, free: 4.098 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001911/0.622, allocations: 94.78 kB / 0.7123 GB, free: 4.004 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001378/0.6234, allocations: 0.7215 MB / 0.713 GB, free: 3.234 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.131e-06/0.6234, allocations: 7.938 kB / 0.7131 GB, free: 3.227 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.6235, allocations: 4 kB / 0.7131 GB, free: 3.223 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.758e-06/0.6235, allocations: 11.92 kB / 0.7131 GB, free: 3.211 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002155/0.6256, allocations: 1.483 MB / 0.7145 GB, free: 1.645 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.239e-06/0.6256, allocations: 7.938 kB / 0.7145 GB, free: 1.637 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001817/0.6258, allocations: 52.83 kB / 0.7146 GB, free: 1.586 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003641/0.6262, allocations: 131.3 kB / 0.7147 GB, free: 1.445 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.477e-05/0.6262, allocations: 15.98 kB / 0.7147 GB, free: 1.43 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004684/0.6309, allocations: 5.779 MB / 0.7204 GB, free: 11.09 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.065e-05/0.631, allocations: 7.969 kB / 0.7204 GB, free: 11.09 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001398/0.6324, allocations: 0.9727 MB / 0.7213 GB, free: 10.07 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002261/0.6326, allocations: 175.9 kB / 0.7215 GB, free: 9.879 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001065/0.6327, allocations: 15.84 kB / 0.7215 GB, free: 9.863 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003968/0.6331, allocations: 8 kB / 0.7215 GB, free: 9.855 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.581e-05/0.6332, allocations: 43.83 kB / 0.7215 GB, free: 9.812 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.942e-05/0.6332, allocations: 23.98 kB / 0.7216 GB, free: 9.789 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0008627/0.6341, allocations: 0.6198 MB / 0.7222 GB, free: 9.16 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6341, allocations: 0 / 0.7222 GB, free: 9.16 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001002/0.6351, allocations: 307.6 kB / 0.7225 GB, free: 8.859 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (flowResistance1.m_flow,flowResistance3.m_flow,flowResistance.m_flow,flowResistance2.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 (32): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,2,100.0%), (1,2,100.0%), (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.002177/0.6373, allocations: 1.859 MB / 0.7243 GB, free: 6.949 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001475/0.6388, allocations: 0.6146 MB / 0.7249 GB, free: 6.309 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.604e-06/0.6388, allocations: 4 kB / 0.7249 GB, free: 6.305 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0008213/0.6397, allocations: 0.6276 MB / 0.7255 GB, free: 5.625 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001647/0.6413, allocations: 310.3 kB / 0.7258 GB, free: 5.332 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01114/0.6525, allocations: 7.345 MB / 0.733 GB, free: 13.63 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006294/0.6531, allocations: 0.9658 MB / 0.7339 GB, free: 12.64 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0005181/0.6537, allocations: 146.2 kB / 0.7341 GB, free: 12.5 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004403/0.6541, allocations: 351.3 kB / 0.7344 GB, free: 12.16 MB / 0.545 GB Notification: Performance of SimCode: time 8.72e-07/0.6541, allocations: 4 kB / 0.7344 GB, free: 12.15 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06699/0.7211, allocations: 26.16 MB / 0.7599 GB, free: 2.242 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.36/14.08, allocations: 7.922 kB / 0.7599 GB, free: 2.234 MB / 0.5606 GB (rm -f ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Flow_Resistance.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Flow_Resistance.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Flow_Resistance.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Flow_Resistance.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Flow_Resistance_res.csv --start-time 0 --stop-time 10 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 ThermofluidStream_dev_ThermofluidStream_Processes_Tests_Flow_Resistance.fmu > ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Flow_Resistance.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Flow_Resistance_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Processes.Tests.Flow_Resistance_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Flow_Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches