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.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.002248/0.002248, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.003885/0.003885, allocations: 208.4 kB / 22.24 MB, free: 5.262 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.823/1.823, allocations: 230.6 MB / 256 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 1.241/1.241, allocations: 100.9 MB / 413.3 MB, free: 2.902 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/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.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"}) [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.004606/0.004606, allocations: 92.64 kB / 0.5641 GB, free: 35.52 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2464/0.251, allocations: 74.6 MB / 0.6369 GB, free: 6.496 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.8828/1.134, allocations: 124 MB / 0.758 GB, free: 3.246 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.005693/1.14, allocations: 3.304 MB / 0.7613 GB, free: 3.215 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007768/1.14, allocations: 21.19 kB / 0.7613 GB, free: 3.215 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.000874/1.141, allocations: 155.1 kB / 0.7614 GB, free: 3.211 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.00122/1.142, allocations: 390 kB / 0.7618 GB, free: 3.199 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001058/1.143, allocations: 293 kB / 0.7621 GB, free: 3.191 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0009293/1.144, allocations: 0.5239 MB / 0.7626 GB, free: 3.191 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002573/1.145, allocations: 60.86 kB / 0.7626 GB, free: 3.168 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007358/1.145, allocations: 267.1 kB / 0.7629 GB, free: 3.168 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004385/1.146, allocations: 218.6 kB / 0.7631 GB, free: 3.168 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 7.052e-05/1.146, allocations: 24.44 kB / 0.7631 GB, free: 3.168 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00115/1.147, allocations: 430.4 kB / 0.7635 GB, free: 3.16 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000111/1.147, allocations: 70.31 kB / 0.7636 GB, free: 3.16 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002181/1.147, allocations: 138.4 kB / 0.7637 GB, free: 3.16 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001356/1.149, allocations: 0.5477 MB / 0.7643 GB, free: 3.113 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 7.174e-06/1.149, allocations: 0.7031 kB / 0.7643 GB, free: 3.113 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.615e-06/1.149, allocations: 2.562 kB / 0.7643 GB, free: 3.113 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.097e-05/1.149, allocations: 4.125 kB / 0.7643 GB, free: 3.113 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.001794/1.151, allocations: 0.6744 MB / 0.7649 GB, free: 18.65 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.351e-05/1.151, allocations: 15 kB / 0.765 GB, free: 18.65 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.865e-05/1.151, allocations: 54.41 kB / 0.765 GB, free: 18.61 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001072/1.151, allocations: 49 kB / 0.765 GB, free: 18.59 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007027/1.151, allocations: 325.8 kB / 0.7654 GB, free: 18.41 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.045e-05/1.152, allocations: 21.12 kB / 0.7654 GB, free: 18.41 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.49e-05/1.152, allocations: 23.91 kB / 0.7654 GB, free: 18.41 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006037/1.152, allocations: 259.4 kB / 0.7657 GB, free: 18.36 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.647e-05/1.152, allocations: 3.094 kB / 0.7657 GB, free: 18.36 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.198e-05/1.152, allocations: 11.52 kB / 0.7657 GB, free: 18.36 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.5e-05/1.152, allocations: 10.41 kB / 0.7657 GB, free: 18.36 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005572/1.153, allocations: 221.4 kB / 0.7659 GB, free: 18.35 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00153/1.154, allocations: 0.7603 MB / 0.7666 GB, free: 18 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005802/1.155, allocations: 214.4 kB / 0.7668 GB, free: 17.97 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002429/1.155, allocations: 101.1 kB / 0.7669 GB, free: 17.96 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009457/1.156, allocations: 481.9 kB / 0.7674 GB, free: 17.71 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004654/1.157, allocations: 158.4 kB / 0.7675 GB, free: 17.66 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=23): time 2.595e-06/1.157, allocations: 0 / 0.7675 GB, free: 17.66 MB / 0.5919 GB Notification: Performance of matching and sorting (n=23): time 0.001338/1.158, allocations: 393.4 kB / 0.7679 GB, free: 17.59 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.875e-05/1.158, allocations: 54.62 kB / 0.768 GB, free: 17.53 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004747/1.158, allocations: 346.5 kB / 0.7683 GB, free: 17.41 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.832e-05/1.158, allocations: 30.89 kB / 0.7683 GB, free: 17.38 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001755/1.159, allocations: 197.3 kB / 0.7685 GB, free: 17.28 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 6.012e-05/1.159, allocations: 81.06 kB / 0.7686 GB, free: 17.23 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.643e-05/1.159, allocations: 50.38 kB / 0.7686 GB, free: 17.21 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001898/1.159, allocations: 346.1 kB / 0.769 GB, free: 16.9 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002641/1.159, allocations: 108.6 kB / 0.7691 GB, free: 16.87 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003105/1.16, allocations: 141.8 kB / 0.7692 GB, free: 16.81 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005447/1.16, allocations: 217.5 kB / 0.7694 GB, free: 16.75 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.67e-06/1.16, allocations: 0.875 kB / 0.7694 GB, free: 16.75 MB / 0.5919 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001058/1.161, allocations: 375.5 kB / 0.7698 GB, free: 16.62 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 7.47e-05/1.161, allocations: 40.88 kB / 0.7698 GB, free: 16.59 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.679e-05/1.161, allocations: 0.9062 kB / 0.7698 GB, free: 16.59 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003468/1.162, allocations: 44.06 kB / 0.7699 GB, free: 16.59 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002403/1.162, allocations: 38.73 kB / 0.7699 GB, free: 16.59 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001812/1.164, allocations: 1.425 MB / 0.7713 GB, free: 15.35 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000308/1.164, allocations: 29.25 kB / 0.7713 GB, free: 15.34 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.678e-05/1.164, allocations: 13.36 kB / 0.7713 GB, free: 15.34 MB / 0.5919 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.000354/1.164, allocations: 142.3 kB / 0.7715 GB, free: 15.23 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001612/1.165, allocations: 38.17 kB / 0.7715 GB, free: 15.21 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001125/1.166, allocations: 334.9 kB / 0.7718 GB, free: 15.14 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.211e-06/1.166, allocations: 2.594 kB / 0.7718 GB, free: 15.14 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/1.166, allocations: 3.188 kB / 0.7718 GB, free: 15.14 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-06/1.166, allocations: 2.719 kB / 0.7718 GB, free: 15.14 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001669/1.167, allocations: 0.689 MB / 0.7725 GB, free: 14.85 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/1.167, allocations: 4.562 kB / 0.7725 GB, free: 14.85 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000197/1.168, allocations: 43.56 kB / 0.7725 GB, free: 14.85 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001748/1.168, allocations: 41.09 kB / 0.7726 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.031e-05/1.168, allocations: 8.828 kB / 0.7726 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001588/1.169, allocations: 1.421 MB / 0.774 GB, free: 13.62 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/1.169, allocations: 2.094 kB / 0.774 GB, free: 13.62 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00113/1.17, allocations: 0.5039 MB / 0.7745 GB, free: 13.44 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 7.725e-05/1.171, allocations: 43.38 kB / 0.7745 GB, free: 13.41 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.869e-05/1.171, allocations: 6.969 kB / 0.7745 GB, free: 13.41 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002027/1.171, allocations: 16.62 kB / 0.7745 GB, free: 13.41 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001171/1.171, allocations: 23.25 kB / 0.7746 GB, free: 13.41 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.586e-05/1.171, allocations: 11.12 kB / 0.7746 GB, free: 13.41 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003571/1.171, allocations: 242.6 kB / 0.7748 GB, free: 13.33 MB / 0.5919 GB Notification: Performance of sort global known variables: time 9e-08/1.171, allocations: 2 kB / 0.7748 GB, free: 13.33 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0006464/1.172, allocations: 122.9 kB / 0.7749 GB, free: 13.32 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.001932/1.174, allocations: 1.167 MB / 0.7761 GB, free: 12.59 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001071/1.175, allocations: 409.1 kB / 0.7765 GB, free: 12.38 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/1.175, allocations: 0.9062 kB / 0.7765 GB, free: 12.38 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0004944/1.175, allocations: 233.6 kB / 0.7767 GB, free: 12.27 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007982/1.176, allocations: 110.6 kB / 0.7768 GB, free: 12.26 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006147/1.182, allocations: 3.365 MB / 0.7801 GB, free: 10.59 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002809/1.183, allocations: 181 kB / 0.7802 GB, free: 10.51 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0003052/1.183, allocations: 53.66 kB / 0.7803 GB, free: 10.5 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002088/1.183, allocations: 128.2 kB / 0.7804 GB, free: 10.49 MB / 0.5919 GB Notification: Performance of SimCode: time 1.553e-06/1.183, allocations: 0.9375 kB / 0.7804 GB, free: 10.49 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06239/1.246, allocations: 11.42 MB / 0.7916 GB, free: 8.891 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.22/14.47, allocations: 6.422 kB / 0.7916 GB, free: 8.891 MB / 0.5919 GB " [Timeout remaining time 645] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_CheckValve_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_CheckValve.fmu > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat","/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) [Timeout 660] "Error: Could not read variable pulse.T_start in file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat. Warning: Get data of variable pulse.T_start from file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat failed! Error: Could not read variable pulse.count in file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat. Warning: Get data of variable pulse.count from file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 19.513354585971683]