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-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.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.006284/0.006284, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.001407/0.001407, allocations: 194.4 kB / 16.67 MB, free: 5.977 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.394/1.394, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7161/0.7161, allocations: 91.2 MB / 381.7 MB, free: 9.316 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001592/0.001592, allocations: 75.88 kB / 0.5164 GB, free: 9.504 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1367/0.1383, allocations: 67.69 MB / 0.5825 GB, free: 5.734 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.4357/0.574, allocations: 143.8 MB / 0.7229 GB, free: 8.668 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.004988/0.5791, allocations: 3.596 MB / 0.7264 GB, free: 5.059 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004375/0.5795, allocations: 11.94 kB / 0.7264 GB, free: 5.047 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0008228/0.5804, allocations: 174.8 kB / 0.7266 GB, free: 4.875 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001054/0.5815, allocations: 381.8 kB / 0.7269 GB, free: 4.5 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008445/0.5823, allocations: 291.7 kB / 0.7272 GB, free: 4.215 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0006086/0.583, allocations: 0.4939 MB / 0.7277 GB, free: 3.719 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002059/0.5832, allocations: 93.7 kB / 0.7278 GB, free: 3.621 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004574/0.5836, allocations: 242.9 kB / 0.728 GB, free: 3.383 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002792/0.5839, allocations: 231 kB / 0.7282 GB, free: 3.156 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 3.963e-05/0.584, allocations: 24 kB / 0.7283 GB, free: 3.133 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00093/0.5849, allocations: 499 kB / 0.7287 GB, free: 2.645 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 8.53e-05/0.585, allocations: 59.78 kB / 0.7288 GB, free: 2.586 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001632/0.5852, allocations: 180.2 kB / 0.729 GB, free: 2.41 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.000912/0.5861, allocations: 0.5485 MB / 0.7295 GB, free: 1.863 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.5861, allocations: 0 / 0.7295 GB, free: 1.863 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.693e-06/0.5861, allocations: 0 / 0.7295 GB, free: 1.863 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.412e-05/0.5862, allocations: 0 / 0.7295 GB, free: 1.863 MB / 0.5606 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.001322/0.5875, allocations: 0.7456 MB / 0.7302 GB, free: 1.062 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/0.5875, allocations: 12.03 kB / 0.7302 GB, free: 1.051 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.498e-05/0.5876, allocations: 50.73 kB / 0.7303 GB, free: 0.9922 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.475e-05/0.5877, allocations: 44.66 kB / 0.7303 GB, free: 0.9492 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005799/0.5883, allocations: 380.3 kB / 0.7307 GB, free: 0.5352 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.469e-05/0.5883, allocations: 24.36 kB / 0.7307 GB, free: 0.5117 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.88e-05/0.5884, allocations: 20 kB / 0.7307 GB, free: 0.4922 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005181/0.5889, allocations: 257.8 kB / 0.731 GB, free: 232 kB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.5889, allocations: 3.938 kB / 0.731 GB, free: 228 kB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.579e-05/0.589, allocations: 12 kB / 0.731 GB, free: 216 kB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.023e-05/0.589, allocations: 4 kB / 0.731 GB, free: 212 kB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004755/0.5894, allocations: 225.6 kB / 0.7312 GB, free: 15.98 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001405/0.5909, allocations: 1.093 MB / 0.7323 GB, free: 14.78 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005158/0.5914, allocations: 234.3 kB / 0.7325 GB, free: 14.54 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002372/0.5916, allocations: 118.2 kB / 0.7326 GB, free: 14.42 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009735/0.5926, allocations: 0.9761 MB / 0.7336 GB, free: 13.31 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003792/0.593, allocations: 143.3 kB / 0.7337 GB, free: 13.16 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=23): time 2.294e-06/0.593, allocations: 0 / 0.7337 GB, free: 13.16 MB / 0.5762 GB Notification: Performance of matching and sorting (n=23): time 0.001173/0.5942, allocations: 471.6 kB / 0.7342 GB, free: 12.67 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.267e-05/0.5943, allocations: 55.41 kB / 0.7342 GB, free: 12.6 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003622/0.5947, allocations: 333.6 kB / 0.7345 GB, free: 12.27 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.775e-05/0.5947, allocations: 37.7 kB / 0.7346 GB, free: 12.23 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001252/0.5948, allocations: 188.4 kB / 0.7348 GB, free: 12.04 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.188e-05/0.5949, allocations: 87.31 kB / 0.7348 GB, free: 11.95 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.404e-05/0.595, allocations: 45.94 kB / 0.7349 GB, free: 11.9 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001244/0.5951, allocations: 350.7 kB / 0.7352 GB, free: 11.55 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002232/0.5953, allocations: 80.19 kB / 0.7353 GB, free: 11.47 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000233/0.5956, allocations: 119 kB / 0.7354 GB, free: 11.35 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004396/0.596, allocations: 220.9 kB / 0.7356 GB, free: 11.12 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.596, allocations: 0 / 0.7356 GB, free: 11.12 MB / 0.5762 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007445/0.5968, allocations: 345.9 kB / 0.7359 GB, free: 10.77 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 4.126e-05/0.5969, allocations: 39.88 kB / 0.736 GB, free: 10.72 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.5969, allocations: 0 / 0.736 GB, free: 10.72 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002465/0.5971, allocations: 40.83 kB / 0.736 GB, free: 10.68 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002235/0.5973, allocations: 47.91 kB / 0.7361 GB, free: 10.63 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001318/0.5987, allocations: 1.524 MB / 0.7376 GB, free: 8.969 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000251/0.5989, allocations: 27.22 kB / 0.7376 GB, free: 8.945 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.981e-05/0.599, allocations: 16.06 kB / 0.7376 GB, free: 8.93 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.0001759/0.5992, allocations: 149.7 kB / 0.7377 GB, free: 8.773 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.863e-05/0.5992, allocations: 39.77 kB / 0.7378 GB, free: 8.734 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00078/0.6, allocations: 346.9 kB / 0.7381 GB, free: 8.387 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.6, allocations: 7.984 kB / 0.7381 GB, free: 8.379 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-06/0.6, allocations: 0 / 0.7381 GB, free: 8.379 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.6001, allocations: 0 / 0.7381 GB, free: 8.379 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001146/0.6012, allocations: 0.7467 MB / 0.7388 GB, free: 7.57 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.05e-06/0.6012, allocations: 3.938 kB / 0.7389 GB, free: 7.566 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001685/0.6014, allocations: 39.95 kB / 0.7389 GB, free: 7.527 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001521/0.6016, allocations: 44.77 kB / 0.7389 GB, free: 7.48 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.121e-05/0.6016, allocations: 11.98 kB / 0.7389 GB, free: 7.469 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001121/0.6027, allocations: 1.52 MB / 0.7404 GB, free: 5.805 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.6027, allocations: 4.031 kB / 0.7404 GB, free: 5.801 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008864/0.6036, allocations: 0.4936 MB / 0.7409 GB, free: 5.285 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 8.933e-05/0.6037, allocations: 120.8 kB / 0.741 GB, free: 5.148 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.578e-05/0.6038, allocations: 4 kB / 0.741 GB, free: 5.145 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002162/0.604, allocations: 16.86 kB / 0.741 GB, free: 5.129 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.672e-05/0.6041, allocations: 27.95 kB / 0.7411 GB, free: 5.102 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.916e-05/0.6041, allocations: 12.06 kB / 0.7411 GB, free: 5.09 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002374/0.6044, allocations: 235.2 kB / 0.7413 GB, free: 4.863 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.674e-06/0.6044, allocations: 4 kB / 0.7413 GB, free: 4.859 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.000464/0.6048, allocations: 131.6 kB / 0.7414 GB, free: 4.73 MB / 0.5762 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.001487/0.6063, allocations: 1.144 MB / 0.7426 GB, free: 3.555 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0008245/0.6072, allocations: 401.8 kB / 0.7429 GB, free: 3.137 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.6072, allocations: 0 / 0.7429 GB, free: 3.137 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0004055/0.6076, allocations: 246.5 kB / 0.7432 GB, free: 2.883 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006828/0.6083, allocations: 113.1 kB / 0.7433 GB, free: 2.781 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004528/0.6128, allocations: 3.2 MB / 0.7464 GB, free: 15.47 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003407/0.6132, allocations: 0.7834 MB / 0.7472 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0002116/0.6134, allocations: 58.77 kB / 0.7472 GB, free: 14.6 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001722/0.6136, allocations: 119.4 kB / 0.7473 GB, free: 14.48 MB / 0.5919 GB Notification: Performance of SimCode: time 5.82e-07/0.6136, allocations: 0 / 0.7473 GB, free: 14.48 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03663/0.6502, allocations: 10.24 MB / 0.7573 GB, free: 4.41 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.65/11.3, allocations: 7.688 kB / 0.7574 GB, free: 4.402 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