Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.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.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_TanValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_TanValve",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.008173/0.008173, allocations: 101.8 kB / 15.73 MB, free: 5.551 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.001608/0.001608, allocations: 194.8 kB / 16.67 MB, free: 5.477 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.626/1.626, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.9723/0.9723, allocations: 93.7 MB / 384.2 MB, free: 5.281 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002379/0.002379, allocations: 87.86 kB / 0.5199 GB, free: 1.129 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.476/0.4784, allocations: 68.26 MB / 0.5866 GB, free: 10.41 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.7351/1.214, allocations: 164.4 MB / 0.7471 GB, free: 1.402 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0173/1.231, allocations: 12.94 MB / 0.7597 GB, free: 1.258 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001723/1.233, allocations: 38 kB / 0.7598 GB, free: 1.258 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.00218/1.235, allocations: 0.5861 MB / 0.7604 GB, free: 1.238 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.004099/1.239, allocations: 0.8783 MB / 0.7612 GB, free: 1.219 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003281/1.242, allocations: 0.8081 MB / 0.762 GB, free: 1.199 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002283/1.245, allocations: 1.36 MB / 0.7633 GB, free: 1.199 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005837/1.245, allocations: 324.4 kB / 0.7636 GB, free: 1.125 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001391/1.247, allocations: 0.5557 MB / 0.7642 GB, free: 1.125 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009207/1.248, allocations: 0.6666 MB / 0.7648 GB, free: 1.121 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001254/1.248, allocations: 77.34 kB / 0.7649 GB, free: 1.121 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003692/1.251, allocations: 1.399 MB / 0.7663 GB, free: 1.094 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002217/1.252, allocations: 197.8 kB / 0.7665 GB, free: 1.094 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0006321/1.252, allocations: 0.5077 MB / 0.767 GB, free: 1.09 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.003513/1.256, allocations: 1.586 MB / 0.7685 GB, free: 0.8164 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/1.256, allocations: 0.9688 kB / 0.7685 GB, free: 0.8164 MB / 0.5762 GB Notification: Performance of FrontEnd: time 3.807e-06/1.256, allocations: 3.219 kB / 0.7685 GB, free: 0.8164 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.923e-05/1.256, allocations: 0.9375 kB / 0.7685 GB, free: 0.8164 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: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.002741/1.259, allocations: 1.458 MB / 0.7699 GB, free: 15.98 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.941e-05/1.259, allocations: 12.19 kB / 0.7699 GB, free: 15.98 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001425/1.259, allocations: 119 kB / 0.7701 GB, free: 15.93 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002022/1.259, allocations: 126.5 kB / 0.7702 GB, free: 15.87 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001212/1.26, allocations: 0.7988 MB / 0.771 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.32e-05/1.26, allocations: 50.44 kB / 0.771 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.98e-05/1.26, allocations: 72.66 kB / 0.7711 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001252/1.262, allocations: 0.7287 MB / 0.7718 GB, free: 15.45 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.615e-05/1.262, allocations: 6.531 kB / 0.7718 GB, free: 15.45 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.679e-05/1.262, allocations: 26.97 kB / 0.7718 GB, free: 15.45 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.6e-05/1.262, allocations: 16.75 kB / 0.7718 GB, free: 15.45 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001102/1.263, allocations: 0.6355 MB / 0.7725 GB, free: 15.44 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004/1.267, allocations: 3.105 MB / 0.7755 GB, free: 13.64 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001252/1.268, allocations: 0.5689 MB / 0.776 GB, free: 13.61 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004347/1.269, allocations: 263.4 kB / 0.7763 GB, free: 13.59 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002987/1.272, allocations: 2.596 MB / 0.7788 GB, free: 11.32 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.344e-05/1.272, allocations: 42.72 kB / 0.7789 GB, free: 11.28 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=55): time 2.956e-06/1.272, allocations: 0 / 0.7789 GB, free: 11.28 MB / 0.5919 GB Notification: Performance of matching and sorting (n=56): time 0.003633/1.275, allocations: 1.802 MB / 0.7806 GB, free: 10.59 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.238e-05/1.275, allocations: 58.25 kB / 0.7807 GB, free: 10.52 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008673/1.276, allocations: 0.6974 MB / 0.7814 GB, free: 10.39 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 4.398e-05/1.276, allocations: 35.14 kB / 0.7814 GB, free: 10.36 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003218/1.277, allocations: 447.4 kB / 0.7818 GB, free: 10.2 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001656/1.277, allocations: 202.9 kB / 0.782 GB, free: 10.06 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001367/1.277, allocations: 93.52 kB / 0.7821 GB, free: 10.05 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001627/1.277, allocations: 322.8 kB / 0.7824 GB, free: 9.742 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002968/1.277, allocations: 165.9 kB / 0.7826 GB, free: 9.742 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003716/1.278, allocations: 229.3 kB / 0.7828 GB, free: 9.688 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007656/1.279, allocations: 430.4 kB / 0.7832 GB, free: 9.633 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/1.279, allocations: 0.8438 kB / 0.7832 GB, free: 9.633 MB / 0.5919 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001256/1.28, allocations: 0.6575 MB / 0.7839 GB, free: 9.523 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.686e-05/1.28, allocations: 5.969 kB / 0.7839 GB, free: 9.523 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.114e-05/1.28, allocations: 0.875 kB / 0.7839 GB, free: 9.523 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004721/1.28, allocations: 116.4 kB / 0.784 GB, free: 9.512 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003456/1.281, allocations: 99.69 kB / 0.7841 GB, free: 9.512 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002467/1.283, allocations: 2.043 MB / 0.7861 GB, free: 8.133 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003467/1.284, allocations: 16.38 kB / 0.7861 GB, free: 8.133 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.016e-05/1.284, allocations: 23.38 kB / 0.7861 GB, free: 8.133 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003914/1.284, allocations: 212.8 kB / 0.7863 GB, free: 8.012 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001927/1.284, allocations: 95.92 kB / 0.7864 GB, free: 7.957 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001684/1.286, allocations: 0.8748 MB / 0.7872 GB, free: 7.801 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-06/1.286, allocations: 5.469 kB / 0.7873 GB, free: 7.801 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/1.286, allocations: 3.938 kB / 0.7873 GB, free: 7.801 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.137e-05/1.286, allocations: 6.75 kB / 0.7873 GB, free: 7.797 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00268/1.289, allocations: 1.536 MB / 0.7888 GB, free: 7.441 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/1.289, allocations: 0.75 kB / 0.7888 GB, free: 7.441 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003111/1.289, allocations: 92.23 kB / 0.7889 GB, free: 7.441 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000364/1.289, allocations: 114.8 kB / 0.789 GB, free: 7.43 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.21e-05/1.289, allocations: 21.11 kB / 0.789 GB, free: 7.43 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002351/1.292, allocations: 2.056 MB / 0.791 GB, free: 6.047 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/1.292, allocations: 1 kB / 0.791 GB, free: 6.047 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00181/1.294, allocations: 0.9829 MB / 0.7919 GB, free: 5.801 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002502/1.294, allocations: 157.9 kB / 0.7921 GB, free: 5.656 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.56e-05/1.294, allocations: 12.09 kB / 0.7921 GB, free: 5.656 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003078/1.294, allocations: 22.72 kB / 0.7921 GB, free: 5.652 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001372/1.294, allocations: 54.14 kB / 0.7922 GB, free: 5.645 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.861e-05/1.295, allocations: 20.22 kB / 0.7922 GB, free: 5.645 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0008989/1.295, allocations: 0.5088 MB / 0.7927 GB, free: 5.555 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.4e-07/1.295, allocations: 2.219 kB / 0.7927 GB, free: 5.555 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001279/1.297, allocations: 328 kB / 0.793 GB, free: 5.52 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (flowResistance1.inlet.m_flow,flowResistance2.inlet.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 (48): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003026/1.3, allocations: 1.902 MB / 0.7949 GB, free: 4.688 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001394/1.301, allocations: 0.6178 MB / 0.7955 GB, free: 4.555 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/1.301, allocations: 0.8438 kB / 0.7955 GB, free: 4.555 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0007777/1.302, allocations: 445.6 kB / 0.7959 GB, free: 4.426 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00134/1.303, allocations: 270.4 kB / 0.7962 GB, free: 4.391 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01073/1.314, allocations: 6.328 MB / 0.8023 GB, free: 2.219 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007619/1.315, allocations: 0.9997 MB / 0.8033 GB, free: 1.5 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0007003/1.316, allocations: 147.8 kB / 0.8035 GB, free: 1.441 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005874/1.316, allocations: 384.1 kB / 0.8038 GB, free: 1.156 MB / 0.5919 GB Notification: Performance of SimCode: time 2.154e-06/1.316, allocations: 3.188 kB / 0.8038 GB, free: 1.156 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07069/1.387, allocations: 25.76 MB / 0.829 GB, free: 12.39 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.11/15.5, allocations: 3.625 kB / 0.829 GB, free: 12.39 MB / 0.6231 GB (rm -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve_res.csv --start-time 0 --stop-time 100 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_TanValve.fmu > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.TanValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches