Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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_dev_ThermofluidStream_FlowControl_Tests_CheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.CheckValve,fileNamePrefix="ThermofluidStream_dev_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.001831/0.001831, allocations: 108 kB / 15.61 MB, free: 148 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.002227/0.002227, allocations: 197.1 kB / 16.53 MB, free: 6.656 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.747/1.747, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 1.024/1.024, allocations: 93.72 MB / 384.1 MB, free: 6.969 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002397/0.002398, allocations: 82.22 kB / 463.5 MB, free: 21.94 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2097/0.2121, allocations: 68.27 MB / 0.5193 GB, free: 6.891 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.6671/0.8793, allocations: 143.8 MB / 0.6597 GB, free: 2.652 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.005713/0.885, allocations: 3.612 MB / 0.6632 GB, free: 15.72 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004731/0.8855, allocations: 14.78 kB / 0.6633 GB, free: 15.71 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007513/0.8863, allocations: 183 kB / 0.6634 GB, free: 15.56 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001018/0.8874, allocations: 381.5 kB / 0.6638 GB, free: 15.25 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001019/0.8884, allocations: 294.3 kB / 0.6641 GB, free: 15.04 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006839/0.8891, allocations: 0.5155 MB / 0.6646 GB, free: 14.74 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002364/0.8894, allocations: 96.27 kB / 0.6647 GB, free: 14.68 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005948/0.89, allocations: 247.5 kB / 0.6649 GB, free: 14.54 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003785/0.8904, allocations: 225.3 kB / 0.6651 GB, free: 14.41 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.521e-05/0.8905, allocations: 29.12 kB / 0.6652 GB, free: 14.4 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001031/0.8915, allocations: 0.4895 MB / 0.6656 GB, free: 14.17 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001084/0.8916, allocations: 57.25 kB / 0.6657 GB, free: 14.12 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002151/0.8919, allocations: 182.7 kB / 0.6659 GB, free: 14 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009147/0.8928, allocations: 0.5295 MB / 0.6664 GB, free: 13.67 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.8928, allocations: 2.719 kB / 0.6664 GB, free: 13.67 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.8928, allocations: 4 kB / 0.6664 GB, free: 13.66 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.378e-06/0.8928, allocations: 0 / 0.6664 GB, free: 13.66 MB / 494.1 MB 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.0016/0.8945, allocations: 0.7332 MB / 0.6671 GB, free: 13.01 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.8945, allocations: 9.594 kB / 0.6671 GB, free: 13.01 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.314e-05/0.8946, allocations: 54.52 kB / 0.6672 GB, free: 12.95 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.474e-05/0.8947, allocations: 45 kB / 0.6672 GB, free: 12.93 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005762/0.8953, allocations: 373 kB / 0.6676 GB, free: 12.59 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.271e-05/0.8953, allocations: 24.66 kB / 0.6676 GB, free: 12.57 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.328e-05/0.8954, allocations: 19 kB / 0.6676 GB, free: 12.57 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005321/0.8959, allocations: 266.5 kB / 0.6679 GB, free: 12.39 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.8959, allocations: 0 / 0.6679 GB, free: 12.39 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.726e-05/0.8959, allocations: 8 kB / 0.6679 GB, free: 12.38 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.075e-06/0.896, allocations: 6.844 kB / 0.6679 GB, free: 12.38 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004832/0.8965, allocations: 219.2 kB / 0.6681 GB, free: 12.28 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001703/0.8982, allocations: 1.1 MB / 0.6692 GB, free: 11.24 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005213/0.8987, allocations: 226.7 kB / 0.6694 GB, free: 11.12 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002428/0.899, allocations: 108.7 kB / 0.6695 GB, free: 11.06 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001204/0.9002, allocations: 0.9942 MB / 0.6704 GB, free: 10.02 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004352/0.9006, allocations: 150.4 kB / 0.6706 GB, free: 9.906 MB / 494.1 MB Notification: Performance of pre-optimization done (n=23): time 1.663e-06/0.9006, allocations: 0 / 0.6706 GB, free: 9.906 MB / 494.1 MB Notification: Performance of matching and sorting (n=23): time 0.001225/0.9019, allocations: 469 kB / 0.671 GB, free: 9.602 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.861e-05/0.9019, allocations: 53.69 kB / 0.6711 GB, free: 9.539 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004164/0.9024, allocations: 345.8 kB / 0.6714 GB, free: 9.32 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.668e-05/0.9024, allocations: 32.45 kB / 0.6714 GB, free: 9.285 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001928/0.9026, allocations: 197.8 kB / 0.6716 GB, free: 9.105 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.789e-05/0.9027, allocations: 73.03 kB / 0.6717 GB, free: 9.043 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.297e-05/0.9028, allocations: 51.19 kB / 0.6718 GB, free: 9.004 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0002046/0.903, allocations: 346.5 kB / 0.6721 GB, free: 8.664 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002377/0.9032, allocations: 82.28 kB / 0.6722 GB, free: 8.625 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002407/0.9035, allocations: 112.3 kB / 0.6723 GB, free: 8.555 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004679/0.904, allocations: 217.7 kB / 0.6725 GB, free: 8.414 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.904, allocations: 2.625 kB / 0.6725 GB, free: 8.414 MB / 494.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007253/0.9047, allocations: 355.1 kB / 0.6728 GB, free: 8.199 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.925e-05/0.9048, allocations: 30.02 kB / 0.6729 GB, free: 8.168 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.9048, allocations: 7.062 kB / 0.6729 GB, free: 8.164 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002616/0.9051, allocations: 40.48 kB / 0.6729 GB, free: 8.141 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001995/0.9053, allocations: 44.72 kB / 0.6729 GB, free: 8.129 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001583/0.9069, allocations: 1.531 MB / 0.6744 GB, free: 6.578 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003646/0.9072, allocations: 25.83 kB / 0.6745 GB, free: 6.562 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.128e-05/0.9073, allocations: 15.83 kB / 0.6745 GB, free: 6.555 MB / 494.1 MB 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.0001882/0.9075, allocations: 148.8 kB / 0.6746 GB, free: 6.414 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.695e-05/0.9075, allocations: 34.88 kB / 0.6746 GB, free: 6.395 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007995/0.9083, allocations: 345.5 kB / 0.675 GB, free: 6.184 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.067e-06/0.9084, allocations: 2.5 kB / 0.675 GB, free: 6.184 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.9084, allocations: 3 kB / 0.675 GB, free: 6.184 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.9084, allocations: 0 / 0.675 GB, free: 6.184 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001502/0.9099, allocations: 0.757 MB / 0.6757 GB, free: 5.57 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.847e-06/0.9099, allocations: 7.922 kB / 0.6757 GB, free: 5.562 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001483/0.9101, allocations: 31.55 kB / 0.6758 GB, free: 5.559 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001415/0.9102, allocations: 42.56 kB / 0.6758 GB, free: 5.531 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.395e-05/0.9102, allocations: 10.81 kB / 0.6758 GB, free: 5.523 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001436/0.9117, allocations: 1.527 MB / 0.6773 GB, free: 3.996 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.9117, allocations: 0 / 0.6773 GB, free: 3.996 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009572/0.9127, allocations: 0.4934 MB / 0.6778 GB, free: 3.664 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001177/0.9128, allocations: 123.1 kB / 0.6779 GB, free: 3.535 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.556e-05/0.9129, allocations: 5.812 kB / 0.6779 GB, free: 3.531 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002071/0.9131, allocations: 13.77 kB / 0.6779 GB, free: 3.523 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.447e-05/0.9132, allocations: 28.44 kB / 0.6779 GB, free: 3.508 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.21e-05/0.9132, allocations: 11.36 kB / 0.678 GB, free: 3.504 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002869/0.9135, allocations: 245.8 kB / 0.6782 GB, free: 3.344 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.9135, allocations: 4.062 kB / 0.6782 GB, free: 3.34 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0004745/0.914, allocations: 122.1 kB / 0.6783 GB, free: 3.309 MB / 494.1 MB 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.001746/0.9157, allocations: 1.149 MB / 0.6794 GB, free: 2.391 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0009055/0.9166, allocations: 402.6 kB / 0.6798 GB, free: 2.102 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.9167, allocations: 0 / 0.6798 GB, free: 2.102 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004582/0.9171, allocations: 244.7 kB / 0.6801 GB, free: 1.926 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006699/0.9178, allocations: 116.9 kB / 0.6802 GB, free: 1.867 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005512/0.9233, allocations: 3.249 MB / 0.6833 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005331/0.9239, allocations: 0.7886 MB / 0.6841 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002742/0.9242, allocations: 63.89 kB / 0.6842 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000218/0.9244, allocations: 127.6 kB / 0.6843 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of SimCode: time 8.71e-07/0.9244, allocations: 0 / 0.6843 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05136/0.9758, allocations: 10.2 MB / 0.6942 GB, free: 6.859 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.85/12.82, allocations: 13.41 kB / 0.6943 GB, free: 6.852 MB / 0.4981 GB (rm -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_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_dev_ThermofluidStream_FlowControl_Tests_CheckValve.fmu > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_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_dev_ThermofluidStream.FlowControl.Tests.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches