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.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.002085/0.002085, allocations: 110.4 kB / 18.94 MB, free: 2.793 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.002596/0.002596, allocations: 219.4 kB / 22.25 MB, free: 5.215 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.509/1.509, allocations: 230.6 MB / 256 MB, free: 8.016 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 0.791/0.791, allocations: 94.56 MB / 407 MB, free: 9.172 MB / 318.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/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: translateModel(ThermofluidStream.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,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=1000,variableFilter="Time|pulse.T_start|pulse.count|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve") [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.002632/0.002632, allocations: 92.55 kB / 0.5554 GB, free: 38.57 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1256/0.1282, allocations: 73.05 MB / 0.6268 GB, free: 15.98 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.5165/0.6447, allocations: 144.5 MB / 0.7678 GB, free: 2.324 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.003807/0.6486, allocations: 3.636 MB / 0.7714 GB, free: 2.258 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003806/0.6489, allocations: 17.69 kB / 0.7714 GB, free: 2.258 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0005846/0.6495, allocations: 189.2 kB / 0.7716 GB, free: 2.246 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0008814/0.6504, allocations: 390.9 kB / 0.772 GB, free: 2.23 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006797/0.6511, allocations: 298.8 kB / 0.7722 GB, free: 2.219 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0005455/0.6516, allocations: 0.5255 MB / 0.7728 GB, free: 2.215 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001566/0.6518, allocations: 65.22 kB / 0.7728 GB, free: 2.195 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004806/0.6523, allocations: 270.2 kB / 0.7731 GB, free: 2.195 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003563/0.6526, allocations: 235.1 kB / 0.7733 GB, free: 2.195 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 6.021e-05/0.6527, allocations: 23.5 kB / 0.7733 GB, free: 2.195 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001143/0.6538, allocations: 0.5073 MB / 0.7738 GB, free: 2.176 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 9.818e-05/0.6539, allocations: 68.36 kB / 0.7739 GB, free: 2.176 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002358/0.6542, allocations: 174.8 kB / 0.7741 GB, free: 2.176 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001031/0.6552, allocations: 0.5543 MB / 0.7746 GB, free: 2.133 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.9e-06/0.6552, allocations: 0.5312 kB / 0.7746 GB, free: 2.133 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.874e-06/0.6552, allocations: 0 / 0.7746 GB, free: 2.133 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 9.037e-06/0.6552, allocations: 1.594 kB / 0.7746 GB, free: 2.133 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: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001594/0.6568, allocations: 0.679 MB / 0.7753 GB, free: 17.67 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.639e-05/0.6568, allocations: 9.188 kB / 0.7753 GB, free: 17.67 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001158/0.657, allocations: 45.78 kB / 0.7753 GB, free: 17.65 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006905/0.6576, allocations: 328.7 kB / 0.7756 GB, free: 17.46 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.492e-05/0.6577, allocations: 16.97 kB / 0.7756 GB, free: 17.46 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.742e-05/0.6577, allocations: 25.38 kB / 0.7757 GB, free: 17.45 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005555/0.6583, allocations: 261 kB / 0.7759 GB, free: 17.4 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.363e-05/0.6583, allocations: 6.781 kB / 0.7759 GB, free: 17.4 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.636e-05/0.6583, allocations: 9.156 kB / 0.7759 GB, free: 17.4 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.446e-05/0.6583, allocations: 4.938 kB / 0.7759 GB, free: 17.4 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005429/0.6589, allocations: 226.2 kB / 0.7762 GB, free: 17.39 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001502/0.6604, allocations: 1.063 MB / 0.7772 GB, free: 16.73 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004899/0.6609, allocations: 207.8 kB / 0.7774 GB, free: 16.7 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002199/0.6611, allocations: 101.4 kB / 0.7775 GB, free: 16.7 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008015/0.6619, allocations: 0.5119 MB / 0.778 GB, free: 16.43 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003285/0.6622, allocations: 153.9 kB / 0.7781 GB, free: 16.38 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=23): time 1.462e-06/0.6622, allocations: 0 / 0.7781 GB, free: 16.38 MB / 0.5919 GB Notification: Performance of matching and sorting (n=23): time 0.001109/0.6633, allocations: 383.2 kB / 0.7785 GB, free: 16.32 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.809e-05/0.6634, allocations: 61.19 kB / 0.7786 GB, free: 16.25 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003765/0.6638, allocations: 341.2 kB / 0.7789 GB, free: 16.14 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.615e-05/0.6638, allocations: 32.3 kB / 0.7789 GB, free: 16.11 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001335/0.6639, allocations: 200.8 kB / 0.7791 GB, free: 16 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 5.198e-05/0.664, allocations: 83.23 kB / 0.7792 GB, free: 15.95 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.647e-05/0.6641, allocations: 48.14 kB / 0.7792 GB, free: 15.93 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001634/0.6642, allocations: 347.4 kB / 0.7796 GB, free: 15.62 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002403/0.6645, allocations: 77.7 kB / 0.7796 GB, free: 15.62 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002587/0.6647, allocations: 110.3 kB / 0.7797 GB, free: 15.6 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005059/0.6652, allocations: 220 kB / 0.7799 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.6652, allocations: 0 / 0.7799 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006735/0.6659, allocations: 352 kB / 0.7803 GB, free: 15.43 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 4.942e-05/0.666, allocations: 31.98 kB / 0.7803 GB, free: 15.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.666, allocations: 1.094 kB / 0.7803 GB, free: 15.4 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002255/0.6662, allocations: 51.92 kB / 0.7804 GB, free: 15.39 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002136/0.6664, allocations: 42.67 kB / 0.7804 GB, free: 15.39 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001303/0.6677, allocations: 1.421 MB / 0.7818 GB, free: 14.16 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002347/0.668, allocations: 33.34 kB / 0.7818 GB, free: 14.14 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.577e-05/0.668, allocations: 12.09 kB / 0.7818 GB, free: 14.14 MB / 0.5919 GB 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.0001698/0.6681, allocations: 147.6 kB / 0.782 GB, free: 14.02 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.183e-05/0.6682, allocations: 36.64 kB / 0.782 GB, free: 14 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007268/0.6689, allocations: 339 kB / 0.7823 GB, free: 13.94 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.6689, allocations: 6.531 kB / 0.7823 GB, free: 13.94 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.367e-06/0.6689, allocations: 0 / 0.7823 GB, free: 13.94 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.914e-06/0.6689, allocations: 1.281 kB / 0.7823 GB, free: 13.94 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001098/0.67, allocations: 0.7267 MB / 0.7831 GB, free: 13.64 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.67, allocations: 4.812 kB / 0.7831 GB, free: 13.64 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001614/0.6702, allocations: 47.72 kB / 0.7831 GB, free: 13.63 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001357/0.6703, allocations: 41.12 kB / 0.7831 GB, free: 13.62 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.249e-05/0.6704, allocations: 12.7 kB / 0.7832 GB, free: 13.62 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0012/0.6716, allocations: 1.432 MB / 0.7846 GB, free: 12.39 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.6716, allocations: 1.375 kB / 0.7846 GB, free: 12.39 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008836/0.6725, allocations: 0.4941 MB / 0.785 GB, free: 12.21 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 6.268e-05/0.6725, allocations: 38.97 kB / 0.7851 GB, free: 12.18 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.793e-05/0.6726, allocations: 8.625 kB / 0.7851 GB, free: 12.18 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002025/0.6728, allocations: 13.78 kB / 0.7851 GB, free: 12.18 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.182e-05/0.6728, allocations: 23.52 kB / 0.7851 GB, free: 12.18 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.197e-05/0.6729, allocations: 11.88 kB / 0.7851 GB, free: 12.18 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002517/0.6731, allocations: 248.5 kB / 0.7854 GB, free: 12.1 MB / 0.5919 GB Notification: Performance of sort global known variables: time 9e-08/0.6731, allocations: 0 / 0.7854 GB, free: 12.1 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0005332/0.6737, allocations: 127.5 kB / 0.7855 GB, free: 12.08 MB / 0.5919 GB 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.0003888/0.674, allocations: 216.4 kB / 0.7857 GB, free: 11.96 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0007917/0.6748, allocations: 384.7 kB / 0.7861 GB, free: 11.78 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.6748, allocations: 2.344 kB / 0.7861 GB, free: 11.78 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0004116/0.6752, allocations: 233 kB / 0.7863 GB, free: 11.66 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006469/0.6759, allocations: 112.7 kB / 0.7864 GB, free: 11.64 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001279/0.6772, allocations: 0.6976 MB / 0.7871 GB, free: 11.28 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000391/0.6776, allocations: 0.7898 MB / 0.7878 GB, free: 10.57 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001915/0.6778, allocations: 55.88 kB / 0.7879 GB, free: 10.55 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.543e-05/0.6778, allocations: 35.28 kB / 0.7879 GB, free: 10.54 MB / 0.5919 GB Notification: Performance of SimCode: time 9.32e-07/0.6778, allocations: 0 / 0.7879 GB, free: 10.54 MB / 0.5919 GB Notification: Performance of Templates: time 0.01215/0.69, allocations: 6.606 MB / 0.7944 GB, free: 9.934 MB / 0.5919 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.makefile [Timeout 660] (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) [Timeout 1200] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.417525776196271]