Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.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-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.FlowControl.Tests.CheckValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_CheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_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.008076/0.008076, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.00171/0.00171, allocations: 197.3 kB / 16.67 MB, free: 5.934 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.478/1.478, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6944/0.6944, allocations: 91.2 MB / 381.7 MB, free: 9.355 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003206/0.003206, allocations: 83.88 kB / 0.5164 GB, free: 9.52 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1533/0.1566, allocations: 67.69 MB / 0.5825 GB, free: 5.754 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve): time 0.5059/0.6625, allocations: 145.3 MB / 0.7244 GB, free: 7.172 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.004188/0.6668, allocations: 3.337 MB / 0.7276 GB, free: 3.828 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000407/0.6672, allocations: 15.94 kB / 0.7277 GB, free: 3.812 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0007295/0.668, allocations: 210.6 kB / 0.7279 GB, free: 3.605 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001252/0.6693, allocations: 0.4972 MB / 0.7283 GB, free: 3.105 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.000976/0.6703, allocations: 394.6 kB / 0.7287 GB, free: 2.719 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0007345/0.671, allocations: 0.7272 MB / 0.7294 GB, free: 1.988 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002414/0.6713, allocations: 121.3 kB / 0.7295 GB, free: 1.879 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006275/0.6719, allocations: 358.5 kB / 0.7299 GB, free: 1.527 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004038/0.6723, allocations: 366.6 kB / 0.7302 GB, free: 1.168 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 4.931e-05/0.6724, allocations: 32 kB / 0.7303 GB, free: 1.137 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001164/0.6735, allocations: 0.582 MB / 0.7308 GB, free: 0.5547 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.000104/0.6737, allocations: 83.64 kB / 0.7309 GB, free: 484 kB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001985/0.6739, allocations: 238.7 kB / 0.7311 GB, free: 244 kB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001092/0.675, allocations: 0.743 MB / 0.7319 GB, free: 15.5 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.675, allocations: 0 / 0.7319 GB, free: 15.5 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.813e-06/0.675, allocations: 0 / 0.7319 GB, free: 15.5 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.895e-06/0.675, allocations: 0 / 0.7319 GB, free: 15.5 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: 83 * Number of variables: 83 Notification: Performance of Generate backend data structure: time 0.001401/0.6764, allocations: 0.8398 MB / 0.7327 GB, free: 14.6 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.6765, allocations: 12.03 kB / 0.7327 GB, free: 14.59 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.184e-05/0.6766, allocations: 66.72 kB / 0.7328 GB, free: 14.52 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001016/0.6767, allocations: 60.56 kB / 0.7328 GB, free: 14.46 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006787/0.6774, allocations: 438.2 kB / 0.7332 GB, free: 13.99 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.24e-05/0.6774, allocations: 33.31 kB / 0.7333 GB, free: 13.96 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.669e-05/0.6775, allocations: 28.56 kB / 0.7333 GB, free: 13.93 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007259/0.6782, allocations: 423.9 kB / 0.7337 GB, free: 13.49 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.481e-05/0.6782, allocations: 3.984 kB / 0.7337 GB, free: 13.49 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.558e-05/0.6783, allocations: 16 kB / 0.7337 GB, free: 13.47 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.093e-05/0.6783, allocations: 8 kB / 0.7337 GB, free: 13.46 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006751/0.679, allocations: 370.4 kB / 0.7341 GB, free: 13.1 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002/0.681, allocations: 1.848 MB / 0.7359 GB, free: 11.08 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007412/0.6817, allocations: 342.7 kB / 0.7362 GB, free: 10.73 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003153/0.6821, allocations: 169.6 kB / 0.7364 GB, free: 10.57 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001837/0.6839, allocations: 1.531 MB / 0.7379 GB, free: 8.824 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004244/0.6843, allocations: 203.3 kB / 0.7381 GB, free: 8.613 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=37): time 1.984e-06/0.6844, allocations: 0 / 0.7381 GB, free: 8.613 MB / 0.5762 GB Notification: Performance of matching and sorting (n=37): time 0.001356/0.6857, allocations: 0.6077 MB / 0.7387 GB, free: 7.977 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.077e-05/0.6858, allocations: 55.41 kB / 0.7387 GB, free: 7.91 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003895/0.6862, allocations: 365.6 kB / 0.7391 GB, free: 7.543 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.344e-05/0.6862, allocations: 37.7 kB / 0.7391 GB, free: 7.5 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.000173/0.6864, allocations: 220.6 kB / 0.7393 GB, free: 7.281 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001015/0.6865, allocations: 134.8 kB / 0.7394 GB, free: 7.148 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001164/0.6866, allocations: 74.06 kB / 0.7395 GB, free: 7.066 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000141/0.6868, allocations: 354.7 kB / 0.7398 GB, free: 6.711 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002758/0.6871, allocations: 116.7 kB / 0.74 GB, free: 6.598 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003188/0.6874, allocations: 182.6 kB / 0.7401 GB, free: 6.402 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006236/0.688, allocations: 327.2 kB / 0.7404 GB, free: 6.059 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.6881, allocations: 0 / 0.7404 GB, free: 6.059 MB / 0.5762 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008688/0.6889, allocations: 476.8 kB / 0.7409 GB, free: 5.578 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.841e-05/0.689, allocations: 33.7 kB / 0.7409 GB, free: 5.539 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.689, allocations: 160 / 0.7409 GB, free: 5.539 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002539/0.6892, allocations: 49.64 kB / 0.741 GB, free: 5.488 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002854/0.6895, allocations: 75.89 kB / 0.741 GB, free: 5.414 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001361/0.6909, allocations: 1.529 MB / 0.7425 GB, free: 3.738 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002749/0.6912, allocations: 39.75 kB / 0.7426 GB, free: 3.699 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.723e-05/0.6912, allocations: 16 kB / 0.7426 GB, free: 3.684 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (42): * Single equations (assignments): 40 * 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.0001937/0.6914, allocations: 177.6 kB / 0.7428 GB, free: 3.5 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.06e-05/0.6915, allocations: 43.72 kB / 0.7428 GB, free: 3.457 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001058/0.6926, allocations: 0.5269 MB / 0.7433 GB, free: 2.93 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.071e-06/0.6926, allocations: 7.984 kB / 0.7433 GB, free: 2.922 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.515e-06/0.6926, allocations: 4 kB / 0.7433 GB, free: 2.918 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.563e-06/0.6926, allocations: 3.984 kB / 0.7433 GB, free: 2.914 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001508/0.6941, allocations: 0.9732 MB / 0.7443 GB, free: 1.875 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.6942, allocations: 3.984 kB / 0.7443 GB, free: 1.871 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002443/0.6944, allocations: 59.97 kB / 0.7443 GB, free: 1.812 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001559/0.6946, allocations: 44.81 kB / 0.7444 GB, free: 1.766 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.666e-05/0.6946, allocations: 8 kB / 0.7444 GB, free: 1.758 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001096/0.6957, allocations: 1.531 MB / 0.7459 GB, free: 92 kB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-06/0.6957, allocations: 3.984 kB / 0.7459 GB, free: 88 kB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001204/0.6969, allocations: 0.6506 MB / 0.7465 GB, free: 15.41 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001136/0.6971, allocations: 128.7 kB / 0.7467 GB, free: 15.27 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.809e-05/0.6971, allocations: 8 kB / 0.7467 GB, free: 15.26 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002461/0.6974, allocations: 19.92 kB / 0.7467 GB, free: 15.24 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.927e-05/0.6975, allocations: 40.02 kB / 0.7467 GB, free: 15.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.848e-05/0.6975, allocations: 11.98 kB / 0.7467 GB, free: 15.19 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002731/0.6978, allocations: 267.2 kB / 0.747 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6978, allocations: 0 / 0.747 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0005961/0.6984, allocations: 163.7 kB / 0.7471 GB, free: 14.77 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (flowResistance.rear.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 (34): * Single equations (assignments): 31 * 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.001681/0.7001, allocations: 1.324 MB / 0.7484 GB, free: 13.41 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0009712/0.7011, allocations: 0.5014 MB / 0.7489 GB, free: 12.88 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.7011, allocations: 3.938 kB / 0.7489 GB, free: 12.88 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0004618/0.7016, allocations: 294.8 kB / 0.7492 GB, free: 12.58 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008103/0.7024, allocations: 149.9 kB / 0.7494 GB, free: 12.44 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005339/0.7077, allocations: 3.844 MB / 0.7531 GB, free: 8.449 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003372/0.7081, allocations: 0.8194 MB / 0.7539 GB, free: 7.605 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0002753/0.7084, allocations: 87.5 kB / 0.754 GB, free: 7.531 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002181/0.7086, allocations: 167.3 kB / 0.7541 GB, free: 7.367 MB / 0.5919 GB Notification: Performance of SimCode: time 5.61e-07/0.7086, allocations: 0 / 0.7541 GB, free: 7.367 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04681/0.7554, allocations: 12.69 MB / 0.7665 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.37/13.13, allocations: 26.8 kB / 0.7666 GB, free: 10.86 MB / 0.6075 GB (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.sim & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.Undirected.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_Undirected_FlowControl_Tests_CheckValve.fmu > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches