Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00138/0.00138, allocations: 106.4 kB / 16.45 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001365/0.001365, allocations: 191.7 kB / 19.41 MB, free: 3.68 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.49/1.49, allocations: 225.6 MB / 247.8 MB, free: 13.95 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo): time 0.7382/0.7382, allocations: 94.6 MB / 397.3 MB, free: 304 kB / 302.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-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.Undirected.FlowControl.Tests.CheckValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_CheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_CheckValve",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002356/0.002356, allocations: 87.97 kB / 0.5416 GB, free: 42.3 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.1301, allocations: 71.86 MB / 0.6118 GB, free: 10.1 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve): time 0.5038/0.6339, allocations: 145.8 MB / 0.7541 GB, free: 2.453 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.004059/0.638, allocations: 3.34 MB / 0.7574 GB, free: 2.434 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006316/0.6386, allocations: 20.42 kB / 0.7574 GB, free: 2.434 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.000692/0.6393, allocations: 209.3 kB / 0.7576 GB, free: 2.43 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001454/0.6407, allocations: 0.4957 MB / 0.7581 GB, free: 2.414 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001286/0.642, allocations: 396.8 kB / 0.7585 GB, free: 2.406 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0008721/0.6429, allocations: 0.7182 MB / 0.7592 GB, free: 2.406 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002339/0.6431, allocations: 76.28 kB / 0.7593 GB, free: 2.391 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006958/0.6438, allocations: 366.5 kB / 0.7596 GB, free: 2.383 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004921/0.6443, allocations: 363.6 kB / 0.76 GB, free: 2.383 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 7.007e-05/0.6444, allocations: 34.19 kB / 0.76 GB, free: 2.383 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001321/0.6457, allocations: 0.5902 MB / 0.7606 GB, free: 2.375 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 9.98e-05/0.6458, allocations: 89.83 kB / 0.7607 GB, free: 2.375 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003089/0.6461, allocations: 237.3 kB / 0.7609 GB, free: 2.375 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001255/0.6474, allocations: 0.7425 MB / 0.7616 GB, free: 2.316 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.6474, allocations: 0 / 0.7616 GB, free: 2.316 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.453e-06/0.6474, allocations: 1.688 kB / 0.7616 GB, free: 2.316 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.634e-05/0.6474, allocations: 0 / 0.7616 GB, free: 2.316 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.001417/0.6488, allocations: 0.847 MB / 0.7624 GB, free: 1.73 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.6488, allocations: 10.53 kB / 0.7624 GB, free: 1.73 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.414e-05/0.6489, allocations: 68.8 kB / 0.7625 GB, free: 1.691 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000114/0.649, allocations: 62 kB / 0.7626 GB, free: 1.66 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008556/0.6499, allocations: 426.8 kB / 0.763 GB, free: 17.41 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.275e-05/0.6499, allocations: 27.44 kB / 0.763 GB, free: 17.41 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.803e-05/0.65, allocations: 36.48 kB / 0.763 GB, free: 17.41 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007952/0.6508, allocations: 423.5 kB / 0.7634 GB, free: 17.32 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.423e-05/0.6508, allocations: 1.625 kB / 0.7634 GB, free: 17.32 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.097e-05/0.6509, allocations: 14 kB / 0.7635 GB, free: 17.32 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.962e-05/0.6509, allocations: 9 kB / 0.7635 GB, free: 17.32 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007639/0.6516, allocations: 371.7 kB / 0.7638 GB, free: 17.31 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002601/0.6542, allocations: 1.856 MB / 0.7656 GB, free: 16.09 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000677/0.6549, allocations: 310.5 kB / 0.7659 GB, free: 16.07 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002915/0.6552, allocations: 155.8 kB / 0.7661 GB, free: 16.06 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0021/0.6573, allocations: 1.536 MB / 0.7676 GB, free: 14.82 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004508/0.6578, allocations: 205.5 kB / 0.7678 GB, free: 14.78 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=37): time 2.014e-06/0.6578, allocations: 1.203 kB / 0.7678 GB, free: 14.78 MB / 0.5919 GB Notification: Performance of matching and sorting (n=37): time 0.001309/0.6591, allocations: 0.6039 MB / 0.7684 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.135e-05/0.6591, allocations: 56.88 kB / 0.7684 GB, free: 14.54 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004588/0.6596, allocations: 362.7 kB / 0.7688 GB, free: 14.42 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 4.005e-05/0.6596, allocations: 31.3 kB / 0.7688 GB, free: 14.39 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001497/0.6598, allocations: 222.4 kB / 0.769 GB, free: 14.27 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 7.478e-05/0.6599, allocations: 134.2 kB / 0.7691 GB, free: 14.19 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001188/0.66, allocations: 73.86 kB / 0.7692 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001607/0.6601, allocations: 360.3 kB / 0.7695 GB, free: 13.85 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002992/0.6604, allocations: 121.9 kB / 0.7697 GB, free: 13.85 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003343/0.6608, allocations: 176.1 kB / 0.7698 GB, free: 13.8 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000522/0.6613, allocations: 339.3 kB / 0.7702 GB, free: 13.71 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.6613, allocations: 3.094 kB / 0.7702 GB, free: 13.71 MB / 0.5919 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000806/0.6621, allocations: 463 kB / 0.7706 GB, free: 13.62 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 4.41e-05/0.6621, allocations: 32.27 kB / 0.7706 GB, free: 13.59 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.6621, allocations: 5.531 kB / 0.7706 GB, free: 13.59 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001986/0.6623, allocations: 41.3 kB / 0.7707 GB, free: 13.57 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002669/0.6626, allocations: 77.56 kB / 0.7707 GB, free: 13.57 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001275/0.6639, allocations: 1.53 MB / 0.7722 GB, free: 12.23 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003345/0.6642, allocations: 47.19 kB / 0.7723 GB, free: 12.21 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.251e-05/0.6643, allocations: 15.25 kB / 0.7723 GB, free: 12.21 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.000241/0.6645, allocations: 169.3 kB / 0.7725 GB, free: 12.09 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.481e-05/0.6646, allocations: 47.58 kB / 0.7725 GB, free: 12.06 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009269/0.6655, allocations: 0.5172 MB / 0.773 GB, free: 11.96 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.6655, allocations: 6.094 kB / 0.773 GB, free: 11.96 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.065e-06/0.6655, allocations: 3.938 kB / 0.773 GB, free: 11.96 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.6655, allocations: 3.969 kB / 0.773 GB, free: 11.96 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001432/0.6669, allocations: 0.9703 MB / 0.774 GB, free: 11.61 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.6669, allocations: 1.188 kB / 0.774 GB, free: 11.61 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002138/0.6672, allocations: 64.75 kB / 0.774 GB, free: 11.61 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001331/0.6673, allocations: 39.31 kB / 0.7741 GB, free: 11.6 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.696e-05/0.6673, allocations: 17.36 kB / 0.7741 GB, free: 11.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001271/0.6686, allocations: 1.531 MB / 0.7756 GB, free: 10.25 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.6686, allocations: 2.344 kB / 0.7756 GB, free: 10.25 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001061/0.6697, allocations: 0.6481 MB / 0.7762 GB, free: 10.05 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001306/0.6698, allocations: 125.7 kB / 0.7763 GB, free: 9.93 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.934e-05/0.6698, allocations: 11.81 kB / 0.7764 GB, free: 9.93 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00023/0.6701, allocations: 21.45 kB / 0.7764 GB, free: 9.926 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.028e-05/0.6702, allocations: 38.11 kB / 0.7764 GB, free: 9.926 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.898e-05/0.6702, allocations: 16.12 kB / 0.7764 GB, free: 9.926 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002758/0.6705, allocations: 267.2 kB / 0.7767 GB, free: 9.848 MB / 0.5919 GB Notification: Performance of sort global known variables: time 7e-08/0.6705, allocations: 1.203 kB / 0.7767 GB, free: 9.848 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0005679/0.671, allocations: 162.8 kB / 0.7768 GB, free: 9.828 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.001703/0.6727, allocations: 1.322 MB / 0.7781 GB, free: 9.094 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001036/0.6738, allocations: 492.9 kB / 0.7786 GB, free: 8.906 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.75e-06/0.6738, allocations: 0.875 kB / 0.7786 GB, free: 8.906 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0005514/0.6743, allocations: 273.9 kB / 0.7789 GB, free: 8.797 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008084/0.6751, allocations: 146.5 kB / 0.779 GB, free: 8.777 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005352/0.6805, allocations: 3.868 MB / 0.7828 GB, free: 7.098 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004382/0.6809, allocations: 0.8244 MB / 0.7836 GB, free: 6.395 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0003062/0.6812, allocations: 82.23 kB / 0.7837 GB, free: 6.383 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000184/0.6814, allocations: 162.3 kB / 0.7838 GB, free: 6.375 MB / 0.5919 GB Notification: Performance of SimCode: time 1.423e-06/0.6814, allocations: 1.125 kB / 0.7838 GB, free: 6.375 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04696/0.7284, allocations: 12.8 MB / 0.7963 GB, free: 5.055 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.94/11.67, allocations: 6.031 kB / 0.7963 GB, free: 5.051 MB / 0.5919 GB " [Timeout remaining time 648] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_CheckValve_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_CheckValve.fmu > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_dev_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_2/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_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_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_res.mat. Warning: Get data of variable pulse.T_start from file ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_res.mat failed! Error: Could not read variable pulse.count in file ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_res.mat. Warning: Get data of variable pulse.count from file ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.16197354439646]