Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.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.001323/0.001323, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.00142/0.00142, allocations: 210.5 kB / 22.24 MB, free: 5.262 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.5/1.5, allocations: 230.6 MB / 256 MB, free: 7.766 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.7624/0.7624, allocations: 94.63 MB / 407 MB, free: 8.812 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.Undirected.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_rear.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_rear.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.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.002525/0.002525, allocations: 89.05 kB / 0.5554 GB, free: 38 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1251, allocations: 73.05 MB / 0.6268 GB, free: 15.65 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve): time 0.1781/0.3032, allocations: 125.4 MB / 0.7492 GB, free: 1.793 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.3301/0.6333, allocations: 3.034 MB / 0.7522 GB, free: 3.555 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004825/0.6338, allocations: 22.72 kB / 0.7522 GB, free: 3.555 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0007003/0.6345, allocations: 192.6 kB / 0.7524 GB, free: 3.555 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001265/0.6357, allocations: 0.4894 MB / 0.7528 GB, free: 3.539 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001188/0.6369, allocations: 407.5 kB / 0.7532 GB, free: 3.531 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0008899/0.6378, allocations: 0.7231 MB / 0.7539 GB, free: 3.527 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001942/0.638, allocations: 74.48 kB / 0.754 GB, free: 3.52 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007416/0.6388, allocations: 385.6 kB / 0.7544 GB, free: 3.516 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004173/0.6392, allocations: 339.3 kB / 0.7547 GB, free: 3.516 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.852e-05/0.6392, allocations: 32.94 kB / 0.7547 GB, free: 3.516 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001017/0.6403, allocations: 0.4951 MB / 0.7552 GB, free: 3.504 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001018/0.6404, allocations: 95.8 kB / 0.7553 GB, free: 3.504 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002169/0.6406, allocations: 189.8 kB / 0.7555 GB, free: 3.504 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.00102/0.6416, allocations: 0.7258 MB / 0.7562 GB, free: 3.457 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.6416, allocations: 0.9688 kB / 0.7562 GB, free: 3.457 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.924e-06/0.6416, allocations: 0.7812 kB / 0.7562 GB, free: 3.457 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.644e-06/0.6416, allocations: 0 / 0.7562 GB, free: 3.457 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.001664/0.6433, allocations: 0.7756 MB / 0.7569 GB, free: 18.96 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.6433, allocations: 9.219 kB / 0.757 GB, free: 18.96 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001607/0.6435, allocations: 60.2 kB / 0.757 GB, free: 18.94 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007372/0.6442, allocations: 361.6 kB / 0.7574 GB, free: 18.76 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.317e-05/0.6442, allocations: 25.38 kB / 0.7574 GB, free: 18.76 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.762e-05/0.6443, allocations: 37.67 kB / 0.7574 GB, free: 18.76 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007727/0.6451, allocations: 428.7 kB / 0.7578 GB, free: 18.67 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.601e-05/0.6451, allocations: 1.375 kB / 0.7578 GB, free: 18.67 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.506e-05/0.6451, allocations: 13.12 kB / 0.7578 GB, free: 18.67 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.218e-05/0.6451, allocations: 9.141 kB / 0.7579 GB, free: 18.67 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007267/0.6459, allocations: 385 kB / 0.7582 GB, free: 18.67 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001894/0.6478, allocations: 1.23 MB / 0.7594 GB, free: 18.07 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006998/0.6485, allocations: 318.4 kB / 0.7597 GB, free: 18.04 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003031/0.6488, allocations: 156.3 kB / 0.7599 GB, free: 18.04 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001606/0.6504, allocations: 0.7042 MB / 0.7606 GB, free: 17.78 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004553/0.6508, allocations: 213.4 kB / 0.7608 GB, free: 17.73 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=37): time 2.605e-06/0.6508, allocations: 0 / 0.7608 GB, free: 17.73 MB / 0.5919 GB Notification: Performance of matching and sorting (n=37): time 0.001591/0.6524, allocations: 0.5229 MB / 0.7613 GB, free: 17.66 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.726e-05/0.6525, allocations: 59.59 kB / 0.7613 GB, free: 17.59 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004542/0.653, allocations: 328.4 kB / 0.7616 GB, free: 17.47 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 4.339e-05/0.653, allocations: 36.73 kB / 0.7617 GB, free: 17.44 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001915/0.6532, allocations: 230.3 kB / 0.7619 GB, free: 17.31 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001019/0.6533, allocations: 129.4 kB / 0.762 GB, free: 17.23 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001233/0.6534, allocations: 72.28 kB / 0.7621 GB, free: 17.21 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0002534/0.6537, allocations: 352.3 kB / 0.7624 GB, free: 16.9 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003253/0.654, allocations: 146.3 kB / 0.7626 GB, free: 16.87 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003346/0.6543, allocations: 207.5 kB / 0.7628 GB, free: 16.79 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005783/0.6549, allocations: 330.3 kB / 0.7631 GB, free: 16.7 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.56e-06/0.6549, allocations: 4.781 kB / 0.7631 GB, free: 16.7 MB / 0.5919 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009477/0.6559, allocations: 0.49 MB / 0.7636 GB, free: 16.57 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 6.189e-05/0.6559, allocations: 34.69 kB / 0.7636 GB, free: 16.54 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.6559, allocations: 0.9688 kB / 0.7636 GB, free: 16.54 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002591/0.6562, allocations: 42.28 kB / 0.7636 GB, free: 16.53 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002843/0.6565, allocations: 78.03 kB / 0.7637 GB, free: 16.53 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001415/0.6579, allocations: 1.405 MB / 0.7651 GB, free: 15.34 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003006/0.6582, allocations: 42.77 kB / 0.7651 GB, free: 15.32 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.81e-05/0.6582, allocations: 17.2 kB / 0.7651 GB, free: 15.32 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.0002255/0.6585, allocations: 163.6 kB / 0.7653 GB, free: 15.2 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001006/0.6586, allocations: 49.14 kB / 0.7653 GB, free: 15.18 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001059/0.6596, allocations: 0.5102 MB / 0.7658 GB, free: 15.09 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-06/0.6596, allocations: 5.953 kB / 0.7658 GB, free: 15.09 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.6596, allocations: 1.094 kB / 0.7658 GB, free: 15.09 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.405e-06/0.6596, allocations: 7.969 kB / 0.7659 GB, free: 15.09 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001731/0.6614, allocations: 0.8471 MB / 0.7667 GB, free: 14.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.6614, allocations: 3.094 kB / 0.7667 GB, free: 14.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002691/0.6616, allocations: 64.84 kB / 0.7667 GB, free: 14.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001693/0.6618, allocations: 40.7 kB / 0.7668 GB, free: 14.8 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.249e-05/0.6618, allocations: 11.08 kB / 0.7668 GB, free: 14.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001299/0.6631, allocations: 1.398 MB / 0.7682 GB, free: 13.61 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.6631, allocations: 1.062 kB / 0.7682 GB, free: 13.61 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001444/0.6646, allocations: 0.6521 MB / 0.7688 GB, free: 13.42 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 8.602e-05/0.6647, allocations: 45.53 kB / 0.7688 GB, free: 13.39 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.546e-05/0.6647, allocations: 11.25 kB / 0.7689 GB, free: 13.39 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002285/0.665, allocations: 18.34 kB / 0.7689 GB, free: 13.39 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.793e-05/0.6651, allocations: 36.39 kB / 0.7689 GB, free: 13.39 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.65e-05/0.6651, allocations: 14.62 kB / 0.7689 GB, free: 13.39 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003461/0.6654, allocations: 242.7 kB / 0.7692 GB, free: 13.3 MB / 0.5919 GB Notification: Performance of sort global known variables: time 8e-08/0.6654, allocations: 0 / 0.7692 GB, free: 13.3 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0007063/0.6661, allocations: 172.5 kB / 0.7693 GB, free: 13.27 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.0004194/0.6666, allocations: 246.3 kB / 0.7696 GB, free: 13.17 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0009797/0.6675, allocations: 0.5135 MB / 0.7701 GB, free: 12.95 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.6676, allocations: 0.9688 kB / 0.7701 GB, free: 12.95 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0004786/0.668, allocations: 282.7 kB / 0.7703 GB, free: 12.83 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000694/0.6687, allocations: 112.9 kB / 0.7704 GB, free: 12.82 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001907/0.6706, allocations: 0.8509 MB / 0.7713 GB, free: 12.43 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003293/0.671, allocations: 216.4 kB / 0.7715 GB, free: 12.35 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0003084/0.6713, allocations: 85.8 kB / 0.7716 GB, free: 12.33 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001109/0.6714, allocations: 42.69 kB / 0.7716 GB, free: 12.32 MB / 0.5919 GB Notification: Performance of SimCode: time 4e-07/0.6714, allocations: 0.7812 kB / 0.7716 GB, free: 12.32 MB / 0.5919 GB Notification: Performance of Templates: time 0.01416/0.6855, allocations: 8.399 MB / 0.7798 GB, free: 11.57 MB / 0.5919 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.sim & ./ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.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.2515280563384295]