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: "" <> 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.001491/0.001491, allocations: 108 kB / 15.6 MB, free: 132 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.002004/0.002003, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.555/1.555, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.9042/0.9042, allocations: 91.19 MB / 381.6 MB, free: 9.426 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001514/0.001514, allocations: 78.91 kB / 460.4 MB, free: 23.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1659/0.1674, allocations: 67.68 MB / 0.5157 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.5882/0.7557, allocations: 149.5 MB / 0.6617 GB, free: 2.285 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.007377/0.7632, allocations: 4.638 MB / 0.6662 GB, free: 14.5 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001017/0.7642, allocations: 30.94 kB / 0.6663 GB, free: 14.48 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000937/0.7652, allocations: 293.2 kB / 0.6666 GB, free: 14.24 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002131/0.7674, allocations: 0.672 MB / 0.6672 GB, free: 13.68 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00174/0.7691, allocations: 0.4885 MB / 0.6677 GB, free: 13.31 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001369/0.7705, allocations: 0.9793 MB / 0.6686 GB, free: 12.74 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003181/0.7708, allocations: 163.9 kB / 0.6688 GB, free: 12.66 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001356/0.7722, allocations: 0.5115 MB / 0.6693 GB, free: 12.35 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007424/0.773, allocations: 459.4 kB / 0.6697 GB, free: 12.08 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.668e-05/0.773, allocations: 42.75 kB / 0.6698 GB, free: 12.08 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002216/0.7753, allocations: 0.7697 MB / 0.6705 GB, free: 11.72 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001623/0.7754, allocations: 119.9 kB / 0.6706 GB, free: 11.62 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003737/0.7758, allocations: 308.1 kB / 0.6709 GB, free: 11.43 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001842/0.7777, allocations: 0.9438 MB / 0.6719 GB, free: 10.82 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.7777, allocations: 0 / 0.6719 GB, free: 10.82 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.7777, allocations: 0 / 0.6719 GB, free: 10.82 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.806e-06/0.7777, allocations: 3.938 kB / 0.6719 GB, free: 10.82 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.001708/0.7794, allocations: 0.968 MB / 0.6728 GB, free: 10.02 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.13e-05/0.7795, allocations: 10.09 kB / 0.6728 GB, free: 10.02 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.003e-05/0.7796, allocations: 79.44 kB / 0.6729 GB, free: 9.945 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001706/0.7798, allocations: 71.25 kB / 0.673 GB, free: 9.91 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008071/0.7806, allocations: 0.5044 MB / 0.6735 GB, free: 9.465 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000112/0.7807, allocations: 30.69 kB / 0.6735 GB, free: 9.453 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.619e-05/0.7808, allocations: 43.88 kB / 0.6735 GB, free: 9.438 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008179/0.7816, allocations: 0.5126 MB / 0.674 GB, free: 9.102 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.626e-05/0.7817, allocations: 0 / 0.674 GB, free: 9.102 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.691e-05/0.7817, allocations: 20.62 kB / 0.674 GB, free: 9.086 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.304e-05/0.7817, allocations: 10.19 kB / 0.6741 GB, free: 9.086 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008825/0.7826, allocations: 482 kB / 0.6745 GB, free: 8.855 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003102/0.7857, allocations: 2.189 MB / 0.6767 GB, free: 6.844 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008372/0.7866, allocations: 372.3 kB / 0.677 GB, free: 6.652 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000358/0.787, allocations: 201 kB / 0.6772 GB, free: 6.551 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003505/0.7905, allocations: 1.998 MB / 0.6792 GB, free: 4.5 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.35e-05/0.7905, allocations: 37.19 kB / 0.6792 GB, free: 4.457 MB / 494.1 MB Notification: Performance of pre-optimization done (n=47): time 2.915e-06/0.7906, allocations: 0 / 0.6792 GB, free: 4.457 MB / 494.1 MB Notification: Performance of matching and sorting (n=47): time 0.002187/0.7927, allocations: 0.794 MB / 0.68 GB, free: 3.93 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.319e-05/0.7928, allocations: 60.14 kB / 0.68 GB, free: 3.863 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007056/0.7935, allocations: 476.9 kB / 0.6805 GB, free: 3.582 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.338e-05/0.7936, allocations: 36.45 kB / 0.6805 GB, free: 3.543 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002466/0.7938, allocations: 272.1 kB / 0.6808 GB, free: 3.297 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001471/0.794, allocations: 161.8 kB / 0.6809 GB, free: 3.156 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002756/0.7943, allocations: 78.62 kB / 0.681 GB, free: 3.105 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0002742/0.7946, allocations: 375.6 kB / 0.6814 GB, free: 2.742 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002634/0.7949, allocations: 128.5 kB / 0.6815 GB, free: 2.684 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000351/0.7952, allocations: 185 kB / 0.6817 GB, free: 2.566 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007474/0.796, allocations: 343.8 kB / 0.682 GB, free: 2.371 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.668e-06/0.796, allocations: 3.938 kB / 0.682 GB, free: 2.367 MB / 494.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009825/0.797, allocations: 0.4998 MB / 0.6825 GB, free: 2.094 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.143e-05/0.7971, allocations: 8.906 kB / 0.6825 GB, free: 2.09 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.284e-05/0.7971, allocations: 0 / 0.6825 GB, free: 2.09 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000325/0.7974, allocations: 67.8 kB / 0.6826 GB, free: 2.047 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003009/0.7977, allocations: 91.61 kB / 0.6826 GB, free: 2.023 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003553/0.8013, allocations: 2.924 MB / 0.6855 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004056/0.8017, allocations: 33.91 kB / 0.6855 GB, free: 15 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.508e-05/0.8018, allocations: 20.55 kB / 0.6855 GB, free: 15 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.0003108/0.8021, allocations: 184.2 kB / 0.6857 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00024/0.8023, allocations: 58.91 kB / 0.6858 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001438/0.8038, allocations: 0.718 MB / 0.6865 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-06/0.8038, allocations: 5.172 kB / 0.6865 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.8038, allocations: 3.984 kB / 0.6865 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/0.8038, allocations: 2.719 kB / 0.6865 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002183/0.806, allocations: 1.191 MB / 0.6877 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.043e-06/0.8061, allocations: 2.781 kB / 0.6877 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002617/0.8063, allocations: 73.44 kB / 0.6877 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002488/0.8066, allocations: 65.06 kB / 0.6878 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.291e-05/0.8066, allocations: 19.95 kB / 0.6878 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003095/0.8097, allocations: 2.932 MB / 0.6907 GB, free: 10.36 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.676e-06/0.8098, allocations: 0 / 0.6907 GB, free: 10.36 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001515/0.8113, allocations: 0.7655 MB / 0.6914 GB, free: 9.871 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001888/0.8115, allocations: 138.7 kB / 0.6916 GB, free: 9.734 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.967e-05/0.8116, allocations: 20.56 kB / 0.6916 GB, free: 9.719 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000222/0.8119, allocations: 6.656 kB / 0.6916 GB, free: 9.715 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001691/0.812, allocations: 41.67 kB / 0.6916 GB, free: 9.691 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.564e-05/0.8121, allocations: 20.17 kB / 0.6916 GB, free: 9.684 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000464/0.8125, allocations: 364.3 kB / 0.692 GB, free: 9.473 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8125, allocations: 0 / 0.692 GB, free: 9.473 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0007612/0.8133, allocations: 194.2 kB / 0.6922 GB, free: 9.426 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.002373/0.8157, allocations: 1.484 MB / 0.6936 GB, free: 7.996 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001544/0.8173, allocations: 0.6042 MB / 0.6942 GB, free: 7.363 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.8173, allocations: 0 / 0.6942 GB, free: 7.363 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006016/0.8179, allocations: 441.3 kB / 0.6946 GB, free: 6.906 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00134/0.8192, allocations: 183.8 kB / 0.6948 GB, free: 6.734 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007998/0.8272, allocations: 4.916 MB / 0.6996 GB, free: 1.684 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005016/0.8278, allocations: 0.8711 MB / 0.7005 GB, free: 0.7852 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0004789/0.8283, allocations: 122.6 kB / 0.7006 GB, free: 0.6758 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000488/0.8288, allocations: 235.4 kB / 0.7008 GB, free: 460 kB / 0.4981 GB Notification: Performance of SimCode: time 1.693e-06/0.8288, allocations: 3.938 kB / 0.7008 GB, free: 456 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05325/0.882, allocations: 16.39 MB / 0.7168 GB, free: 316 kB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.6/12.48, allocations: 11.53 kB / 0.7168 GB, free: 308 kB / 0.5137 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