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/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/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.Undirected.Processes.Tests.TestFlowResistance,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance",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.005174/0.005175, allocations: 96.09 kB / 15.73 MB, free: 6.043 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.001303/0.001303, allocations: 200.8 kB / 16.68 MB, free: 5.969 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.37/1.37, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.6591/0.6591, allocations: 89.46 MB / 380 MB, free: 10.93 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002193/0.002193, allocations: 79.88 kB / 0.5139 GB, free: 11.75 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1301/0.1323, allocations: 67.3 MB / 0.5796 GB, free: 8.375 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.4371/0.5694, allocations: 149.4 MB / 0.7255 GB, free: 7.09 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.005652/0.5751, allocations: 4.588 MB / 0.73 GB, free: 2.488 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003658/0.5755, allocations: 7.938 kB / 0.73 GB, free: 2.48 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.000838/0.5764, allocations: 286.2 kB / 0.7303 GB, free: 2.199 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.00139/0.5778, allocations: 0.6214 MB / 0.7309 GB, free: 1.574 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001107/0.5789, allocations: 0.4904 MB / 0.7314 GB, free: 1.082 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0009069/0.5798, allocations: 0.8905 MB / 0.7322 GB, free: 192 kB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002702/0.5801, allocations: 155.6 kB / 0.7324 GB, free: 36 kB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008185/0.5809, allocations: 470.1 kB / 0.7328 GB, free: 15.57 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005463/0.5815, allocations: 450.4 kB / 0.7333 GB, free: 15.13 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 6.067e-05/0.5816, allocations: 44 kB / 0.7333 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001417/0.583, allocations: 0.7603 MB / 0.734 GB, free: 14.33 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001025/0.5831, allocations: 111.5 kB / 0.7341 GB, free: 14.22 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002688/0.5834, allocations: 290.5 kB / 0.7344 GB, free: 13.93 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001159/0.5845, allocations: 0.8598 MB / 0.7353 GB, free: 13.07 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.5846, allocations: 4 kB / 0.7353 GB, free: 13.07 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.342e-06/0.5846, allocations: 0 / 0.7353 GB, free: 13.07 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 8.376e-06/0.5846, allocations: 0 / 0.7353 GB, free: 13.07 MB / 0.5762 GB 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.001387/0.586, allocations: 0.8719 MB / 0.7361 GB, free: 12.14 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.586, allocations: 15.97 kB / 0.7361 GB, free: 12.13 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.846e-05/0.5861, allocations: 78.28 kB / 0.7362 GB, free: 12.05 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001077/0.5862, allocations: 64.56 kB / 0.7363 GB, free: 11.98 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004432/0.5867, allocations: 376 kB / 0.7366 GB, free: 11.57 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.089e-05/0.5867, allocations: 33.38 kB / 0.7367 GB, free: 11.54 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.062e-05/0.5868, allocations: 52.5 kB / 0.7367 GB, free: 11.49 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007781/0.5876, allocations: 0.5045 MB / 0.7372 GB, free: 10.96 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.477e-05/0.5876, allocations: 0 / 0.7372 GB, free: 10.96 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.48e-05/0.5876, allocations: 16 kB / 0.7372 GB, free: 10.95 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.334e-05/0.5877, allocations: 16 kB / 0.7372 GB, free: 10.93 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007462/0.5884, allocations: 479.7 kB / 0.7377 GB, free: 10.46 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002432/0.5909, allocations: 2.147 MB / 0.7398 GB, free: 8.129 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007589/0.5916, allocations: 368.4 kB / 0.7401 GB, free: 7.758 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003229/0.592, allocations: 202.1 kB / 0.7403 GB, free: 7.559 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002421/0.5944, allocations: 1.994 MB / 0.7423 GB, free: 5.277 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.701e-05/0.5944, allocations: 35 kB / 0.7423 GB, free: 5.234 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=47): time 1.753e-06/0.5944, allocations: 0 / 0.7423 GB, free: 5.234 MB / 0.5762 GB Notification: Performance of matching and sorting (n=47): time 0.001607/0.5961, allocations: 0.7877 MB / 0.7431 GB, free: 4.398 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.273e-05/0.5961, allocations: 63.78 kB / 0.7431 GB, free: 4.324 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004018/0.5965, allocations: 373.7 kB / 0.7435 GB, free: 3.949 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.324e-05/0.5966, allocations: 33.7 kB / 0.7435 GB, free: 3.91 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001796/0.5967, allocations: 224.9 kB / 0.7437 GB, free: 3.688 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001239/0.5969, allocations: 162.5 kB / 0.7439 GB, free: 3.527 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001306/0.597, allocations: 90.12 kB / 0.744 GB, free: 3.434 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001739/0.5972, allocations: 358.7 kB / 0.7443 GB, free: 3.074 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002462/0.5974, allocations: 124.8 kB / 0.7444 GB, free: 2.953 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000299/0.5978, allocations: 186.2 kB / 0.7446 GB, free: 2.754 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005778/0.5983, allocations: 344.9 kB / 0.7449 GB, free: 2.406 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.5984, allocations: 0 / 0.7449 GB, free: 2.406 MB / 0.5762 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0008978/0.5993, allocations: 0.4933 MB / 0.7454 GB, free: 1.898 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.5993, allocations: 4 kB / 0.7454 GB, free: 1.895 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.5993, allocations: 0 / 0.7454 GB, free: 1.895 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002973/0.5996, allocations: 69.61 kB / 0.7455 GB, free: 1.82 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002957/0.5999, allocations: 83.89 kB / 0.7456 GB, free: 1.738 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002412/0.6023, allocations: 2.936 MB / 0.7484 GB, free: 14.52 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002/0.6025, allocations: 40.7 kB / 0.7485 GB, free: 14.48 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.901e-05/0.6026, allocations: 24.05 kB / 0.7485 GB, free: 14.46 MB / 0.5919 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.0001978/0.6028, allocations: 173.6 kB / 0.7487 GB, free: 14.28 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.665e-05/0.6029, allocations: 47.67 kB / 0.7487 GB, free: 14.23 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001263/0.6042, allocations: 0.697 MB / 0.7494 GB, free: 13.52 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.653e-06/0.6042, allocations: 4 kB / 0.7494 GB, free: 13.52 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.6042, allocations: 0 / 0.7494 GB, free: 13.52 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.324e-06/0.6042, allocations: 7.922 kB / 0.7494 GB, free: 13.51 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001757/0.606, allocations: 1.148 MB / 0.7505 GB, free: 12.28 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.606, allocations: 0 / 0.7505 GB, free: 12.28 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002518/0.6062, allocations: 79.89 kB / 0.7506 GB, free: 12.2 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002182/0.6065, allocations: 73.73 kB / 0.7507 GB, free: 12.12 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.35e-05/0.6065, allocations: 15.98 kB / 0.7507 GB, free: 12.11 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002266/0.6088, allocations: 2.935 MB / 0.7536 GB, free: 8.891 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.6088, allocations: 0 / 0.7536 GB, free: 8.891 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001194/0.61, allocations: 0.7497 MB / 0.7543 GB, free: 8.109 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001137/0.6101, allocations: 128.8 kB / 0.7544 GB, free: 7.965 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.511e-05/0.6102, allocations: 19.89 kB / 0.7544 GB, free: 7.945 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001917/0.6104, allocations: 8 kB / 0.7544 GB, free: 7.938 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.549e-05/0.6105, allocations: 48.03 kB / 0.7545 GB, free: 7.891 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.178e-05/0.6105, allocations: 19.97 kB / 0.7545 GB, free: 7.871 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.00033/0.6109, allocations: 299.1 kB / 0.7548 GB, free: 7.578 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.883e-06/0.6109, allocations: 0 / 0.7548 GB, free: 7.578 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0006098/0.6115, allocations: 195.6 kB / 0.755 GB, free: 7.387 MB / 0.5919 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.00182/0.6133, allocations: 1.453 MB / 0.7564 GB, free: 5.895 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001029/0.6143, allocations: 0.5808 MB / 0.757 GB, free: 5.285 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.6144, allocations: 0 / 0.757 GB, free: 5.285 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0005916/0.615, allocations: 449 kB / 0.7574 GB, free: 4.82 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009272/0.6159, allocations: 176.6 kB / 0.7576 GB, free: 4.66 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005929/0.6218, allocations: 4.313 MB / 0.7618 GB, free: 220 kB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004646/0.6223, allocations: 0.8395 MB / 0.7626 GB, free: 15.35 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003195/0.6226, allocations: 115 kB / 0.7627 GB, free: 15.25 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002592/0.6229, allocations: 183.4 kB / 0.7629 GB, free: 15.07 MB / 0.6075 GB Notification: Performance of SimCode: time 4.41e-07/0.6229, allocations: 0 / 0.7629 GB, free: 15.07 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04604/0.669, allocations: 15.21 MB / 0.7777 GB, free: 124 kB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.1/10.77, allocations: 10.27 kB / 0.7777 GB, free: 116 kB / 0.6075 GB (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 & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.csv --start-time 0 --stop-time 10 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 ThermofluidStream_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance.fmu > ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.csv","/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