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.0008007/0.0008006, allocations: 98.56 kB / 16.02 MB, free: 76 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.0009361/0.0009363, allocations: 181.5 kB / 16.92 MB, free: 6.918 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.342/1.342, allocations: 223.3 MB / 241 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6704/0.6704, allocations: 89.63 MB / 381.7 MB, free: 11.33 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003388/0.0003388, allocations: 13.44 kB / 461.3 MB, free: 24.12 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.115, allocations: 68.83 MB / 0.5177 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.3788/0.4939, allocations: 139.9 MB / 0.6544 GB, free: 9.844 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.004166/0.4981, allocations: 3.561 MB / 0.6578 GB, free: 6.969 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003236/0.4984, allocations: 12.84 kB / 0.6579 GB, free: 6.961 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005895/0.499, allocations: 154.9 kB / 0.658 GB, free: 6.836 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009045/0.5, allocations: 320.2 kB / 0.6583 GB, free: 6.586 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007357/0.5007, allocations: 255.5 kB / 0.6585 GB, free: 6.395 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006536/0.5014, allocations: 0.5601 MB / 0.6591 GB, free: 6.078 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001838/0.5016, allocations: 69.83 kB / 0.6592 GB, free: 6.039 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00047/0.5021, allocations: 182.2 kB / 0.6593 GB, free: 5.941 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003512/0.5024, allocations: 222.8 kB / 0.6595 GB, free: 5.809 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 4.657e-05/0.5025, allocations: 10.91 kB / 0.6596 GB, free: 5.809 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008971/0.5034, allocations: 480 kB / 0.66 GB, free: 5.586 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 7.255e-05/0.5035, allocations: 43.77 kB / 0.6601 GB, free: 5.551 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001897/0.5037, allocations: 173.4 kB / 0.6602 GB, free: 5.426 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005229/0.5042, allocations: 346.4 kB / 0.6606 GB, free: 5.215 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.5042, allocations: 4 kB / 0.6606 GB, free: 5.211 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.5042, allocations: 0 / 0.6606 GB, free: 5.211 MB / 478.1 MB Notification: Performance of Transformations before backend: time 8.707e-06/0.5042, allocations: 2.844 kB / 0.6606 GB, free: 5.211 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.001207/0.5054, allocations: 0.6213 MB / 0.6612 GB, free: 4.637 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.5055, allocations: 10.84 kB / 0.6612 GB, free: 4.637 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.369e-05/0.5056, allocations: 37.31 kB / 0.6612 GB, free: 4.617 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003639/0.506, allocations: 302.9 kB / 0.6615 GB, free: 4.32 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.555e-05/0.506, allocations: 13.84 kB / 0.6615 GB, free: 4.316 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.815e-05/0.5061, allocations: 24.31 kB / 0.6615 GB, free: 4.309 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004988/0.5066, allocations: 267.4 kB / 0.6618 GB, free: 4.133 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.218e-06/0.5066, allocations: 0 / 0.6618 GB, free: 4.133 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.386e-05/0.5066, allocations: 10.88 kB / 0.6618 GB, free: 4.125 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/0.5066, allocations: 5.312 kB / 0.6618 GB, free: 4.125 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004835/0.5071, allocations: 234 kB / 0.662 GB, free: 4.016 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001461/0.5086, allocations: 1.089 MB / 0.6631 GB, free: 2.992 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005244/0.5091, allocations: 244 kB / 0.6633 GB, free: 2.863 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002412/0.5094, allocations: 120.9 kB / 0.6634 GB, free: 2.801 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009892/0.5104, allocations: 0.9755 MB / 0.6644 GB, free: 1.77 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003673/0.5108, allocations: 157.8 kB / 0.6645 GB, free: 1.66 MB / 478.1 MB Notification: Performance of pre-optimization done (n=23): time 1.984e-06/0.5108, allocations: 0 / 0.6645 GB, free: 1.66 MB / 478.1 MB Notification: Performance of matching and sorting (n=23): time 0.001134/0.5119, allocations: 469.5 kB / 0.665 GB, free: 1.367 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.34e-05/0.512, allocations: 54.09 kB / 0.665 GB, free: 1.305 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002817/0.5123, allocations: 277.8 kB / 0.6653 GB, free: 1.113 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.459e-05/0.5123, allocations: 33.02 kB / 0.6653 GB, free: 1.078 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001134/0.5124, allocations: 169.5 kB / 0.6655 GB, free: 0.9219 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.36e-05/0.5125, allocations: 82.19 kB / 0.6656 GB, free: 0.8516 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.483e-05/0.5126, allocations: 33.52 kB / 0.6656 GB, free: 0.8203 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.5127, allocations: 340.2 kB / 0.6659 GB, free: 496 kB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002225/0.5129, allocations: 80.19 kB / 0.666 GB, free: 460 kB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002364/0.5132, allocations: 118.5 kB / 0.6661 GB, free: 388 kB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004485/0.5136, allocations: 229.2 kB / 0.6663 GB, free: 244 kB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.5136, allocations: 3.938 kB / 0.6664 GB, free: 240 kB / 478.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007213/0.5144, allocations: 358.5 kB / 0.6667 GB, free: 24 kB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.175e-05/0.5144, allocations: 38.41 kB / 0.6667 GB, free: 15.98 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.5144, allocations: 0 / 0.6667 GB, free: 15.98 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002258/0.5147, allocations: 40.89 kB / 0.6668 GB, free: 15.96 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002048/0.5149, allocations: 51.28 kB / 0.6668 GB, free: 15.95 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001211/0.5161, allocations: 1.412 MB / 0.6682 GB, free: 14.52 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002645/0.5164, allocations: 33.02 kB / 0.6682 GB, free: 14.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.562e-05/0.5164, allocations: 9.469 kB / 0.6682 GB, free: 14.5 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.0001654/0.5166, allocations: 153.1 kB / 0.6684 GB, free: 14.35 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.329e-05/0.5167, allocations: 25.5 kB / 0.6684 GB, free: 14.34 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007717/0.5174, allocations: 340.5 kB / 0.6687 GB, free: 14.14 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.542e-06/0.5174, allocations: 5.859 kB / 0.6687 GB, free: 14.13 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.5175, allocations: 3.219 kB / 0.6687 GB, free: 14.13 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.5175, allocations: 0 / 0.6687 GB, free: 14.13 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001163/0.5186, allocations: 0.7392 MB / 0.6695 GB, free: 13.54 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.584e-06/0.5187, allocations: 0 / 0.6695 GB, free: 13.54 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000165/0.5188, allocations: 46.94 kB / 0.6695 GB, free: 13.52 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001504/0.519, allocations: 44.38 kB / 0.6695 GB, free: 13.49 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.591e-05/0.519, allocations: 6.625 kB / 0.6696 GB, free: 13.49 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001191/0.5202, allocations: 1.43 MB / 0.671 GB, free: 12.05 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.5202, allocations: 3.344 kB / 0.671 GB, free: 12.05 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009064/0.5211, allocations: 0.507 MB / 0.6714 GB, free: 11.71 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.814e-05/0.5213, allocations: 101.5 kB / 0.6715 GB, free: 11.61 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.439e-05/0.5213, allocations: 10.48 kB / 0.6716 GB, free: 11.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002191/0.5215, allocations: 19.67 kB / 0.6716 GB, free: 11.59 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.103e-05/0.5216, allocations: 26.47 kB / 0.6716 GB, free: 11.57 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.19e-05/0.5217, allocations: 9.812 kB / 0.6716 GB, free: 11.57 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002056/0.5219, allocations: 198.5 kB / 0.6718 GB, free: 11.44 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5219, allocations: 0 / 0.6718 GB, free: 11.44 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0004991/0.5224, allocations: 130.9 kB / 0.6719 GB, free: 11.4 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.0003574/0.5227, allocations: 215.8 kB / 0.6721 GB, free: 11.25 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0007986/0.5236, allocations: 400.4 kB / 0.6725 GB, free: 10.98 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.614e-06/0.5236, allocations: 0 / 0.6725 GB, free: 10.98 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004434/0.524, allocations: 258.8 kB / 0.6728 GB, free: 10.79 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007106/0.5247, allocations: 97.08 kB / 0.6729 GB, free: 10.74 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00139/0.5261, allocations: 0.7786 MB / 0.6736 GB, free: 10.15 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003762/0.5265, allocations: 0.7617 MB / 0.6744 GB, free: 9.418 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.388e-05/0.5266, allocations: 34.48 kB / 0.6744 GB, free: 9.402 MB / 494.1 MB Notification: Performance of SimCode: time 2.475e-06/0.5266, allocations: 0 / 0.6744 GB, free: 9.402 MB / 494.1 MB Notification: Performance of Templates: time 0.01004/0.5367, allocations: 6.184 MB / 0.6804 GB, free: 3.602 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