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.001783/0.001783, 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.002106/0.002106, allocations: 196.8 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.735/1.735, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.9239/0.9239, allocations: 93.72 MB / 384.1 MB, free: 6.984 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002608/0.002608, allocations: 78.56 kB / 463.5 MB, free: 22 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2089/0.2116, allocations: 68.27 MB / 0.5193 GB, free: 6.914 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.8116/1.023, allocations: 149.5 MB / 0.6653 GB, free: 14.11 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.008235/1.031, allocations: 4.635 MB / 0.6698 GB, free: 10.33 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001058/1.033, allocations: 30.84 kB / 0.6699 GB, free: 10.31 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001392/1.034, allocations: 293.5 kB / 0.6701 GB, free: 10.07 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002582/1.037, allocations: 0.6672 MB / 0.6708 GB, free: 9.52 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001783/1.038, allocations: 0.4969 MB / 0.6713 GB, free: 9.137 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001691/1.04, allocations: 0.9795 MB / 0.6722 GB, free: 8.57 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000396/1.041, allocations: 162.8 kB / 0.6724 GB, free: 8.496 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00126/1.042, allocations: 0.5077 MB / 0.6729 GB, free: 8.188 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007423/1.043, allocations: 462.7 kB / 0.6733 GB, free: 7.918 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.503e-05/1.043, allocations: 45.22 kB / 0.6734 GB, free: 7.918 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002511/1.045, allocations: 0.7717 MB / 0.6741 GB, free: 7.555 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002113/1.045, allocations: 119.5 kB / 0.6742 GB, free: 7.457 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000407/1.046, allocations: 307.8 kB / 0.6745 GB, free: 7.258 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002363/1.048, allocations: 0.9442 MB / 0.6755 GB, free: 6.652 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.139e-05/1.048, allocations: 0 / 0.6755 GB, free: 6.652 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.246e-06/1.048, allocations: 0 / 0.6755 GB, free: 6.652 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.579e-05/1.048, allocations: 0 / 0.6755 GB, free: 6.652 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.002207/1.051, allocations: 0.9645 MB / 0.6764 GB, free: 5.855 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.217e-05/1.051, allocations: 7.469 kB / 0.6764 GB, free: 5.855 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003561/1.051, allocations: 81.62 kB / 0.6765 GB, free: 5.781 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001645/1.051, allocations: 71.34 kB / 0.6766 GB, free: 5.746 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008747/1.052, allocations: 0.5081 MB / 0.677 GB, free: 5.301 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.953e-05/1.052, allocations: 32.16 kB / 0.6771 GB, free: 5.285 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.952e-05/1.052, allocations: 44.06 kB / 0.6771 GB, free: 5.27 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001041/1.053, allocations: 0.5075 MB / 0.6776 GB, free: 4.941 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.927e-05/1.053, allocations: 3.938 kB / 0.6776 GB, free: 4.938 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.577e-05/1.053, allocations: 17.19 kB / 0.6776 GB, free: 4.926 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.603e-05/1.053, allocations: 9.562 kB / 0.6776 GB, free: 4.926 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008733/1.054, allocations: 482.3 kB / 0.6781 GB, free: 4.691 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003412/1.058, allocations: 2.187 MB / 0.6802 GB, free: 2.68 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009378/1.059, allocations: 367.5 kB / 0.6806 GB, free: 2.492 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003852/1.059, allocations: 211.3 kB / 0.6808 GB, free: 2.383 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003181/1.062, allocations: 1.994 MB / 0.6827 GB, free: 340 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.104e-05/1.062, allocations: 33.09 kB / 0.6828 GB, free: 300 kB / 494.1 MB Notification: Performance of pre-optimization done (n=47): time 3.847e-06/1.062, allocations: 0 / 0.6828 GB, free: 300 kB / 494.1 MB Notification: Performance of matching and sorting (n=47): time 0.002063/1.064, allocations: 0.7938 MB / 0.6835 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.7e-05/1.064, allocations: 60.66 kB / 0.6836 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009211/1.065, allocations: 484.6 kB / 0.6841 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 6.352e-05/1.065, allocations: 35.48 kB / 0.6841 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002886/1.066, allocations: 273 kB / 0.6844 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001576/1.066, allocations: 157.2 kB / 0.6845 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000151/1.066, allocations: 82.86 kB / 0.6846 GB, free: 14.94 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0002282/1.066, allocations: 374.2 kB / 0.6849 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004095/1.067, allocations: 130.2 kB / 0.6851 GB, free: 14.51 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003662/1.067, allocations: 185.3 kB / 0.6852 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006958/1.068, allocations: 342.5 kB / 0.6856 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/1.068, allocations: 3.156 kB / 0.6856 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001098/1.069, allocations: 0.4974 MB / 0.6861 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.277e-05/1.069, allocations: 4.812 kB / 0.6861 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.17e-05/1.069, allocations: 10.59 kB / 0.6861 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006094/1.07, allocations: 65.39 kB / 0.6861 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003058/1.07, allocations: 91.05 kB / 0.6862 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003097/1.073, allocations: 2.921 MB / 0.6891 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004357/1.074, allocations: 37.91 kB / 0.6891 GB, free: 10.84 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002209/1.074, allocations: 20.7 kB / 0.6891 GB, free: 10.84 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.0003798/1.074, allocations: 180 kB / 0.6893 GB, free: 10.67 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001444/1.074, allocations: 61.69 kB / 0.6894 GB, free: 10.64 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001817/1.076, allocations: 0.7089 MB / 0.6901 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.486e-06/1.076, allocations: 4.688 kB / 0.6901 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.206e-06/1.076, allocations: 6.797 kB / 0.6901 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/1.076, allocations: 0 / 0.6901 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002465/1.079, allocations: 1.195 MB / 0.6912 GB, free: 9.273 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.04e-05/1.079, allocations: 6.672 kB / 0.6912 GB, free: 9.27 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002636/1.079, allocations: 73.59 kB / 0.6913 GB, free: 9.254 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002667/1.079, allocations: 65.5 kB / 0.6914 GB, free: 9.211 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.637e-05/1.079, allocations: 19.55 kB / 0.6914 GB, free: 9.199 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003167/1.083, allocations: 2.937 MB / 0.6943 GB, free: 6.199 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/1.083, allocations: 0 / 0.6943 GB, free: 6.199 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001753/1.084, allocations: 0.7582 MB / 0.695 GB, free: 5.645 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002078/1.085, allocations: 136.3 kB / 0.6951 GB, free: 5.492 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.288e-05/1.085, allocations: 19.84 kB / 0.6952 GB, free: 5.473 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002215/1.085, allocations: 12.06 kB / 0.6952 GB, free: 5.461 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001325/1.085, allocations: 43.83 kB / 0.6952 GB, free: 5.418 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.092e-05/1.085, allocations: 19.98 kB / 0.6952 GB, free: 5.398 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0006111/1.086, allocations: 362.8 kB / 0.6956 GB, free: 5.047 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/1.086, allocations: 4 kB / 0.6956 GB, free: 5.043 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001234/1.087, allocations: 191.8 kB / 0.6958 GB, free: 4.855 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.002724/1.09, allocations: 1.48 MB / 0.6972 GB, free: 3.332 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001875/1.092, allocations: 0.5964 MB / 0.6978 GB, free: 2.707 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.922e-05/1.092, allocations: 0 / 0.6978 GB, free: 2.707 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0008205/1.093, allocations: 445.6 kB / 0.6982 GB, free: 2.246 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001358/1.094, allocations: 189.5 kB / 0.6984 GB, free: 2.074 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009266/1.103, allocations: 4.912 MB / 0.7032 GB, free: 13.03 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000943/1.104, allocations: 0.8711 MB / 0.704 GB, free: 12.12 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0004882/1.105, allocations: 118.7 kB / 0.7042 GB, free: 12.02 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004125/1.105, allocations: 243.3 kB / 0.7044 GB, free: 11.78 MB / 0.5137 GB Notification: Performance of SimCode: time 1.583e-06/1.105, allocations: 0 / 0.7044 GB, free: 11.78 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07285/1.178, allocations: 16.39 MB / 0.7204 GB, free: 11.65 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.94/13.12, allocations: 19.73 kB / 0.7204 GB, free: 11.63 MB / 0.5294 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