Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_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: translateModel(ThermofluidStream.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|pulse.T_start|pulse.count|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve") translateModel(ThermofluidStream.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|pulse.T_start|pulse.count|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001532/0.001532, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001419/0.001419, allocations: 193.2 kB / 16.25 MB, free: 6.637 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.365/1.365, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7226/0.7226, allocations: 91.2 MB / 381.3 MB, free: 9.512 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001488/0.001488, allocations: 80.5 kB / 459.8 MB, free: 23.34 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1403/0.1418, allocations: 67.71 MB / 0.5151 GB, free: 10.51 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.4588/0.6006, allocations: 142.1 MB / 0.6539 GB, free: 8.676 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.004949/0.6056, allocations: 3.618 MB / 0.6574 GB, free: 5.742 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005227/0.6061, allocations: 16.62 kB / 0.6574 GB, free: 5.734 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006574/0.6068, allocations: 153.6 kB / 0.6576 GB, free: 5.613 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009095/0.6078, allocations: 345.9 kB / 0.6579 GB, free: 5.34 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007804/0.6086, allocations: 269.2 kB / 0.6582 GB, free: 5.148 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005687/0.6091, allocations: 0.4996 MB / 0.6586 GB, free: 4.855 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001858/0.6093, allocations: 89.91 kB / 0.6587 GB, free: 4.805 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004404/0.6098, allocations: 241.4 kB / 0.659 GB, free: 4.66 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002966/0.6101, allocations: 226 kB / 0.6592 GB, free: 4.527 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 4.73e-05/0.6101, allocations: 23.62 kB / 0.6592 GB, free: 4.527 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009186/0.6111, allocations: 0.4902 MB / 0.6597 GB, free: 4.297 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001062/0.6112, allocations: 69.62 kB / 0.6597 GB, free: 4.238 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001675/0.6114, allocations: 176.9 kB / 0.6599 GB, free: 4.121 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000774/0.6121, allocations: 0.5232 MB / 0.6604 GB, free: 3.793 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.6122, allocations: 0 / 0.6604 GB, free: 3.793 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.6122, allocations: 0 / 0.6604 GB, free: 3.793 MB / 478.1 MB Notification: Performance of Transformations before backend: time 8.325e-06/0.6122, allocations: 6.75 kB / 0.6604 GB, free: 3.789 MB / 478.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.001288/0.6135, allocations: 0.7338 MB / 0.6611 GB, free: 3.133 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/0.6135, allocations: 10.47 kB / 0.6612 GB, free: 3.133 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.751e-05/0.6136, allocations: 40.53 kB / 0.6612 GB, free: 3.113 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004455/0.6141, allocations: 356.3 kB / 0.6615 GB, free: 2.789 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.25e-05/0.6141, allocations: 16.78 kB / 0.6616 GB, free: 2.781 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.01e-05/0.6142, allocations: 30.28 kB / 0.6616 GB, free: 2.766 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004833/0.6147, allocations: 263.6 kB / 0.6618 GB, free: 2.59 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.6147, allocations: 6.844 kB / 0.6618 GB, free: 2.586 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.362e-05/0.6147, allocations: 4 kB / 0.6618 GB, free: 2.582 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.775e-06/0.6147, allocations: 4.875 kB / 0.6618 GB, free: 2.582 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004529/0.6152, allocations: 219.3 kB / 0.6621 GB, free: 2.48 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001398/0.6166, allocations: 1.101 MB / 0.6631 GB, free: 1.441 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005239/0.6171, allocations: 222.2 kB / 0.6633 GB, free: 1.32 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002297/0.6174, allocations: 112.5 kB / 0.6635 GB, free: 1.262 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009744/0.6184, allocations: 0.9787 MB / 0.6644 GB, free: 232 kB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004462/0.6188, allocations: 148 kB / 0.6645 GB, free: 124 kB / 478.1 MB Notification: Performance of pre-optimization done (n=23): time 4.769e-06/0.6188, allocations: 0 / 0.6645 GB, free: 124 kB / 478.1 MB Notification: Performance of matching and sorting (n=23): time 0.001184/0.62, allocations: 480.8 kB / 0.665 GB, free: 15.8 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.112e-05/0.6201, allocations: 57.75 kB / 0.6651 GB, free: 15.74 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003343/0.6204, allocations: 337.4 kB / 0.6654 GB, free: 15.52 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.16e-05/0.6205, allocations: 27.98 kB / 0.6654 GB, free: 15.49 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001292/0.6206, allocations: 197.9 kB / 0.6656 GB, free: 15.31 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.314e-05/0.6207, allocations: 70.58 kB / 0.6657 GB, free: 15.25 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.088e-05/0.6208, allocations: 58.05 kB / 0.6657 GB, free: 15.21 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.6209, allocations: 346.2 kB / 0.6661 GB, free: 14.87 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002128/0.6211, allocations: 76.25 kB / 0.6661 GB, free: 14.83 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002369/0.6214, allocations: 109.6 kB / 0.6662 GB, free: 14.77 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004307/0.6218, allocations: 218.6 kB / 0.6664 GB, free: 14.62 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.6218, allocations: 3.188 kB / 0.6664 GB, free: 14.62 MB / 494.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006818/0.6225, allocations: 355.5 kB / 0.6668 GB, free: 14.41 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.845e-05/0.6226, allocations: 34.95 kB / 0.6668 GB, free: 14.38 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.6226, allocations: 0 / 0.6668 GB, free: 14.38 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000223/0.6228, allocations: 41.45 kB / 0.6669 GB, free: 14.35 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002116/0.623, allocations: 40.28 kB / 0.6669 GB, free: 14.34 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001451/0.6245, allocations: 1.52 MB / 0.6684 GB, free: 12.81 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002302/0.6247, allocations: 33.7 kB / 0.6684 GB, free: 12.79 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.724e-05/0.6248, allocations: 7.656 kB / 0.6684 GB, free: 12.79 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.000183/0.625, allocations: 150.3 kB / 0.6686 GB, free: 12.65 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.185e-05/0.625, allocations: 34.64 kB / 0.6686 GB, free: 12.63 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007701/0.6258, allocations: 341.5 kB / 0.6689 GB, free: 12.42 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.6258, allocations: 2.562 kB / 0.6689 GB, free: 12.42 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.264e-06/0.6258, allocations: 0 / 0.6689 GB, free: 12.42 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.204e-06/0.6258, allocations: 3.984 kB / 0.6689 GB, free: 12.41 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001136/0.627, allocations: 0.7518 MB / 0.6697 GB, free: 11.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.627, allocations: 2.344 kB / 0.6697 GB, free: 11.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001636/0.6272, allocations: 46.92 kB / 0.6697 GB, free: 11.78 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001564/0.6273, allocations: 39.17 kB / 0.6697 GB, free: 11.76 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.899e-05/0.6274, allocations: 13.27 kB / 0.6698 GB, free: 11.75 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001249/0.6286, allocations: 1.527 MB / 0.6712 GB, free: 10.22 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.6286, allocations: 2.188 kB / 0.6712 GB, free: 10.22 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009286/0.6296, allocations: 0.5012 MB / 0.6717 GB, free: 9.879 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.493e-05/0.6297, allocations: 112.8 kB / 0.6718 GB, free: 9.758 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.964e-05/0.6297, allocations: 10.55 kB / 0.6719 GB, free: 9.75 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002264/0.63, allocations: 19.42 kB / 0.6719 GB, free: 9.738 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.361e-05/0.6301, allocations: 28.47 kB / 0.6719 GB, free: 9.723 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.38e-05/0.6301, allocations: 11.44 kB / 0.6719 GB, free: 9.719 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002516/0.6304, allocations: 237 kB / 0.6721 GB, free: 9.566 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6304, allocations: 0 / 0.6721 GB, free: 9.566 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0005202/0.6309, allocations: 130.5 kB / 0.6723 GB, free: 9.527 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.0003953/0.6313, allocations: 217.1 kB / 0.6725 GB, free: 9.387 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0008408/0.6322, allocations: 398.1 kB / 0.6728 GB, free: 9.102 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.6322, allocations: 2.75 kB / 0.6729 GB, free: 9.102 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004089/0.6326, allocations: 245.8 kB / 0.6731 GB, free: 8.922 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006949/0.6333, allocations: 114.6 kB / 0.6732 GB, free: 8.863 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001473/0.6348, allocations: 0.7777 MB / 0.674 GB, free: 8.297 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003862/0.6352, allocations: 0.7903 MB / 0.6747 GB, free: 7.551 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0002445/0.6354, allocations: 55.81 kB / 0.6748 GB, free: 7.52 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.728e-05/0.6355, allocations: 35.02 kB / 0.6748 GB, free: 7.504 MB / 494.1 MB Notification: Performance of SimCode: time 6.22e-07/0.6355, allocations: 2.844 kB / 0.6748 GB, free: 7.504 MB / 494.1 MB Notification: Performance of Templates: time 0.01277/0.6483, allocations: 6.319 MB / 0.681 GB, free: 4.332 MB / 494.1 MB make -j1 -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.makefile (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.sim & ./ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.CheckValve_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches