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.001981/0.001981, 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.00283/0.00283, allocations: 210.2 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.987/1.987, allocations: 230.6 MB / 256 MB, free: 7.785 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 1.257/1.257, allocations: 94.63 MB / 407.1 MB, free: 8.844 MB / 318.1 MB " [Timeout remaining time 178] 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.002831/0.002831, allocations: 84.81 kB / 0.5549 GB, free: 38.48 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2581/0.261, allocations: 73.06 MB / 0.6263 GB, free: 168 kB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve): time 0.2642/0.5252, allocations: 125.4 MB / 0.7487 GB, free: 2.309 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.7824/1.308, allocations: 3.045 MB / 0.7517 GB, free: 3.309 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001193/1.309, allocations: 22.5 kB / 0.7517 GB, free: 3.309 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001728/1.311, allocations: 196.2 kB / 0.7519 GB, free: 3.309 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0029/1.313, allocations: 496 kB / 0.7524 GB, free: 3.301 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001952/1.315, allocations: 407.1 kB / 0.7528 GB, free: 3.289 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001338/1.317, allocations: 0.7275 MB / 0.7535 GB, free: 3.285 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000283/1.317, allocations: 71.22 kB / 0.7535 GB, free: 3.277 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001039/1.318, allocations: 381 kB / 0.7539 GB, free: 3.273 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007251/1.319, allocations: 339.4 kB / 0.7542 GB, free: 3.273 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 9.447e-05/1.319, allocations: 33.84 kB / 0.7543 GB, free: 3.273 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001796/1.321, allocations: 0.5 MB / 0.7547 GB, free: 3.266 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001859/1.321, allocations: 91.44 kB / 0.7548 GB, free: 3.266 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003791/1.321, allocations: 191.7 kB / 0.755 GB, free: 3.266 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001814/1.323, allocations: 0.7333 MB / 0.7557 GB, free: 3.207 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 1.064e-05/1.323, allocations: 1.094 kB / 0.7557 GB, free: 3.207 MB / 0.5762 GB Notification: Performance of FrontEnd: time 4.068e-06/1.323, allocations: 1 kB / 0.7557 GB, free: 3.207 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.282e-05/1.323, allocations: 0 / 0.7557 GB, free: 3.207 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.002711/1.326, allocations: 0.774 MB / 0.7565 GB, free: 18.72 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 7.082e-05/1.326, allocations: 10.47 kB / 0.7565 GB, free: 18.72 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001293/1.326, allocations: 70.84 kB / 0.7566 GB, free: 18.68 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000211/1.326, allocations: 61.22 kB / 0.7566 GB, free: 18.65 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001139/1.327, allocations: 361.9 kB / 0.757 GB, free: 18.47 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.743e-05/1.327, allocations: 26.09 kB / 0.757 GB, free: 18.47 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.1e-05/1.327, allocations: 35.02 kB / 0.757 GB, free: 18.47 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001167/1.329, allocations: 427.2 kB / 0.7574 GB, free: 18.38 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.116e-05/1.329, allocations: 3.094 kB / 0.7574 GB, free: 18.38 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.575e-05/1.329, allocations: 15 kB / 0.7574 GB, free: 18.38 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.06e-05/1.329, allocations: 10.14 kB / 0.7575 GB, free: 18.38 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001088/1.33, allocations: 380 kB / 0.7578 GB, free: 18.38 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002817/1.333, allocations: 1.289 MB / 0.7591 GB, free: 17.75 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001007/1.334, allocations: 318.6 kB / 0.7594 GB, free: 17.72 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003982/1.334, allocations: 150.9 kB / 0.7595 GB, free: 17.71 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002048/1.336, allocations: 0.7076 MB / 0.7602 GB, free: 17.45 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005786/1.337, allocations: 205.7 kB / 0.7604 GB, free: 17.4 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=37): time 2.154e-06/1.337, allocations: 0.9375 kB / 0.7604 GB, free: 17.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=37): time 0.001559/1.338, allocations: 0.5278 MB / 0.7609 GB, free: 17.33 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.091e-05/1.338, allocations: 68.58 kB / 0.761 GB, free: 17.26 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004423/1.339, allocations: 364 kB / 0.7613 GB, free: 17.14 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.818e-05/1.339, allocations: 30.62 kB / 0.7614 GB, free: 17.11 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001682/1.339, allocations: 221.2 kB / 0.7616 GB, free: 17 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001095/1.339, allocations: 136.5 kB / 0.7617 GB, free: 16.91 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001349/1.339, allocations: 77.53 kB / 0.7618 GB, free: 16.89 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.000212/1.339, allocations: 351.6 kB / 0.7621 GB, free: 16.57 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003298/1.34, allocations: 149.9 kB / 0.7623 GB, free: 16.54 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003486/1.34, allocations: 204 kB / 0.7625 GB, free: 16.46 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006336/1.341, allocations: 335 kB / 0.7628 GB, free: 16.38 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/1.341, allocations: 4.781 kB / 0.7628 GB, free: 16.38 MB / 0.5919 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001035/1.342, allocations: 0.4908 MB / 0.7633 GB, free: 16.25 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 6.167e-05/1.342, allocations: 34.25 kB / 0.7633 GB, free: 16.21 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.229e-05/1.342, allocations: 5.719 kB / 0.7633 GB, free: 16.21 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003191/1.342, allocations: 44.06 kB / 0.7633 GB, free: 16.2 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003276/1.342, allocations: 78.62 kB / 0.7634 GB, free: 16.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001861/1.344, allocations: 1.421 MB / 0.7648 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002725/1.345, allocations: 43.64 kB / 0.7648 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.209e-05/1.345, allocations: 15.66 kB / 0.7649 GB, free: 14.96 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.0002908/1.345, allocations: 165.8 kB / 0.765 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001507/1.345, allocations: 46.97 kB / 0.7651 GB, free: 14.82 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001546/1.347, allocations: 0.5174 MB / 0.7656 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.548e-05/1.347, allocations: 5.719 kB / 0.7656 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/1.347, allocations: 1.594 kB / 0.7656 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.137e-05/1.347, allocations: 2.266 kB / 0.7656 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00248/1.349, allocations: 0.8972 MB / 0.7665 GB, free: 14.41 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/1.349, allocations: 2.031 kB / 0.7665 GB, free: 14.41 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003688/1.35, allocations: 61.2 kB / 0.7665 GB, free: 14.41 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002201/1.35, allocations: 43.33 kB / 0.7666 GB, free: 14.41 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.226e-05/1.35, allocations: 19.39 kB / 0.7666 GB, free: 14.41 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002048/1.352, allocations: 1.418 MB / 0.768 GB, free: 13.19 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.991e-06/1.352, allocations: 2.156 kB / 0.768 GB, free: 13.19 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001929/1.354, allocations: 0.6519 MB / 0.7686 GB, free: 12.99 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001062/1.354, allocations: 47.34 kB / 0.7686 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.874e-05/1.354, allocations: 7.875 kB / 0.7687 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002395/1.354, allocations: 24.09 kB / 0.7687 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001868/1.354, allocations: 34.73 kB / 0.7687 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.48e-05/1.354, allocations: 15.69 kB / 0.7687 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0004879/1.355, allocations: 269.6 kB / 0.769 GB, free: 12.88 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.1e-07/1.355, allocations: 1.781 kB / 0.769 GB, free: 12.88 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0009563/1.356, allocations: 168.9 kB / 0.7691 GB, free: 12.85 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.002572/1.358, allocations: 1.321 MB / 0.7704 GB, free: 12.12 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001312/1.36, allocations: 0.509 MB / 0.7709 GB, free: 11.9 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/1.36, allocations: 0.9688 kB / 0.7709 GB, free: 11.9 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0006571/1.36, allocations: 283.4 kB / 0.7712 GB, free: 11.79 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009947/1.361, allocations: 140.8 kB / 0.7713 GB, free: 11.77 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00818/1.37, allocations: 3.974 MB / 0.7752 GB, free: 9.977 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003802/1.37, allocations: 214 kB / 0.7754 GB, free: 9.891 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004781/1.37, allocations: 86.16 kB / 0.7755 GB, free: 9.879 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003236/1.371, allocations: 163.4 kB / 0.7757 GB, free: 9.871 MB / 0.5919 GB Notification: Performance of SimCode: time 1.613e-06/1.371, allocations: 0 / 0.7757 GB, free: 9.871 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06523/1.436, allocations: 13.89 MB / 0.7892 GB, free: 8.043 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.33/15.76, allocations: 3.938 kB / 0.7892 GB, free: 8.039 MB / 0.5919 GB " [Timeout remaining time 644] (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: 21.210017985198647]