Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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_dev_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,fileNamePrefix="ThermofluidStream_dev_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.006258/0.006258, allocations: 101.7 kB / 15.73 MB, free: 6.055 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.001562/0.001563, allocations: 191.5 kB / 16.67 MB, free: 5.977 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.535/1.535, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8493/0.8493, allocations: 93.71 MB / 384.2 MB, free: 5.23 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002575/0.002575, allocations: 79.88 kB / 0.5199 GB, free: 1.059 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.471/0.4736, allocations: 68.25 MB / 0.5866 GB, free: 10.23 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.2831/0.7568, allocations: 149.5 MB / 0.7326 GB, free: 4.117 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.453/1.21, allocations: 4.63 MB / 0.7371 GB, free: 1.438 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007901/1.211, allocations: 27.88 kB / 0.7372 GB, free: 1.438 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001107/1.212, allocations: 297.2 kB / 0.7374 GB, free: 1.438 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001998/1.214, allocations: 0.6603 MB / 0.7381 GB, free: 1.426 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001438/1.215, allocations: 0.4956 MB / 0.7386 GB, free: 1.414 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001454/1.217, allocations: 0.9797 MB / 0.7395 GB, free: 1.414 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003343/1.217, allocations: 167.5 kB / 0.7397 GB, free: 1.379 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00102/1.218, allocations: 0.5115 MB / 0.7402 GB, free: 1.375 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005583/1.219, allocations: 464.4 kB / 0.7406 GB, free: 1.375 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 6.888e-05/1.219, allocations: 43.97 kB / 0.7407 GB, free: 1.375 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00193/1.221, allocations: 0.7642 MB / 0.7414 GB, free: 1.359 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001645/1.221, allocations: 116.9 kB / 0.7415 GB, free: 1.359 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003917/1.221, allocations: 318.2 kB / 0.7418 GB, free: 1.359 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.002026/1.223, allocations: 0.9696 MB / 0.7428 GB, free: 1.289 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 7.143e-06/1.223, allocations: 0 / 0.7428 GB, free: 1.289 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.003e-06/1.223, allocations: 1.094 kB / 0.7428 GB, free: 1.289 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.11e-05/1.223, allocations: 1.75 kB / 0.7428 GB, free: 1.289 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.002082/1.225, allocations: 0.9887 MB / 0.7437 GB, free: 16.66 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/1.226, allocations: 13.34 kB / 0.7438 GB, free: 16.66 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.1e-05/1.226, allocations: 80.16 kB / 0.7438 GB, free: 16.62 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001309/1.226, allocations: 76.22 kB / 0.7439 GB, free: 16.59 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001078/1.227, allocations: 0.5543 MB / 0.7444 GB, free: 16.31 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.534e-05/1.227, allocations: 29.31 kB / 0.7445 GB, free: 16.31 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.514e-05/1.227, allocations: 47.31 kB / 0.7445 GB, free: 16.31 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009753/1.228, allocations: 0.5056 MB / 0.745 GB, free: 16.23 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.883e-05/1.228, allocations: 4.188 kB / 0.745 GB, free: 16.23 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.421e-05/1.228, allocations: 14.5 kB / 0.745 GB, free: 16.23 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.242e-05/1.228, allocations: 11.84 kB / 0.745 GB, free: 16.23 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008966/1.229, allocations: 483 kB / 0.7455 GB, free: 16.23 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002633/1.232, allocations: 2.172 MB / 0.7476 GB, free: 14.92 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007462/1.232, allocations: 366 kB / 0.748 GB, free: 14.89 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002937/1.233, allocations: 205.9 kB / 0.7482 GB, free: 14.89 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002568/1.235, allocations: 1.996 MB / 0.7501 GB, free: 13.27 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.124e-05/1.235, allocations: 37.19 kB / 0.7502 GB, free: 13.23 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=47): time 1.884e-06/1.235, allocations: 2.109 kB / 0.7502 GB, free: 13.23 MB / 0.5919 GB Notification: Performance of matching and sorting (n=47): time 0.002039/1.237, allocations: 0.794 MB / 0.7509 GB, free: 12.95 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.595e-05/1.237, allocations: 61.12 kB / 0.751 GB, free: 12.88 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005813/1.238, allocations: 491.5 kB / 0.7515 GB, free: 12.76 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.657e-05/1.238, allocations: 32.11 kB / 0.7515 GB, free: 12.73 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001769/1.238, allocations: 272.2 kB / 0.7517 GB, free: 12.61 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001343/1.238, allocations: 171 kB / 0.7519 GB, free: 12.5 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001534/1.239, allocations: 85.2 kB / 0.752 GB, free: 12.48 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001964/1.239, allocations: 369.7 kB / 0.7523 GB, free: 12.16 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002726/1.239, allocations: 127.3 kB / 0.7525 GB, free: 12.16 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00032/1.239, allocations: 186.2 kB / 0.7526 GB, free: 12.12 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000525/1.24, allocations: 344.3 kB / 0.753 GB, free: 12.08 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/1.24, allocations: 0 / 0.753 GB, free: 12.08 MB / 0.5919 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0008364/1.241, allocations: 0.5082 MB / 0.7535 GB, free: 11.98 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.027e-05/1.241, allocations: 5.094 kB / 0.7535 GB, free: 11.98 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/1.241, allocations: 2.281 kB / 0.7535 GB, free: 11.98 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003037/1.241, allocations: 66.02 kB / 0.7535 GB, free: 11.96 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002909/1.241, allocations: 89.16 kB / 0.7536 GB, free: 11.96 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002564/1.244, allocations: 2.924 MB / 0.7565 GB, free: 9.266 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002848/1.244, allocations: 42.28 kB / 0.7565 GB, free: 9.238 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.866e-05/1.244, allocations: 23.47 kB / 0.7565 GB, free: 9.238 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.0002575/1.245, allocations: 180.5 kB / 0.7567 GB, free: 9.113 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001091/1.245, allocations: 64.81 kB / 0.7568 GB, free: 9.082 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001248/1.246, allocations: 0.7128 MB / 0.7575 GB, free: 8.934 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.149e-06/1.246, allocations: 5.75 kB / 0.7575 GB, free: 8.934 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/1.246, allocations: 0 / 0.7575 GB, free: 8.934 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/1.246, allocations: 3.422 kB / 0.7575 GB, free: 8.934 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00167/1.248, allocations: 1.196 MB / 0.7586 GB, free: 8.551 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/1.248, allocations: 0.9062 kB / 0.7586 GB, free: 8.551 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002325/1.248, allocations: 73.3 kB / 0.7587 GB, free: 8.551 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002171/1.248, allocations: 65.97 kB / 0.7588 GB, free: 8.535 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.256e-05/1.248, allocations: 15.02 kB / 0.7588 GB, free: 8.535 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002546/1.251, allocations: 2.935 MB / 0.7617 GB, free: 5.828 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/1.251, allocations: 0.9375 kB / 0.7617 GB, free: 5.828 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001217/1.252, allocations: 0.7649 MB / 0.7624 GB, free: 5.605 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002318/1.252, allocations: 143 kB / 0.7625 GB, free: 5.469 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.457e-05/1.252, allocations: 15.7 kB / 0.7626 GB, free: 5.465 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002096/1.253, allocations: 13.12 kB / 0.7626 GB, free: 5.465 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001073/1.253, allocations: 38.98 kB / 0.7626 GB, free: 5.461 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.659e-05/1.253, allocations: 18.02 kB / 0.7626 GB, free: 5.461 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0004567/1.253, allocations: 369.9 kB / 0.763 GB, free: 5.379 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.1e-07/1.253, allocations: 0.9062 kB / 0.763 GB, free: 5.379 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0007923/1.254, allocations: 197.2 kB / 0.7632 GB, free: 5.355 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.001975/1.256, allocations: 1.477 MB / 0.7646 GB, free: 4.574 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001077/1.257, allocations: 0.5922 MB / 0.7652 GB, free: 4.34 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/1.257, allocations: 0 / 0.7652 GB, free: 4.34 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0005723/1.258, allocations: 443.2 kB / 0.7656 GB, free: 4.113 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009508/1.259, allocations: 190.9 kB / 0.7658 GB, free: 4.082 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006801/1.265, allocations: 4.77 MB / 0.7705 GB, free: 2.281 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006274/1.266, allocations: 0.8716 MB / 0.7713 GB, free: 1.582 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004256/1.266, allocations: 126 kB / 0.7714 GB, free: 1.555 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002952/1.267, allocations: 239 kB / 0.7717 GB, free: 1.547 MB / 0.5919 GB Notification: Performance of SimCode: time 5.31e-07/1.267, allocations: 0 / 0.7717 GB, free: 1.547 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05965/1.326, allocations: 16.65 MB / 0.7879 GB, free: 14.87 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.11/12.44, allocations: 9.438 kB / 0.7879 GB, free: 14.86 MB / 0.6075 GB (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_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_dev_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance.fmu > ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_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_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches