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.001539/0.001539, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001885/0.001885, allocations: 199 kB / 16.79 MB, free: 6.828 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.284/1.284, allocations: 222.9 MB / 240.5 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6419/0.6419, allocations: 89.53 MB / 380.1 MB, free: 11.25 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001519/0.001519, allocations: 78.56 kB / 458.2 MB, free: 23.91 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1085, allocations: 67.31 MB / 0.5132 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.3738/0.4823, allocations: 141.8 MB / 0.6517 GB, free: 11.65 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.003668/0.486, allocations: 3.622 MB / 0.6552 GB, free: 8.734 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001682/0.4862, allocations: 6.719 kB / 0.6552 GB, free: 8.73 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004858/0.4867, allocations: 148.4 kB / 0.6554 GB, free: 8.613 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000602/0.4874, allocations: 339.1 kB / 0.6557 GB, free: 8.344 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005312/0.4879, allocations: 248.2 kB / 0.6559 GB, free: 8.16 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004381/0.4884, allocations: 0.5489 MB / 0.6565 GB, free: 7.852 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001351/0.4885, allocations: 66.94 kB / 0.6565 GB, free: 7.816 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003371/0.4888, allocations: 203.3 kB / 0.6567 GB, free: 7.699 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002485/0.4891, allocations: 214.4 kB / 0.6569 GB, free: 7.574 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 3.679e-05/0.4892, allocations: 17.78 kB / 0.657 GB, free: 7.574 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007878/0.4899, allocations: 483.6 kB / 0.6574 GB, free: 7.352 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 6.241e-05/0.49, allocations: 56.09 kB / 0.6575 GB, free: 7.305 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000151/0.4902, allocations: 157.8 kB / 0.6576 GB, free: 7.203 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000408/0.4906, allocations: 346.7 kB / 0.658 GB, free: 6.992 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.4906, allocations: 0 / 0.658 GB, free: 6.992 MB / 478.1 MB Notification: Performance of FrontEnd: time 8.31e-07/0.4906, allocations: 0 / 0.658 GB, free: 6.992 MB / 478.1 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.4906, allocations: 1.062 kB / 0.658 GB, free: 6.992 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.001157/0.4918, allocations: 0.6798 MB / 0.6586 GB, free: 6.375 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.071e-05/0.4918, allocations: 7.906 kB / 0.6586 GB, free: 6.375 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.384e-05/0.4919, allocations: 38.28 kB / 0.6587 GB, free: 6.355 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003084/0.4922, allocations: 290.5 kB / 0.6589 GB, free: 6.07 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.231e-05/0.4923, allocations: 19.22 kB / 0.659 GB, free: 6.062 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.591e-05/0.4923, allocations: 23.5 kB / 0.659 GB, free: 6.055 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004679/0.4928, allocations: 263.3 kB / 0.6592 GB, free: 5.879 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.4928, allocations: 3.984 kB / 0.6592 GB, free: 5.875 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.413e-05/0.4928, allocations: 7 kB / 0.6592 GB, free: 5.871 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.4928, allocations: 8.812 kB / 0.6592 GB, free: 5.867 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004628/0.4933, allocations: 218.9 kB / 0.6595 GB, free: 5.762 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001271/0.4946, allocations: 1.079 MB / 0.6605 GB, free: 4.738 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004942/0.4951, allocations: 232.8 kB / 0.6607 GB, free: 4.609 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002271/0.4953, allocations: 116.3 kB / 0.6608 GB, free: 4.547 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008714/0.4962, allocations: 0.9784 MB / 0.6618 GB, free: 3.512 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003753/0.4966, allocations: 156.5 kB / 0.6619 GB, free: 3.398 MB / 478.1 MB Notification: Performance of pre-optimization done (n=23): time 1.663e-06/0.4966, allocations: 4 kB / 0.662 GB, free: 3.395 MB / 478.1 MB Notification: Performance of matching and sorting (n=23): time 0.001091/0.4977, allocations: 448 kB / 0.6624 GB, free: 3.105 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.446e-05/0.4978, allocations: 54.62 kB / 0.6624 GB, free: 3.043 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002552/0.498, allocations: 288.2 kB / 0.6627 GB, free: 2.844 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 2.433e-05/0.4981, allocations: 25.7 kB / 0.6627 GB, free: 2.812 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001004/0.4982, allocations: 167 kB / 0.6629 GB, free: 2.66 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.457e-05/0.4982, allocations: 76.98 kB / 0.663 GB, free: 2.594 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.747e-05/0.4983, allocations: 51.3 kB / 0.663 GB, free: 2.555 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.4984, allocations: 336.5 kB / 0.6633 GB, free: 2.223 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002104/0.4986, allocations: 86.72 kB / 0.6634 GB, free: 2.18 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002139/0.4989, allocations: 110.3 kB / 0.6635 GB, free: 2.109 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004222/0.4993, allocations: 220.6 kB / 0.6637 GB, free: 1.969 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.4993, allocations: 0 / 0.6637 GB, free: 1.969 MB / 478.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006502/0.5, allocations: 347.6 kB / 0.6641 GB, free: 1.758 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.815e-05/0.5, allocations: 30.39 kB / 0.6641 GB, free: 1.727 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.5, allocations: 0 / 0.6641 GB, free: 1.727 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002038/0.5002, allocations: 41.3 kB / 0.6641 GB, free: 1.703 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002021/0.5004, allocations: 48.72 kB / 0.6642 GB, free: 1.688 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001076/0.5015, allocations: 1.414 MB / 0.6656 GB, free: 264 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002061/0.5017, allocations: 29.83 kB / 0.6656 GB, free: 248 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.424e-05/0.5018, allocations: 15.47 kB / 0.6656 GB, free: 240 kB / 478.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.0001368/0.5019, allocations: 155.5 kB / 0.6658 GB, free: 88 kB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.069e-05/0.502, allocations: 24.59 kB / 0.6658 GB, free: 76 kB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007207/0.5027, allocations: 331.4 kB / 0.6661 GB, free: 15.87 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.576e-06/0.5027, allocations: 2.078 kB / 0.6661 GB, free: 15.87 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.886e-06/0.5027, allocations: 3.25 kB / 0.6661 GB, free: 15.87 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.5027, allocations: 3.984 kB / 0.6661 GB, free: 15.86 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001025/0.5038, allocations: 0.7247 MB / 0.6668 GB, free: 15.27 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.5038, allocations: 3.984 kB / 0.6668 GB, free: 15.27 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001601/0.5039, allocations: 39.83 kB / 0.6668 GB, free: 15.26 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001342/0.5041, allocations: 37.84 kB / 0.6669 GB, free: 15.23 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.253e-05/0.5041, allocations: 7.938 kB / 0.6669 GB, free: 15.23 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009847/0.5051, allocations: 1.43 MB / 0.6683 GB, free: 13.79 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.5051, allocations: 0 / 0.6683 GB, free: 13.79 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008473/0.506, allocations: 0.4922 MB / 0.6688 GB, free: 13.46 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.419e-05/0.506, allocations: 104.5 kB / 0.6689 GB, free: 13.35 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.452e-05/0.5061, allocations: 5.812 kB / 0.6689 GB, free: 13.34 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002146/0.5063, allocations: 20.14 kB / 0.6689 GB, free: 13.33 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.653e-05/0.5064, allocations: 27 kB / 0.6689 GB, free: 13.32 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.179e-05/0.5064, allocations: 15.33 kB / 0.6689 GB, free: 13.31 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001693/0.5066, allocations: 198.3 kB / 0.6691 GB, free: 13.18 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5066, allocations: 0 / 0.6691 GB, free: 13.18 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0004117/0.507, allocations: 123.9 kB / 0.6692 GB, free: 13.14 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.0002943/0.5073, allocations: 227.1 kB / 0.6695 GB, free: 12.99 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0007275/0.5081, allocations: 391.3 kB / 0.6698 GB, free: 12.71 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.5081, allocations: 0 / 0.6698 GB, free: 12.71 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003818/0.5085, allocations: 238 kB / 0.6701 GB, free: 12.54 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006179/0.5091, allocations: 96.11 kB / 0.6701 GB, free: 12.49 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00116/0.5103, allocations: 0.736 MB / 0.6709 GB, free: 11.94 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000269/0.5105, allocations: 0.7645 MB / 0.6716 GB, free: 11.21 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.406e-05/0.5106, allocations: 33.36 kB / 0.6716 GB, free: 11.19 MB / 494.1 MB Notification: Performance of SimCode: time 2.3e-07/0.5106, allocations: 0 / 0.6716 GB, free: 11.19 MB / 494.1 MB Notification: Performance of Templates: time 0.007403/0.5181, allocations: 6.209 MB / 0.6777 GB, free: 7.91 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches