Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.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/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/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.CheckValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_CheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.CheckValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_CheckValve",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.004724/0.004724, allocations: 101 kB / 15.73 MB, free: 6.059 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.001239/0.001239, allocations: 194 kB / 16.68 MB, free: 5.969 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.429/1.429, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.7352/0.7352, allocations: 89.46 MB / 380 MB, free: 8.598 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002232/0.002232, allocations: 83.86 kB / 0.5139 GB, free: 7.168 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.332/0.3342, allocations: 67.29 MB / 0.5796 GB, free: 15.26 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.161/0.4953, allocations: 143.7 MB / 0.72 GB, free: 0.5625 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.004499/0.4998, allocations: 3.575 MB / 0.7235 GB, free: 12.98 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002256/0.5001, allocations: 0 / 0.7235 GB, free: 12.98 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0005826/0.5007, allocations: 174.9 kB / 0.7236 GB, free: 12.8 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0007962/0.5015, allocations: 353.9 kB / 0.724 GB, free: 12.46 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007481/0.5023, allocations: 291 kB / 0.7242 GB, free: 12.17 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0005245/0.5028, allocations: 461.9 kB / 0.7247 GB, free: 11.72 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001869/0.503, allocations: 80.89 kB / 0.7248 GB, free: 11.64 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004336/0.5035, allocations: 219.1 kB / 0.725 GB, free: 11.43 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003076/0.5038, allocations: 219.1 kB / 0.7252 GB, free: 11.21 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.206e-05/0.5038, allocations: 24 kB / 0.7252 GB, free: 11.19 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009872/0.5048, allocations: 499.1 kB / 0.7257 GB, free: 10.7 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 7.282e-05/0.5049, allocations: 63.7 kB / 0.7257 GB, free: 10.64 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001683/0.5051, allocations: 159.1 kB / 0.7259 GB, free: 10.48 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0007935/0.5059, allocations: 491.5 kB / 0.7263 GB, free: 10 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.5059, allocations: 0 / 0.7263 GB, free: 10 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.283e-06/0.5059, allocations: 0 / 0.7263 GB, free: 10 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.474e-06/0.5059, allocations: 0 / 0.7263 GB, free: 10 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: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001312/0.5072, allocations: 0.6913 MB / 0.727 GB, free: 9.254 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.5073, allocations: 8.031 kB / 0.727 GB, free: 9.246 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.164e-05/0.5074, allocations: 58.72 kB / 0.7271 GB, free: 9.18 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.502e-05/0.5075, allocations: 36.7 kB / 0.7271 GB, free: 9.145 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003941/0.5079, allocations: 295.6 kB / 0.7274 GB, free: 8.816 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.794e-05/0.5079, allocations: 12.81 kB / 0.7274 GB, free: 8.801 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.484e-05/0.508, allocations: 31.92 kB / 0.7274 GB, free: 8.77 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005154/0.5085, allocations: 257.8 kB / 0.7277 GB, free: 8.504 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.339e-05/0.5085, allocations: 4 kB / 0.7277 GB, free: 8.5 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.485e-05/0.5085, allocations: 8 kB / 0.7277 GB, free: 8.492 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.192e-05/0.5085, allocations: 8 kB / 0.7277 GB, free: 8.484 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004895/0.509, allocations: 217.5 kB / 0.7279 GB, free: 8.273 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001464/0.5105, allocations: 1.077 MB / 0.729 GB, free: 7.082 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005405/0.5111, allocations: 230.7 kB / 0.7292 GB, free: 6.852 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000261/0.5113, allocations: 112.8 kB / 0.7293 GB, free: 6.738 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001065/0.5124, allocations: 0.9919 MB / 0.7303 GB, free: 5.609 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004276/0.5129, allocations: 147.3 kB / 0.7304 GB, free: 5.453 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=23): time 1.883e-06/0.5129, allocations: 0 / 0.7304 GB, free: 5.453 MB / 0.5762 GB Notification: Performance of matching and sorting (n=23): time 0.001183/0.5141, allocations: 458.8 kB / 0.7308 GB, free: 4.98 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.493e-05/0.5141, allocations: 55.34 kB / 0.7309 GB, free: 4.914 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002996/0.5144, allocations: 275 kB / 0.7312 GB, free: 4.633 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.985e-05/0.5145, allocations: 37.64 kB / 0.7312 GB, free: 4.59 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001297/0.5146, allocations: 172.4 kB / 0.7314 GB, free: 4.414 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.252e-05/0.5147, allocations: 83.31 kB / 0.7314 GB, free: 4.332 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.017e-05/0.5148, allocations: 45.94 kB / 0.7315 GB, free: 4.281 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001501/0.5149, allocations: 338.8 kB / 0.7318 GB, free: 3.941 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002209/0.5152, allocations: 76.19 kB / 0.7319 GB, free: 3.867 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002365/0.5154, allocations: 110.9 kB / 0.732 GB, free: 3.75 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004488/0.5159, allocations: 222.8 kB / 0.7322 GB, free: 3.52 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.5159, allocations: 4 kB / 0.7322 GB, free: 3.516 MB / 0.5762 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006982/0.5166, allocations: 346.5 kB / 0.7325 GB, free: 3.164 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 4.43e-05/0.5166, allocations: 33.69 kB / 0.7326 GB, free: 3.125 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.5166, allocations: 4 kB / 0.7326 GB, free: 3.121 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002338/0.5169, allocations: 36.83 kB / 0.7326 GB, free: 3.082 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002028/0.5171, allocations: 43.91 kB / 0.7326 GB, free: 3.039 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001369/0.5185, allocations: 1.531 MB / 0.7341 GB, free: 1.363 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001953/0.5187, allocations: 27.83 kB / 0.7342 GB, free: 1.336 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.828e-05/0.5187, allocations: 11.98 kB / 0.7342 GB, free: 1.324 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 1 * 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 {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001534/0.5189, allocations: 149.8 kB / 0.7343 GB, free: 1.168 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.706e-05/0.5189, allocations: 27.95 kB / 0.7343 GB, free: 1.141 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007545/0.5197, allocations: 340.4 kB / 0.7347 GB, free: 0.7969 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.656e-06/0.5197, allocations: 8 kB / 0.7347 GB, free: 0.7891 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.424e-06/0.5197, allocations: 0 / 0.7347 GB, free: 0.7891 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.5197, allocations: 0 / 0.7347 GB, free: 0.7891 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001159/0.5209, allocations: 0.7264 MB / 0.7354 GB, free: 0 / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.331e-05/0.5209, allocations: 4.047 kB / 0.7354 GB, free: 15.99 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001637/0.5211, allocations: 39.86 kB / 0.7354 GB, free: 15.96 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001573/0.5213, allocations: 48.78 kB / 0.7355 GB, free: 15.91 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.3e-05/0.5213, allocations: 8 kB / 0.7355 GB, free: 15.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001242/0.5225, allocations: 1.524 MB / 0.737 GB, free: 14.24 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.5226, allocations: 0 / 0.737 GB, free: 14.24 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009113/0.5235, allocations: 493.6 kB / 0.7374 GB, free: 13.73 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 8.477e-05/0.5236, allocations: 116.8 kB / 0.7376 GB, free: 13.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.049e-05/0.5236, allocations: 8 kB / 0.7376 GB, free: 13.59 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001949/0.5238, allocations: 15.98 kB / 0.7376 GB, free: 13.58 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.602e-05/0.5239, allocations: 28.05 kB / 0.7376 GB, free: 13.55 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.259e-05/0.5239, allocations: 7.984 kB / 0.7376 GB, free: 13.54 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.000208/0.5242, allocations: 202 kB / 0.7378 GB, free: 13.35 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5242, allocations: 0 / 0.7378 GB, free: 13.35 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0004789/0.5246, allocations: 127.7 kB / 0.7379 GB, free: 13.22 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (flowResistance.inlet.m_flow) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001491/0.5261, allocations: 1.143 MB / 0.739 GB, free: 12.05 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0008041/0.527, allocations: 397.8 kB / 0.7394 GB, free: 11.64 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.527, allocations: 4 kB / 0.7394 GB, free: 11.63 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0004111/0.5274, allocations: 242.6 kB / 0.7397 GB, free: 11.38 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006333/0.528, allocations: 116.9 kB / 0.7398 GB, free: 11.27 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004399/0.5324, allocations: 2.951 MB / 0.7427 GB, free: 8.211 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004092/0.5329, allocations: 0.7715 MB / 0.7434 GB, free: 7.414 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0002152/0.5331, allocations: 54.77 kB / 0.7435 GB, free: 7.359 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001741/0.5333, allocations: 99.39 kB / 0.7436 GB, free: 7.262 MB / 0.5919 GB Notification: Performance of SimCode: time 1.323e-06/0.5333, allocations: 4 kB / 0.7436 GB, free: 7.258 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3038/0.8371, allocations: 9.457 MB / 0.7528 GB, free: 169.8 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.909/10.75, allocations: 9.844 kB / 0.7528 GB, free: 169.8 MB / 0.5919 GB (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.sim & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve_res.csv --start-time 0 --stop-time 1 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 ThermofluidStream_ThermofluidStream_FlowControl_Tests_CheckValve.fmu > ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.CheckValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches