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.002166/0.002166, 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.002751/0.002751, allocations: 193.1 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.797/1.797, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 1.059/1.059, allocations: 93.71 MB / 384.1 MB, free: 6.98 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.002521/0.002521, allocations: 85.42 kB / 463.5 MB, free: 22.02 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2155/0.2181, allocations: 68.26 MB / 0.5193 GB, free: 6.914 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.7496/0.9677, allocations: 164.4 MB / 0.6798 GB, free: 2.156 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.02264/0.9904, allocations: 12.92 MB / 0.6925 GB, free: 7.68 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00203/0.9925, allocations: 38.69 kB / 0.6925 GB, free: 7.664 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.002537/0.9951, allocations: 0.5823 MB / 0.6931 GB, free: 7.184 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.004461/0.9996, allocations: 0.8773 MB / 0.6939 GB, free: 6.453 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003522/1.003, allocations: 0.8197 MB / 0.6947 GB, free: 5.832 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002861/1.006, allocations: 1.355 MB / 0.696 GB, free: 5.035 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006511/1.007, allocations: 321.3 kB / 0.6963 GB, free: 4.867 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001461/1.008, allocations: 0.55 MB / 0.6969 GB, free: 4.551 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001046/1.009, allocations: 0.6572 MB / 0.6975 GB, free: 4.156 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001215/1.009, allocations: 81.22 kB / 0.6976 GB, free: 4.152 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004439/1.014, allocations: 1.393 MB / 0.699 GB, free: 2.934 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002842/1.014, allocations: 191.1 kB / 0.6991 GB, free: 2.746 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0008564/1.015, allocations: 0.5167 MB / 0.6997 GB, free: 2.227 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.00503/1.02, allocations: 1.534 MB / 0.7012 GB, free: 0.6875 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 8.115e-06/1.02, allocations: 0 / 0.7012 GB, free: 0.6875 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.174e-06/1.02, allocations: 0 / 0.7012 GB, free: 0.6875 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 2.896e-05/1.02, allocations: 0 / 0.7012 GB, free: 0.6875 MB / 0.4981 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.003798/1.024, allocations: 1.434 MB / 0.7026 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 7.2e-05/1.024, allocations: 8.031 kB / 0.7026 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001553/1.024, allocations: 118.6 kB / 0.7027 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00024/1.024, allocations: 127.4 kB / 0.7028 GB, free: 14.95 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001486/1.026, allocations: 0.7211 MB / 0.7035 GB, free: 14.18 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.437e-05/1.026, allocations: 50 kB / 0.7035 GB, free: 14.13 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001311/1.026, allocations: 72 kB / 0.7036 GB, free: 14.06 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001848/1.028, allocations: 0.7313 MB / 0.7043 GB, free: 13.32 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.021e-05/1.028, allocations: 0 / 0.7043 GB, free: 13.32 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.496e-05/1.028, allocations: 28 kB / 0.7044 GB, free: 13.29 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.34e-05/1.028, allocations: 19.98 kB / 0.7044 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001309/1.029, allocations: 0.6363 MB / 0.705 GB, free: 12.64 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005716/1.035, allocations: 3.132 MB / 0.7081 GB, free: 9.188 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001591/1.037, allocations: 0.5791 MB / 0.7086 GB, free: 8.602 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005376/1.037, allocations: 260 kB / 0.7089 GB, free: 8.344 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003936/1.041, allocations: 2.58 MB / 0.7114 GB, free: 5.352 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.727e-05/1.041, allocations: 39.12 kB / 0.7114 GB, free: 5.305 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=55): time 4.368e-06/1.041, allocations: 3.938 kB / 0.7114 GB, free: 5.301 MB / 0.5137 GB Notification: Performance of matching and sorting (n=56): time 0.004545/1.046, allocations: 1.777 MB / 0.7132 GB, free: 3.43 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.176e-05/1.046, allocations: 59.97 kB / 0.7132 GB, free: 3.355 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001269/1.047, allocations: 0.7044 MB / 0.7139 GB, free: 2.641 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 4.587e-05/1.047, allocations: 33.7 kB / 0.7139 GB, free: 2.602 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.000463/1.048, allocations: 440.3 kB / 0.7144 GB, free: 2.168 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002027/1.048, allocations: 185.2 kB / 0.7145 GB, free: 1.984 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001696/1.048, allocations: 94.23 kB / 0.7146 GB, free: 1.887 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001938/1.048, allocations: 322 kB / 0.7149 GB, free: 1.566 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003822/1.049, allocations: 165 kB / 0.7151 GB, free: 1.406 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004569/1.049, allocations: 239.2 kB / 0.7153 GB, free: 1.152 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008443/1.05, allocations: 423.8 kB / 0.7157 GB, free: 0.7188 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/1.05, allocations: 1.125 kB / 0.7157 GB, free: 0.7188 MB / 0.5137 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001522/1.052, allocations: 0.6547 MB / 0.7164 GB, free: 56 kB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.352e-05/1.052, allocations: 4 kB / 0.7164 GB, free: 52 kB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.36e-05/1.052, allocations: 0 / 0.7164 GB, free: 52 kB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000663/1.052, allocations: 116.8 kB / 0.7165 GB, free: 15.93 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004272/1.053, allocations: 95.88 kB / 0.7166 GB, free: 15.84 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003241/1.056, allocations: 2.046 MB / 0.7186 GB, free: 13.66 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004682/1.057, allocations: 16.06 kB / 0.7186 GB, free: 13.64 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.114e-05/1.057, allocations: 27.98 kB / 0.7186 GB, free: 13.61 MB / 0.5294 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.0005638/1.057, allocations: 221.6 kB / 0.7188 GB, free: 13.39 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002091/1.057, allocations: 86.91 kB / 0.7189 GB, free: 13.3 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002082/1.06, allocations: 0.8777 MB / 0.7198 GB, free: 12.39 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.107e-06/1.06, allocations: 8 kB / 0.7198 GB, free: 12.38 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/1.06, allocations: 0 / 0.7198 GB, free: 12.38 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.346e-06/1.06, allocations: 3.938 kB / 0.7198 GB, free: 12.38 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002899/1.062, allocations: 1.536 MB / 0.7213 GB, free: 10.78 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.711e-06/1.062, allocations: 0 / 0.7213 GB, free: 10.78 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003591/1.063, allocations: 91.98 kB / 0.7214 GB, free: 10.69 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004077/1.063, allocations: 128.5 kB / 0.7215 GB, free: 10.56 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.021e-05/1.063, allocations: 23.98 kB / 0.7215 GB, free: 10.54 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002741/1.066, allocations: 2.035 MB / 0.7235 GB, free: 8.359 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.148e-06/1.066, allocations: 112 / 0.7235 GB, free: 8.359 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002134/1.068, allocations: 0.9792 MB / 0.7245 GB, free: 7.348 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002375/1.068, allocations: 163.9 kB / 0.7246 GB, free: 7.168 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.247e-05/1.069, allocations: 12 kB / 0.7246 GB, free: 7.156 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003126/1.069, allocations: 16.06 kB / 0.7246 GB, free: 7.141 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001333/1.069, allocations: 56.42 kB / 0.7247 GB, free: 7.086 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.318e-05/1.069, allocations: 16 kB / 0.7247 GB, free: 7.07 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0008531/1.07, allocations: 0.5068 MB / 0.7252 GB, free: 6.57 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.4e-07/1.07, allocations: 0 / 0.7252 GB, free: 6.57 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001235/1.071, allocations: 327.8 kB / 0.7255 GB, free: 6.25 MB / 0.5294 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.003275/1.075, allocations: 1.911 MB / 0.7274 GB, free: 4.301 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002039/1.077, allocations: 0.6388 MB / 0.728 GB, free: 3.648 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/1.077, allocations: 0 / 0.728 GB, free: 3.648 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0009662/1.078, allocations: 433.6 kB / 0.7284 GB, free: 3.215 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001682/1.079, allocations: 282 kB / 0.7287 GB, free: 2.949 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01246/1.092, allocations: 6.645 MB / 0.7352 GB, free: 12.04 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001144/1.093, allocations: 1.001 MB / 0.7361 GB, free: 11.02 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0006909/1.094, allocations: 145.9 kB / 0.7363 GB, free: 10.87 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005366/1.094, allocations: 383.3 kB / 0.7367 GB, free: 10.49 MB / 0.545 GB Notification: Performance of SimCode: time 8.21e-07/1.094, allocations: 0 / 0.7367 GB, free: 10.49 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08071/1.175, allocations: 25.42 MB / 0.7615 GB, free: 1.281 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.31/13.48, allocations: 0 / 0.7615 GB, free: 1.281 MB / 0.5606 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