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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001267/0.001267, allocations: 110.4 kB / 18.94 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001573/0.001573, allocations: 218.2 kB / 22.25 MB, free: 5.121 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.47/1.47, allocations: 230.6 MB / 256 MB, free: 7.984 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo): time 0.7772/0.7772, allocations: 94.56 MB / 407 MB, free: 9.191 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00251/0.00251, allocations: 88.45 kB / 0.555 GB, free: 38.66 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1318/0.1343, allocations: 73.06 MB / 0.6263 GB, free: 492 kB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve): time 0.5124/0.6467, allocations: 146 MB / 0.7689 GB, free: 2.148 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.004237/0.6509, allocations: 3.355 MB / 0.7722 GB, free: 2.086 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004641/0.6514, allocations: 26.39 kB / 0.7722 GB, free: 2.082 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0007335/0.6521, allocations: 213.6 kB / 0.7724 GB, free: 2.078 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001281/0.6534, allocations: 0.494 MB / 0.7729 GB, free: 2.059 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001082/0.6545, allocations: 412.2 kB / 0.7733 GB, free: 2.039 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001259/0.6558, allocations: 0.7294 MB / 0.774 GB, free: 2.035 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002149/0.656, allocations: 73.14 kB / 0.774 GB, free: 2.023 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009572/0.6569, allocations: 379.2 kB / 0.7744 GB, free: 2.02 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007146/0.6576, allocations: 354.9 kB / 0.7747 GB, free: 2.02 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 8.605e-05/0.6577, allocations: 33.69 kB / 0.7748 GB, free: 2.02 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001469/0.6592, allocations: 0.6024 MB / 0.7754 GB, free: 2.004 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001266/0.6593, allocations: 88.31 kB / 0.7754 GB, free: 2.004 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003206/0.6596, allocations: 234.1 kB / 0.7757 GB, free: 2.004 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001254/0.6609, allocations: 0.7422 MB / 0.7764 GB, free: 1.945 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.6609, allocations: 0 / 0.7764 GB, free: 1.945 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.413e-06/0.6609, allocations: 1.531 kB / 0.7764 GB, free: 1.945 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.915e-05/0.6609, allocations: 1.203 kB / 0.7764 GB, free: 1.945 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.001668/0.6626, allocations: 0.7834 MB / 0.7772 GB, free: 17.45 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.6626, allocations: 8.469 kB / 0.7772 GB, free: 17.45 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.257e-05/0.6627, allocations: 68.22 kB / 0.7772 GB, free: 17.41 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.81e-05/0.6628, allocations: 58.44 kB / 0.7773 GB, free: 17.38 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006633/0.6635, allocations: 355.4 kB / 0.7776 GB, free: 17.19 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.124e-05/0.6635, allocations: 27.91 kB / 0.7777 GB, free: 17.18 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.025e-05/0.6635, allocations: 36.42 kB / 0.7777 GB, free: 17.18 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007743/0.6643, allocations: 434 kB / 0.7781 GB, free: 17.09 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/0.6643, allocations: 5.344 kB / 0.7781 GB, free: 17.09 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.932e-05/0.6644, allocations: 13.47 kB / 0.7781 GB, free: 17.09 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.254e-05/0.6644, allocations: 8.438 kB / 0.7781 GB, free: 17.09 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007661/0.6651, allocations: 382.2 kB / 0.7785 GB, free: 17.08 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00233/0.6675, allocations: 1.819 MB / 0.7803 GB, free: 15.88 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008098/0.6683, allocations: 318.6 kB / 0.7806 GB, free: 15.85 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002765/0.6686, allocations: 150.2 kB / 0.7807 GB, free: 15.84 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001673/0.6702, allocations: 0.7557 MB / 0.7815 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005114/0.6707, allocations: 214.7 kB / 0.7817 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=37): time 2.394e-06/0.6707, allocations: 0 / 0.7817 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of matching and sorting (n=37): time 0.001439/0.6722, allocations: 0.5257 MB / 0.7822 GB, free: 15.44 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.562e-05/0.6722, allocations: 59.34 kB / 0.7822 GB, free: 15.38 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004491/0.6727, allocations: 358 kB / 0.7826 GB, free: 15.26 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 4.672e-05/0.6727, allocations: 31.55 kB / 0.7826 GB, free: 15.23 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003583/0.6731, allocations: 229.2 kB / 0.7828 GB, free: 15.11 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001215/0.6732, allocations: 130.8 kB / 0.7829 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001425/0.6734, allocations: 70.88 kB / 0.783 GB, free: 15 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.000252/0.6736, allocations: 359.9 kB / 0.7834 GB, free: 14.69 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000313/0.6739, allocations: 122.8 kB / 0.7835 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004548/0.6744, allocations: 175.6 kB / 0.7836 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006896/0.6751, allocations: 335 kB / 0.784 GB, free: 14.55 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.6751, allocations: 0 / 0.784 GB, free: 14.55 MB / 0.5919 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.00116/0.6762, allocations: 472.6 kB / 0.7844 GB, free: 14.44 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 5.97e-05/0.6763, allocations: 35.08 kB / 0.7844 GB, free: 14.41 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.058e-05/0.6763, allocations: 3.781 kB / 0.7844 GB, free: 14.41 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003191/0.6766, allocations: 45.27 kB / 0.7845 GB, free: 14.39 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004002/0.677, allocations: 74.62 kB / 0.7846 GB, free: 14.39 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001551/0.6786, allocations: 1.431 MB / 0.786 GB, free: 13.16 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002737/0.6788, allocations: 47.22 kB / 0.786 GB, free: 13.14 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.606e-05/0.6789, allocations: 19.39 kB / 0.786 GB, free: 13.14 MB / 0.5919 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.0003632/0.6792, allocations: 160.4 kB / 0.7862 GB, free: 13.03 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.831e-05/0.6793, allocations: 42.44 kB / 0.7862 GB, free: 13 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009677/0.6803, allocations: 0.5279 MB / 0.7867 GB, free: 12.9 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.459e-05/0.6803, allocations: 3.281 kB / 0.7867 GB, free: 12.9 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.088e-05/0.6803, allocations: 3.375 kB / 0.7867 GB, free: 12.9 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.375e-05/0.6803, allocations: 0 / 0.7867 GB, free: 12.9 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001508/0.6818, allocations: 0.9424 MB / 0.7877 GB, free: 12.59 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.6818, allocations: 3.828 kB / 0.7877 GB, free: 12.59 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002132/0.682, allocations: 60.22 kB / 0.7877 GB, free: 12.59 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001381/0.6822, allocations: 46.41 kB / 0.7878 GB, free: 12.58 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.664e-05/0.6822, allocations: 11.69 kB / 0.7878 GB, free: 12.58 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001265/0.6835, allocations: 1.434 MB / 0.7892 GB, free: 11.34 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.6835, allocations: 6.922 kB / 0.7892 GB, free: 11.34 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001086/0.6846, allocations: 0.6431 MB / 0.7898 GB, free: 11.14 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 8.268e-05/0.6846, allocations: 41.09 kB / 0.7898 GB, free: 11.12 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.485e-05/0.6847, allocations: 14.98 kB / 0.7899 GB, free: 11.12 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002164/0.6849, allocations: 15.39 kB / 0.7899 GB, free: 11.11 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.182e-05/0.685, allocations: 41.34 kB / 0.7899 GB, free: 11.11 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.615e-05/0.685, allocations: 12.31 kB / 0.7899 GB, free: 11.11 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002498/0.6853, allocations: 268.4 kB / 0.7902 GB, free: 11.03 MB / 0.5919 GB Notification: Performance of sort global known variables: time 8e-08/0.6853, allocations: 0 / 0.7902 GB, free: 11.03 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0006618/0.6859, allocations: 169.1 kB / 0.7903 GB, free: 11 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.001763/0.6877, allocations: 1.313 MB / 0.7916 GB, free: 10.26 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001005/0.6887, allocations: 496.6 kB / 0.7921 GB, free: 10.06 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.6887, allocations: 0 / 0.7921 GB, free: 10.06 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0004354/0.6891, allocations: 278.8 kB / 0.7924 GB, free: 9.949 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008566/0.69, allocations: 149.1 kB / 0.7925 GB, free: 9.926 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005613/0.6956, allocations: 3.863 MB / 0.7963 GB, free: 8.191 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004271/0.696, allocations: 0.8141 MB / 0.7971 GB, free: 7.484 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.000349/0.6964, allocations: 97.14 kB / 0.7972 GB, free: 7.453 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002497/0.6966, allocations: 163.9 kB / 0.7973 GB, free: 7.445 MB / 0.5919 GB Notification: Performance of SimCode: time 1.233e-06/0.6966, allocations: 0 / 0.7973 GB, free: 7.445 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0496/0.7462, allocations: 13.08 MB / 0.8101 GB, free: 3.688 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.38/13.13, allocations: 14.45 kB / 0.8101 GB, free: 3.68 MB / 0.5919 GB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_CheckValve_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_CheckValve.fmu > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_res.mat","/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) [Timeout 660] "Error: Could not read variable pulse.T_start in file ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_res.mat. Warning: Get data of variable pulse.T_start from file ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_res.mat failed! Error: Could not read variable pulse.count in file ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_res.mat. Warning: Get data of variable pulse.count from file ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.695443409029394]